File tree Expand file tree Collapse file tree 2 files changed +27
-0
lines changed
Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change 1+ <script lang =" ts" >
2+ export let instance: string = ' '
3+ export let username: string = ' '
4+ export let tootId: string = ' '
5+ </script >
6+
7+ <svelte:head >
8+ <script
9+ async
10+ src =" https://mas.to/embed.js"
11+ charset =" utf-8"
12+ ></script >
13+ </svelte:head >
14+
15+ <div class =" flex justify-center mb-12" >
16+ <iframe
17+ title =" "
18+ src ={` https://${instance }/${
19+ username .slice (0 , 1 ) === ` @ ` ? username : ` @ ` + username
20+ }/${tootId }/embed ` }
21+ class =" mastodon-embed"
22+ style =" max-width: 100%; border: 0"
23+ width =" 400"
24+ allowfullscreen
25+ />
26+ </div >
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ export { default as SimpleCast } from './components/simple-cast.svelte'
88export { default as SoundCloud } from './components/sound-cloud.svelte'
99export { default as Spotify } from './components/spotify.svelte'
1010export { default as StackBlitz } from './components/stackblitz.svelte'
11+ export { default as Toot } from './components/toot.svelte'
1112export { default as Tweet } from './components/tweet.svelte'
1213export { default as Vimeo } from './components/vimeo.svelte'
1314export { default as YouTube } from './components/you-tube.svelte'
You can’t perform that action at this time.
0 commit comments