22 lines
513 B
Svelte
22 lines
513 B
Svelte
<script lang="ts">
|
|
import Link from '$lib/components/input/Link.svelte'
|
|
import { Icon, Link as LinkIcon } from 'svelte-hero-icons'
|
|
|
|
export let url: string
|
|
export let thumbnail_url: string
|
|
export let nsfw: boolean = false
|
|
</script>
|
|
|
|
<Link href={url} highlight nowrap />
|
|
|
|
<a href={url}>
|
|
<img
|
|
src={thumbnail_url}
|
|
class="rounded-md max-w-[300px] w-full h-auto aspect-video object-cover bg-slate-200 dark:bg-zinc-800"
|
|
width={600}
|
|
height={400}
|
|
alt=""
|
|
class:blur-3xl={nsfw}
|
|
/>
|
|
</a>
|