From 26739731ed9e130c65d4530e067d82f17bc0534c Mon Sep 17 00:00:00 2001 From: Noel Sabia Date: Fri, 23 Oct 2026 21:22:02 +0200 Subject: [PATCH] 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. --- app/components/home/ChapterRow.vue | 44 +++++++++++++++++++ app/components/home/ContactBar.vue | 23 ++++++++++ app/components/home/ContactItem.vue | 54 +++++++++++++++++++++++ app/components/home/FeatureCard.vue | 18 ++++++++ app/components/home/FeatureCards.vue | 34 +++++++++++++++ app/components/home/HeroSection.vue | 42 ++++++++++++++++++ app/components/home/TerminalPanel.vue | 62 +++++++++++++++++++++++++++ app/data/chapters.ts | 23 ++++++++++ app/pages/index.vue | 22 +++++++++- 9 files changed, 321 insertions(+), 1 deletion(-) create mode 100644 app/components/home/ChapterRow.vue create mode 100644 app/components/home/ContactBar.vue create mode 100644 app/components/home/ContactItem.vue create mode 100644 app/components/home/FeatureCard.vue create mode 100644 app/components/home/FeatureCards.vue create mode 100644 app/components/home/HeroSection.vue create mode 100644 app/components/home/TerminalPanel.vue create mode 100644 app/data/chapters.ts diff --git a/app/components/home/ChapterRow.vue b/app/components/home/ChapterRow.vue new file mode 100644 index 0000000..ed09914 --- /dev/null +++ b/app/components/home/ChapterRow.vue @@ -0,0 +1,44 @@ + + + diff --git a/app/components/home/ContactBar.vue b/app/components/home/ContactBar.vue new file mode 100644 index 0000000..34f03ee --- /dev/null +++ b/app/components/home/ContactBar.vue @@ -0,0 +1,23 @@ + diff --git a/app/components/home/ContactItem.vue b/app/components/home/ContactItem.vue new file mode 100644 index 0000000..b861a66 --- /dev/null +++ b/app/components/home/ContactItem.vue @@ -0,0 +1,54 @@ + + + diff --git a/app/components/home/FeatureCard.vue b/app/components/home/FeatureCard.vue new file mode 100644 index 0000000..8f80059 --- /dev/null +++ b/app/components/home/FeatureCard.vue @@ -0,0 +1,18 @@ + + + diff --git a/app/components/home/FeatureCards.vue b/app/components/home/FeatureCards.vue new file mode 100644 index 0000000..4e95455 --- /dev/null +++ b/app/components/home/FeatureCards.vue @@ -0,0 +1,34 @@ + + + diff --git a/app/components/home/HeroSection.vue b/app/components/home/HeroSection.vue new file mode 100644 index 0000000..cedde0e --- /dev/null +++ b/app/components/home/HeroSection.vue @@ -0,0 +1,42 @@ + diff --git a/app/components/home/TerminalPanel.vue b/app/components/home/TerminalPanel.vue new file mode 100644 index 0000000..dc554a0 --- /dev/null +++ b/app/components/home/TerminalPanel.vue @@ -0,0 +1,62 @@ + + + diff --git a/app/data/chapters.ts b/app/data/chapters.ts new file mode 100644 index 0000000..75d9920 --- /dev/null +++ b/app/data/chapters.ts @@ -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' } }, +] diff --git a/app/pages/index.vue b/app/pages/index.vue index 04d85e1..11825e3 100644 --- a/app/pages/index.vue +++ b/app/pages/index.vue @@ -1,3 +1,23 @@ + +