forked from coracle/flotilla
Add new claymorphic component library
This commit is contained in:
@@ -2,17 +2,19 @@
|
||||
import type {ComponentProps} from "svelte"
|
||||
import {getTagValue} from "@welshman/util"
|
||||
import Content from "@app/components/Content.svelte"
|
||||
import Col from "@lib/components2/Col.svelte"
|
||||
import Text from "@lib/components2/Text.svelte"
|
||||
|
||||
const props: ComponentProps<typeof Content> = $props()
|
||||
|
||||
const title = getTagValue("title", props.event.tags)
|
||||
</script>
|
||||
|
||||
<div class="flex flex-col gap-2">
|
||||
<Col gap={2}>
|
||||
{#if title}
|
||||
<p class="text-xl">{title}</p>
|
||||
<Text size="xl">{title}</Text>
|
||||
{/if}
|
||||
{#if props.event.content}
|
||||
<Content {...props} />
|
||||
{/if}
|
||||
</div>
|
||||
</Col>
|
||||
|
||||
Reference in New Issue
Block a user