2024-12-14 03:40:47 +01:00
|
|
|
<script lang="ts">
|
2026-04-12 08:58:41 +01:00
|
|
|
import { cn } from '../../../tools';
|
2024-12-14 03:40:47 +01:00
|
|
|
import Ellipses from './ellipses.svelte';
|
2026-04-12 08:58:41 +01:00
|
|
|
import type { Snippet } from 'svelte';
|
2024-12-14 03:40:47 +01:00
|
|
|
|
2026-04-12 08:58:41 +01:00
|
|
|
interface Props {
|
2024-12-14 03:40:47 +01:00
|
|
|
className?: string;
|
2026-04-12 08:58:41 +01:00
|
|
|
children?: Snippet;
|
|
|
|
|
}
|
2024-12-14 03:40:47 +01:00
|
|
|
|
2026-04-12 08:58:41 +01:00
|
|
|
let { className, children }: Props = $props();
|
2024-12-14 03:40:47 +01:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<div
|
|
|
|
|
class={cn(
|
|
|
|
|
'relative mx-auto w-full border border-dashed border-zinc-300 px-8 shadow-sm sm:px-6 md:px-8 dark:border-zinc-800 dark:bg-[#09090B]',
|
|
|
|
|
className
|
|
|
|
|
)}
|
|
|
|
|
>
|
2026-04-12 08:58:41 +01:00
|
|
|
<div class="absolute top-4 left-0 z-0 h-px w-full bg-zinc-400 sm:top-6 md:top-8 dark:bg-zinc-700"></div>
|
|
|
|
|
<div class="absolute bottom-4 left-0 z-0 h-px w-full bg-zinc-400 sm:bottom-6 md:bottom-8 dark:bg-zinc-700"></div>
|
2024-12-14 03:40:47 +01:00
|
|
|
<div class="relative w-full border-x border-zinc-400 dark:border-zinc-700">
|
|
|
|
|
<Ellipses />
|
|
|
|
|
<div class="relative z-20 mx-auto py-8">
|
2026-04-12 08:58:41 +01:00
|
|
|
{@render children?.()}
|
2024-12-14 03:40:47 +01:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|