Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | 20x 20x 4x 20x | <template>
<UContainer as="section" class="flex flex-col gap-6 pt-10 pb-12 md:pt-20">
<p v-if="kicker" class="font-mono text-xs text-muted uppercase">{{ kicker }}</p>
<h1
class="font-display text-section text-highlighted md:text-title lg:text-statement"
:style="carriedTitle"
>
{{ title }} <mark>{{ mark }}</mark>
</h1>
<p class="max-w-2xl text-2xl text-highlighted">{{ lead }}</p>
<slot />
</UContainer>
</template>
<script setup lang="ts">
interface Props {
kicker?: string;
title: string;
/** The title's last words, set in the accent. */
mark: string;
lead: string;
/** The transition name the title shares with the link that led here. */
carry?: string;
}
const { kicker, title, mark, lead, carry } = defineProps<Props>();
const carriedTitle = computed(() => (carry ? carried(carry) : undefined));
</script>
|