Files
CV_Site_Nuxt/app/components/home/ChapterRow.vue
T
Noel Sabia 9a4d79a050 feat(ui): update homepage copy and import LinkedIn profile
Contact bar: Gmail, Heilbronn and a LinkedIn link; the phone chip is
removed. Hero: System Architect / Programmer, new pill and quote.
Feature cards: humility, learning and helpfulness instead of the
infrastructure copy.

Terminal: six chapters from the LinkedIn export (PreZero active;
Defifort, Alignerr, Outlier, freelance and 42 finished), each with a
context label. Rows use a fixed grid so names, context badges, status,
uptime and outcome line up vertically; the title bar has red/yellow/green
traffic lights and the footer pluralises its counters (1/5/14).

OKF: new profile data document for the export and chapter mapping;
backend endpoint examples and totals match the real rows.
2026-10-23 22:26:11 +02:00

48 lines
1.8 KiB
Vue

<script setup lang="ts">
import type { Chapter } from '~/data/chapters'
const props = defineProps<{ chapter: Chapter }>()
const isActive = computed(() => props.chapter.status === 'active')
// Active rows report recoveries; finished rows report what sealed them.
const detail = computed(() => (isActive.value
? { label: 'self_healed', value: `${props.chapter.rebounds ?? 0}x` }
: props.chapter.outcome))
</script>
<template>
<div
class="grid min-w-[760px] grid-cols-[10rem_7rem_8.5rem_7.5rem_8.5rem] items-center justify-between gap-4 rounded px-3 py-1.5 transition-colors hover:bg-surface-container-lowest"
:class="isActive ? 'bg-surface-container-lowest/60' : 'bg-surface-container-lowest/40'"
>
<span
class="whitespace-nowrap font-medium"
:class="isActive ? 'text-primary-fixed-dim' : 'text-outline'"
>chapter=<span :class="isActive ? 'text-on-surface' : 'text-on-surface-variant'">{{ chapter.name }}</span></span>
<span class="w-full rounded bg-surface-container-highest/80 px-1.5 py-0.5 text-center font-label-mono text-[0.625rem] uppercase tracking-wider text-on-surface-variant/80">
{{ chapter.context }}
</span>
<span
v-if="isActive"
class="flex items-center gap-1.5 font-semibold text-secondary"
>
<span class="h-1.5 w-1.5 rounded-full bg-secondary" />
status=active
</span>
<span v-else class="font-medium text-outline">status=finished</span>
<span
class="font-status-badge text-status-badge"
:class="isActive ? 'text-on-surface-variant' : 'text-on-surface-variant/70'"
>uptime={{ chapter.uptime }}</span>
<span
v-if="detail"
class="font-label-mono text-label-mono"
:class="isActive ? 'text-tertiary' : 'text-primary-fixed-dim'"
>{{ detail.label }}={{ detail.value }}</span>
</div>
</template>