Something went wrong. Try again.
Monorepo for Tangled forked from tangled.org/core
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930<script lang="ts"> import type { Snippet } from "svelte"; import type { BeatId } from "#lib/components/landing/guest.svelte.ts"; import { getThread } from "#lib/components/landing/thread/thread.svelte.ts";
/** * One feature: its title, its copy and its visual (the stage), always open. From tablets * up the copy sits beside the visual, the sides swapping from one beat to the next; on * phones the copy sits above it. Its title ties a knot on the thread. */ interface Props { id: BeatId; title: string; text: Snippet; stage: Snippet; }
let { id, title, text, stage }: Props = $props();
const thread = getThread();</script>
<div class="beat" data-beat={id}> <div class="text"> <h3 class="bt" {@attach thread.knot({ id, label: title })}>{title}</h3> {@render text()} </div> <div class="stage">{@render stage()}</div></div>