diff options
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/ParksTable.astro | 16 |
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; |
