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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | 16x 16x 16x 16x 16x | <template>
<span class="inline-flex flex-col leading-none">
<span class="font-serif tracking-wordmark whitespace-nowrap" :class="[SIZES[size], ui.name]"
>{{ $t("wordmark.lead") }}
<span class="italic" :class="ui.accent">{{ $t("wordmark.accent") }}</span></span
>
<span
v-if="tagline"
class="mt-1.5 font-sans text-label font-semibold tracking-label uppercase"
:class="ui.tagline"
>{{ $t("wordmark.tagline") }}</span
>
</span>
</template>
<script setup lang="ts">
import type { Tone } from "~/types/Tone";
type Size = "sm" | "md";
interface Recipe {
name: string;
accent: string;
tagline: string;
}
interface Props {
size?: Size;
tone?: Tone;
tagline?: boolean;
}
const props = withDefaults(defineProps<Props>(), {
size: "md",
tone: "paper",
tagline: false,
});
const SIZES = {
sm: "text-xl",
md: "text-wordmark",
} as const satisfies Record<Size, string>;
const TONES = {
paper: { name: "text-highlighted", accent: "text-primary", tagline: "text-muted" },
slate: {
name: "text-inverted",
accent: "text-huella-teal-300",
tagline: "text-huella-slate-200",
},
} as const satisfies Record<Tone, Recipe>;
const ui = computed<Recipe>(() => TONES[props.tone]);
</script>
|