Poprawka w url, pierwsza wersja boxa z listą miejscowości
This commit is contained in:
46
src/components/maps/CitiesList.astro
Normal file
46
src/components/maps/CitiesList.astro
Normal 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>
|
||||
Reference in New Issue
Block a user