From f9b9c84a2efed26d544204909ecd40a337a515b2 Mon Sep 17 00:00:00 2001 From: Yasutake Yohei Date: Fri, 16 Oct 2026 16:41:41 +0900 Subject: hp-archive: 市民向けの情報をアイコンと色で見やすく MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/KodairaNews.astro | 257 +++++++++++++++++++++++++-- src/content/docs/kodaira-data/hp-archive.mdx | 61 +++++-- src/styles/custom.css | 79 ++++++++ 3 files changed, 370 insertions(+), 27 deletions(-) (limited to 'src') diff --git a/src/components/KodairaNews.astro b/src/components/KodairaNews.astro index ffe1b89..a8a0d5c 100644 --- a/src/components/KodairaNews.astro +++ b/src/components/KodairaNews.astro @@ -21,6 +21,18 @@ const CATS: { id: CatId | "all"; label: string }[] = [ const X = (id: string) => `https://twitter.com/kodaira_tokyo/status/${id}`; +const X_ACCOUNT = "https://twitter.com/kodaira_tokyo"; +const X_LOGO = + ''; + +const LABEL: Record = { + status: "障害・復旧", + procedure: "手続き・申請", + meeting: "審議会・議会", + event: "イベント・募集", + other: "その他", +}; + const posts: Post[] = [ { date: "10月16日", @@ -272,11 +284,20 @@ const countOf = (id: CatId | "all") => ---
+
+ + + 小平市公式X + @kodaira_tokyo + + Xで見る +
+
分類で絞る { CATS.map((c) => ( -