Giter Site home page Giter Site logo

embeddable-nfts's Introduction

Embeddable NFTs

Easily embed OpenSea listings in your website!

Component inputs

horizontal - If this is present, the card will be rendered horizontally.

orientationMode - If auto the card will switch to vertical mode on mobile (breakpoint is at 600px). In manual mode the card will be unaffected.

width - The width of the embeddable. Ex. values 100% 250px. Default: 388px

height - The height of the embeddable. Ex. values 40vh 300px. Default: 560px

tokenAddress*- The token's contract address.

tokenId* - The token Id of the asset.

network - The name of the network the asset is on mainnet or rinkeby. Default: mainnet.

*Required inputs

Usage

Add this to your <head> tag:

<script src="https://unpkg.com/embeddable-nfts/dist/nft-card.min.js"></script>

Then add this into your code:

<nft-card
  tokenAddress="0x5caebd3b32e210e85ce3e9d51638b9c445481567"
  tokenId="2242579050293992223"
  network="mainnet"
  >
</nft-card>

Development

For developers looking to contribute or modify the code, or view the example use the following commands:

  git clone https://github.com/ProjectOpenSea/embeddable_nfts.git
  cd embeddable_nfts
  npm install
  npm run dev:demo

Development server

This project uses webpack for building and running a development server. Once the server starts, any changes made will trigger a rebuild after which those changes should be reflected in your browser.

embeddable-nfts's People

Contributors

taylorjdawson avatar alexanderatallah avatar

Stargazers

rmr186 avatar

Watchers

James Cloos avatar

Forkers

kabbalahoracle

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.