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,23 @@
|
||||
export interface ChapterOutcome {
|
||||
label: string
|
||||
value: string
|
||||
}
|
||||
|
||||
export interface Chapter {
|
||||
name: string
|
||||
status: 'active' | 'finished'
|
||||
uptime: string
|
||||
/** Active chapters: how often the workload recovered on its own. */
|
||||
rebounds?: number
|
||||
/** Finished chapters: what closed the chapter and when. */
|
||||
outcome?: ChapterOutcome
|
||||
}
|
||||
|
||||
// Mockup data. Replaced by GET /api/chapters once the gateway exists.
|
||||
export const chapters: Chapter[] = [
|
||||
{ name: 'prezero', status: 'active', uptime: '99.98%', rebounds: 14 },
|
||||
{ name: 'dreambit', status: 'active', uptime: '99.95%', rebounds: 8 },
|
||||
{ name: 'ongoing-studies', status: 'active', uptime: '99.91%', rebounds: 5 },
|
||||
{ name: '42-school', status: 'finished', uptime: '100.0%', outcome: { label: 'graduated', value: '2023' } },
|
||||
{ name: 'apprenticeship', status: 'finished', uptime: '100.0%', outcome: { label: 'certified', value: '2021' } },
|
||||
]
|
||||
Reference in new issue
Block a user