From 609dc6a3769d85e1cc4a8f06af58165be86b598c Mon Sep 17 00:00:00 2001 From: yyamashita Date: Sun, 10 May 2026 22:56:42 +0900 Subject: Add band index page sorted by slug, show hiatus status only Co-Authored-By: Claude Sonnet 4.6 --- app/routes/home.tsx | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) (limited to 'app/routes') diff --git a/app/routes/home.tsx b/app/routes/home.tsx index 5aa7de1..ef6912d 100644 --- a/app/routes/home.tsx +++ b/app/routes/home.tsx @@ -5,12 +5,6 @@ export function loader() { return { bands: listBands() }; } -const STATUS_LABEL: Record = { - active: "活動中", - hiatus: "活動休止", - disbanded: "解散", -}; - export default function Home() { const { bands } = useLoaderData(); return ( @@ -24,16 +18,10 @@ export default function Home() {
    {bands.map((band) => (
  • -
    - {band.name} - {band.description && ( -

    {band.description}

    - )} -
    -
    - {band.area && {band.area}} - {STATUS_LABEL[band.status] ?? band.status} -
    + {band.name} + {band.status === "hiatus" && ( + 活動休止 + )}
  • ))}
-- cgit v1.2.3