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.
24 lines
906 B
TypeScript
24 lines
906 B
TypeScript
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' } },
|
|
]
|