kaguraswap / monorepo

Multichain NFT Marketplace aggregator built with Seaport and 0x!
https://kaguraswap.com
MIT License
8 stars 1 forks source link

Implement Embed code generation #267

Closed taijusanagi closed 2 years ago

taijusanagi commented 2 years ago

Try to investigate embed code generation, this brings better functionality.

taijusanagi commented 2 years ago

Investigated some, and it seems bit difficult

https://github.com/LeMisterV/Next-widget/blob/ec7ca7882e241b59a2544bd25d9907361fce4687/src/config/widgetCompiler.js

https://stackoverflow.com/questions/63248414/how-do-i-create-an-embeddable-next-js-react-component-for-third-party-websites

taijusanagi commented 2 years ago

This material says using an iframe is easier.

We can utilize iframes as much as possible. https://selleo.com/blog/how-to-create-embedded-react-widget

taijusanagi commented 2 years ago

This is also using iframe, so let's just add iframe now. https://github.com/thirdweb-dev/widgets