Closed avivash closed 1 year ago
We need to look at a way to create embeddable, standalone code for a fund ring widget pointed to a particular contract address that can be added to any other app or website.
We're investigating the viability of web components for this. Some preliminary investigation suggests generating web components from sveltekit is a baked in feature https://www.casperfeng.com/blog/creating-web-components-using-svelte, but I haven't tested it yet.
We can explore other options, such as html/js that uses script tags to load the relevant libraries too.
script
This has been done by exporting a embeddable web-component. See the example here
We need to look at a way to create embeddable, standalone code for a fund ring widget pointed to a particular contract address that can be added to any other app or website.
We're investigating the viability of web components for this. Some preliminary investigation suggests generating web components from sveltekit is a baked in feature https://www.casperfeng.com/blog/creating-web-components-using-svelte, but I haven't tested it yet.
We can explore other options, such as html/js that uses
script
tags to load the relevant libraries too.