feat(ui): build homepage hero, terminal and feature cards
Compose pages/index.vue from the desktop homepage mockup: decorative backdrop scoped to the hero but not clipped at its bottom edge, hero with status pill, quote and contact chips with copy buttons, terminal panel fed by a chapter array with derived counters, and the three feature cards. Split into app/components/home/ (auto-imported with the Home* prefix) and keep the chapter data in app/data/chapters.ts so GET /api/chapters can replace the mockup values later.
This commit is contained in:
1 parent
db04d441c9
commit
26739731ed
9 files changed
+321
-1
No files matched your search
@@ -0,0 +1,18 @@
|
||||
<script setup lang="ts">
|
||||
defineProps<{
|
||||
icon: string
|
||||
title: string
|
||||
description: string
|
||||
iconClass: string
|
||||
}>()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="rounded-xl bg-surface-container p-6 shadow-sm transition-colors hover:bg-surface-container-high">
|
||||
<div class="mb-4 flex h-10 w-10 items-center justify-center rounded-lg bg-surface-container-highest" :class="iconClass">
|
||||
<span class="material-symbols-outlined text-[1.5rem]">{{ icon }}</span>
|
||||
</div>
|
||||
<h3 class="mb-2 font-headline-sm text-headline-sm text-on-surface">{{ title }}</h3>
|
||||
<p class="font-body-sm text-body-sm leading-relaxed text-on-surface-variant">{{ description }}</p>
|
||||
</div>
|
||||
</template>
|
||||
Reference in new issue
Block a user