From b93eb11d1741cd231a40df9ca9aacf1ea71d9b6f Mon Sep 17 00:00:00 2001 From: Last2014 Date: Sat, 28 Mar 2026 22:18:28 +0900 Subject: [PATCH] =?UTF-8?q?Chg:=20Card.astro=E3=81=AEpadding=E3=82=92?= =?UTF-8?q?=E8=AA=BF=E6=95=B4=20/=20New:=20=E8=A9=B3=E7=B4=B0=E3=82=92?= =?UTF-8?q?=E8=A1=A8=E3=81=A7=E8=A1=A8=E7=A4=BA=20/=20New:=20scroll-paddin?= =?UTF-8?q?g-top=E3=82=92=E6=8C=87=E5=AE=9A=20/=20New:=20scroll-behavior?= =?UTF-8?q?=E3=82=92=E6=8C=87=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/icons/age.svg | 1 - public/icons/cake.svg | 1 - public/icons/calendar.svg | 1 - public/icons/gender.svg | 1 - public/icons/location.svg | 1 - public/icons/world.svg | 1 - src/components/Card.astro | 2 +- src/pages/index.astro | 72 ++++++++++++++++++++++++++++++++------- src/styles/global.css | 2 ++ 9 files changed, 63 insertions(+), 19 deletions(-) delete mode 100644 public/icons/age.svg delete mode 100644 public/icons/cake.svg delete mode 100644 public/icons/calendar.svg delete mode 100644 public/icons/gender.svg delete mode 100644 public/icons/location.svg delete mode 100644 public/icons/world.svg diff --git a/public/icons/age.svg b/public/icons/age.svg deleted file mode 100644 index f42eb78..0000000 --- a/public/icons/age.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/public/icons/cake.svg b/public/icons/cake.svg deleted file mode 100644 index bf73fb7..0000000 --- a/public/icons/cake.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/public/icons/calendar.svg b/public/icons/calendar.svg deleted file mode 100644 index 792f6f5..0000000 --- a/public/icons/calendar.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/public/icons/gender.svg b/public/icons/gender.svg deleted file mode 100644 index 120e166..0000000 --- a/public/icons/gender.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/public/icons/location.svg b/public/icons/location.svg deleted file mode 100644 index 4c01f3c..0000000 --- a/public/icons/location.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/public/icons/world.svg b/public/icons/world.svg deleted file mode 100644 index 8108652..0000000 --- a/public/icons/world.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/components/Card.astro b/src/components/Card.astro index 0941c1a..ad0e6c4 100644 --- a/src/components/Card.astro +++ b/src/components/Card.astro @@ -42,7 +42,7 @@ a { align-items: center; text-decoration: none; width: var(--width); - padding: 0.75rem; + padding: 0.75rem 1rem; border-radius: 1rem; background-color: #ffffff; color: #000000; diff --git a/src/pages/index.astro b/src/pages/index.astro index 6e00113..dfa0657 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -27,15 +27,27 @@ import supports from "@/constants/supports";
- 詳細 - - {details.map((detail) => ( - - ))} + 詳細 + +
+ + + {details.map((detail, i) => ( + + + + + ))} + +
{detail.title}{detail.description}
+
- リンク + リンク {links.map((link) => ( @@ -43,7 +55,7 @@ import supports from "@/constants/supports";
- 支援 + 支援 {supports.map((link) => ( @@ -51,7 +63,7 @@ import supports from "@/constants/supports";
- 連絡先 + 連絡先 {contacts.map((contact) => ( @@ -95,7 +107,8 @@ import supports from "@/constants/supports"; } .section { - width: 70dvw; + min-width: 20rem; + width: 80dvw; display: flex; flex-wrap: wrap; gap: 0.75rem; @@ -103,14 +116,49 @@ import supports from "@/constants/supports"; .section span { width: 100%; - min-width: 20rem; font-weight: bold; font-size: 2rem; user-select: none; -webkit-user-select: none; } - +.section .table { + width: 100%; + overflow: hidden; + padding: 0.75rem 1rem; + background-color: #ffffff; + color: #000000; + padding: 0.75rem 1rem; + border-radius: 1rem; +} + +.section table { + width: 100%; + border-collapse: collapse; +} + +.section .table table tbody tr, +.section .table table tbody td { + padding: 0.25rem; + font-size: 1.1rem; +} + +.section .table table tbody tr { + border-top: 1px solid var(--border-color); + border-bottom: 1px solid var(--border-color); +} + +.section .table table tbody tr.edge { + border: none; +} + +@media (prefers-color-scheme: dark) { + .section .table { + background-color: #000000; + color: #ffffff; + } +} + \ No newline at end of file diff --git a/src/styles/global.css b/src/styles/global.css index dc1a4fa..600d8c3 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -24,6 +24,8 @@ html, body { min-height: 100dvh; font-family: "Noto Sans JP", sans-serif; word-break: break-all; + scroll-padding-top: calc(78.6667px + 1rem); + scroll-behavior: smooth; overscroll-behavior-x: none; scrollbar-width: thin; color: var(--text-color);