Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | 7x 7x 7x 7x 7x 7x | <template> <div class="relative pt-3 pr-3"> <div class="absolute inset-0 top-0 left-3 border border-default bg-muted" /> <div class="absolute inset-0 top-1.5 left-1.5 border border-default bg-default" /> <div class="relative flex flex-col gap-3 border border-default bg-elevated p-4"> <div class="flex items-center justify-between gap-2"> <span class="font-mono text-xs text-muted"> {{ $t("decisionsPreview.number", { number: report.number }) }} </span> <span v-if="report.status" class="shrink-0 rounded-sm border border-current px-1.5 py-0.5 text-xs font-medium" :class="TONES[report.status]" > {{ $t(`decisions.status.${report.status}`) }} </span> </div> <span class="font-display text-2xl/tight text-highlighted">{{ report.title }}</span> <div class="flex flex-col gap-1.5"> <span v-for="line in LINES" :key="line" class="h-1.5 bg-accented" :class="line" /> </div> </div> </div> </template> <script setup lang="ts"> import type { DecisionStatus } from "~/types/DecisionStatus"; import type { SiteData } from "~/types/SiteData"; interface Props { report: SiteData["decisions"][number]; } const { report } = defineProps<Props>(); /** Stand-in lines for the report's body, at the widths a paragraph's last line leaves. */ const LINES = ["w-full", "w-11/12", "w-2/3"] as const; const TONES = { "to-implement": "tone-warn", implemented: "tone-good", "wont-implement": "text-dimmed", } as const satisfies Record<DecisionStatus, string>; </script> |