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
+21
-1
@@ -1,3 +1,23 @@
|
||||
<script setup lang="ts">
|
||||
import { chapters } from '~/data/chapters'
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div />
|
||||
<div class="relative flex w-full flex-col overflow-hidden">
|
||||
<!-- Backdrop is measured against the hero, as in the mockup, so the two circles stay
|
||||
close together. It is not clipped at the hero's bottom edge, which lets the
|
||||
terminal sit on top of the lower circle. Horizontal clipping lives on the root. -->
|
||||
<div class="relative w-full">
|
||||
<div class="pointer-events-none absolute inset-0">
|
||||
<div class="absolute -top-40 left-1/2 h-[32rem] w-[48rem] -translate-x-1/2 bg-gradient-to-b from-primary-container/20 via-surface-container-high/10 to-transparent opacity-70 blur-3xl" />
|
||||
<div class="absolute left-1/4 top-1/3 h-96 w-96 rounded-full bg-primary/5 blur-3xl" />
|
||||
<div class="absolute right-1/4 top-2/3 h-80 w-80 rounded-full bg-secondary/5 blur-3xl" />
|
||||
</div>
|
||||
|
||||
<HomeHeroSection />
|
||||
</div>
|
||||
|
||||
<HomeTerminalPanel :chapters="chapters" />
|
||||
<HomeFeatureCards />
|
||||
</div>
|
||||
</template>
|
||||
Reference in new issue
Block a user