PR Check / Security scan (Snyk) (pull_request) Skipped
PR Check / Lint + typecheck (pull_request) Successful in 52s
PR Check / Secret scan (gitleaks) (pull_request) Successful in 6s
PR Check / Dependency audit (pull_request) Successful in 9s
PR Check / Dockerfile lint (droast) (pull_request) Successful in 6s
PR Check / AI code review (opencode) (pull_request) Successful in 47s
Below lg the chapter rows show only the context badge and the status, so the terminal no longer needs 760px on a phone; the desktop grid is unchanged. The contact bar stacks the email full width and puts LinkedIn and the location side by side. Contact values truncate instead of forcing the bar wider. Also fixes the "someone we pull" typo in the third feature card and lets the hero quote use the wider column.
48 lines
2.0 KiB
Vue
48 lines
2.0 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 grid-cols-2 items-center gap-4 rounded px-3 py-2 transition-colors hover:bg-surface-container-lowest lg:min-w-[760px] lg:grid-cols-[10rem_7rem_8.5rem_7.5rem_8.5rem] lg:justify-between lg:py-1.5"
|
|
:class="isActive ? 'bg-surface-container-lowest/60' : 'bg-surface-container-lowest/40'"
|
|
>
|
|
<span
|
|
class="hidden whitespace-nowrap font-medium lg:block"
|
|
: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-fit rounded bg-surface-container-highest/80 px-2 py-1 font-label-mono text-[0.6875rem] uppercase tracking-wider text-on-surface-variant/80 lg:w-full lg:px-1.5 lg:py-0.5 lg:text-center lg:text-[0.625rem]">
|
|
{{ chapter.context }}
|
|
</span>
|
|
|
|
<span
|
|
v-if="isActive"
|
|
class="flex items-center gap-1.5 justify-self-end font-semibold text-secondary lg:justify-self-start"
|
|
>
|
|
<span class="h-1.5 w-1.5 rounded-full bg-secondary" />
|
|
status=active
|
|
</span>
|
|
<span v-else class="justify-self-end font-medium text-outline lg:justify-self-start">status=finished</span>
|
|
|
|
<span
|
|
class="hidden font-status-badge text-status-badge lg:block"
|
|
:class="isActive ? 'text-on-surface-variant' : 'text-on-surface-variant/70'"
|
|
>uptime={{ chapter.uptime }}</span>
|
|
|
|
<span
|
|
v-if="detail"
|
|
class="hidden font-label-mono text-label-mono lg:block"
|
|
:class="isActive ? 'text-tertiary' : 'text-primary-fixed-dim'"
|
|
>{{ detail.label }}={{ detail.value }}</span>
|
|
</div>
|
|
</template>
|