Poprawka w url, pierwsza wersja boxa z listą miejscowości

This commit is contained in:
dm
2025-11-24 08:52:02 +01:00
parent e8881dd23b
commit 28d3f68b1b
2 changed files with 50 additions and 1 deletions

View File

@@ -0,0 +1,46 @@
---
const { cities = [] } = Astro.props;
// sortujemy alfabetycznie
const sorted = cities.sort((a: string, b: any) => a.localeCompare(b, "pl"));
---
<div class="fuz-">
<h4 class="fuz-cities-title">Miejscowości w zasięgu sieci światłowodowej lub radiowej</h4>
<div class="fuz-cities-grid">
{sorted.map((city: unknown) => (
<span class="fuz-city-item">{city}</span>
))}
</div>
</div>
<style>
.fuz-cities-box {
margin-top: 20px;
background: var(--fuz-bg);
color: var(--fuz-text);
border: 1px solid var(--fuz-border, #ddd);
padding: 16px;
border-radius: 12px;
box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.fuz-cities-title {
font-size: 1.2rem;
font-weight: 600;
margin-bottom: 12px;
}
.fuz-cities-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
gap: 6px 14px;
font-size: 0.95rem;
line-height: 1.4;
}
.fuz-city-item {
color: var(--fuz-text);
}
</style>