your personal website on atproto - mirror blento.app
at map 22 lines 463 B view raw
1<script lang="ts"> 2 import '../app.css'; 3 4 import { ThemeToggle } from '@foxui/core'; 5 import { onMount } from 'svelte'; 6 import { initClient } from '$lib/atproto'; 7 import YoutubeVideoPlayer, { videoPlayer } from '$lib/cards/utils/YoutubeVideoPlayer.svelte'; 8 9 let { children } = $props(); 10 11 onMount(() => { 12 initClient(); 13 }); 14</script> 15 16{@render children()} 17 18<ThemeToggle class="fixed top-2 left-2 z-10" /> 19 20{#if videoPlayer.id} 21 <YoutubeVideoPlayer /> 22{/if}