aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/components/ParksTable.astro
diff options
context:
space:
mode:
authorYasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com>2026-10-08 22:15:23 +0900
committerYasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com>2026-10-08 22:15:23 +0900
commit346b7c769f223df4d9f0eb2241a8505064e0dac9 (patch)
treee8c78922b57babd9f292187da0f1f4b578f84cce /src/components/ParksTable.astro
parent0acf189d67f03d3e57ae05e04f8bc659ee7db93a (diff)
ParksTable.astro, park-editor.html: パーゴラ・東屋を追加、公園データを更新
Diffstat (limited to 'src/components/ParksTable.astro')
-rw-r--r--src/components/ParksTable.astro16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/components/ParksTable.astro b/src/components/ParksTable.astro
index 8121201..5dbaa9c 100644
--- a/src/components/ParksTable.astro
+++ b/src/components/ParksTable.astro
@@ -35,6 +35,12 @@ function facilityBadges(p: Park): Badge[] {
if (p["遊具"]) {
badges.push({ kind: "toy", label: "遊具", title: `遊具: ${p["遊具"]}` });
}
+ if (p["パーゴラ"]) {
+ badges.push({ kind: "pergola", label: "パーゴラ", title: `パーゴラ: ${p["パーゴラ"]}` });
+ }
+ if (p["東屋"]) {
+ badges.push({ kind: "azumaya", label: "東屋", title: `東屋: ${p["東屋"]}` });
+ }
const ball = p["ボール遊び"];
if (ball && ball !== "禁止") {
const label = ball.includes("一部") ? "ボール遊び一部可" : "ボール遊び可";
@@ -52,6 +58,8 @@ function facTokens(p: Park): string {
if (p["トイレ"]) tokens.push("toilet");
if (p["水飲み場"]) tokens.push("water");
if (p["遊具"]) tokens.push("toy");
+ if (p["パーゴラ"]) tokens.push("pergola");
+ if (p["東屋"]) tokens.push("azumaya");
const ball = p["ボール遊び"];
if (ball && ball !== "禁止") tokens.push("ball");
if (p["南西部指定管理"]) tokens.push("cm");
@@ -149,6 +157,8 @@ const total = parks.length;
<label><input type="checkbox" data-fac-filter value="toilet" />トイレ</label>
<label><input type="checkbox" data-fac-filter value="water" />水飲み場</label>
<label><input type="checkbox" data-fac-filter value="toy" />遊具</label>
+ <label><input type="checkbox" data-fac-filter value="pergola" />パーゴラ</label>
+ <label><input type="checkbox" data-fac-filter value="azumaya" />東屋</label>
<label><input type="checkbox" data-fac-filter value="ball" />ボール遊び</label>
<label><input type="checkbox" data-fac-filter value="cm" />指定管理</label>
</fieldset>
@@ -440,6 +450,12 @@ const total = parks.length;
.parks .fac-cm::before {
content: "🏛";
}
+ .parks .fac-pergola::before {
+ content: "🌿";
+ }
+ .parks .fac-azumaya::before {
+ content: "🛖";
+ }
.parks .fac-detail {
display: block;
margin-top: 0.25em;