your personal website on atproto - mirror blento.app

add button to random

Florian e4b3bc28 a8c1656e

+25
+25
src/routes/random/+page.svelte
··· 1 <script lang="ts"> 2 import Website from '$lib/website/Website.svelte'; 3 4 let { data } = $props(); 5 </script> 6 7 <Website {data} />
··· 1 <script lang="ts"> 2 import Website from '$lib/website/Website.svelte'; 3 + import { Button } from '@foxui/core'; 4 5 let { data } = $props(); 6 </script> 7 8 <Website {data} /> 9 + 10 + <Button 11 + onclick={() => { 12 + window.location.reload(); 13 + }} 14 + size="lg" 15 + class="bg-accent-100 hover:bg-accent-200 dark:bg-accent-950/50 dark:hover:bg-accent-900/50 fixed right-4 bottom-4" 16 + ><svg 17 + xmlns="http://www.w3.org/2000/svg" 18 + width="24" 19 + height="24" 20 + viewBox="0 0 24 24" 21 + fill="none" 22 + stroke="currentColor" 23 + stroke-width="2" 24 + stroke-linecap="round" 25 + stroke-linejoin="round" 26 + class="lucide lucide-dices-icon lucide-dices" 27 + ><rect width="12" height="12" x="2" y="10" rx="2" ry="2" /><path 28 + d="m17.92 14 3.5-3.5a2.24 2.24 0 0 0 0-3l-5-4.92a2.24 2.24 0 0 0-3 0L10 6" 29 + /><path d="M6 18h.01" /><path d="M10 14h.01" /><path d="M15 6h.01" /><path d="M18 9h.01" /></svg 30 + >Next 31 + <span class="sr-only">Next random profile</span></Button 32 + >