MapGoogle, poprawki w stopce i kontaktach
This commit is contained in:
@@ -9,7 +9,7 @@ const footer = yaml.load(
|
|||||||
---
|
---
|
||||||
|
|
||||||
<footer
|
<footer
|
||||||
class="fuz-footer bg-[var(--fuz-bg)] text-[var(--fuz-text)] mt-20 border-t border-gray-200 dark:border-slate-700"
|
class="fuz-footer bg-[var(--fuz-bg)] text-[var(--fuz-text)] mt-0 border-t border-gray-200 dark:border-slate-700"
|
||||||
>
|
>
|
||||||
<!-- GŁÓWNY GRID -->
|
<!-- GŁÓWNY GRID -->
|
||||||
<div class="footer-inner max-w-7xl mx-auto px-6 grid md:grid-cols-3 gap-12">
|
<div class="footer-inner max-w-7xl mx-auto px-6 grid md:grid-cols-3 gap-12">
|
||||||
@@ -23,9 +23,8 @@ const footer = yaml.load(
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Kolumna 2 – Kontakt -->
|
<!-- Kolumna 2 – Kontakt -->
|
||||||
<div class="space-y-1">
|
<div class="footer-col space-y-1">
|
||||||
<h4 class="fuz-footer-title">Kontakt</h4>
|
<h4 class="fuz-footer-title">Kontakt</h4>
|
||||||
|
|
||||||
{
|
{
|
||||||
footer.contact.phones.map((phone: string) => (
|
footer.contact.phones.map((phone: string) => (
|
||||||
<p class="fuz-footer-text">
|
<p class="fuz-footer-text">
|
||||||
@@ -44,7 +43,7 @@ const footer = yaml.load(
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Kolumna 3 – Usługi -->
|
<!-- Kolumna 3 – Usługi -->
|
||||||
<div>
|
<div class="footer-col">
|
||||||
<h4 class="fuz-footer-title">Usługi</h4>
|
<h4 class="fuz-footer-title">Usługi</h4>
|
||||||
<ul class="space-y-1">
|
<ul class="space-y-1">
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,79 +1,113 @@
|
|||||||
---
|
---
|
||||||
|
import "../../styles/map-google.css";
|
||||||
const {
|
const {
|
||||||
apiKey,
|
apiKey,
|
||||||
lat,
|
lat,
|
||||||
lon,
|
lon,
|
||||||
zoom = 15,
|
zoom = 12,
|
||||||
title = "",
|
title = "",
|
||||||
description = "",
|
description = "",
|
||||||
|
showMarker = false,
|
||||||
|
mode = "full", // "full" – mapa na całą sekcję, wszystko inne => karta
|
||||||
} = Astro.props;
|
} = Astro.props;
|
||||||
import "../../styles/map-google.css";
|
|
||||||
|
const mapId = `fuz-map-${Math.random().toString(36).slice(2)}`;
|
||||||
---
|
---
|
||||||
|
|
||||||
<div class="fuz-map-wrapper">
|
<div
|
||||||
<div
|
id={mapId}
|
||||||
id="fuz-map-google"
|
class={mode === "full"
|
||||||
class="fuz-map-google"
|
? "fuz-map--full"
|
||||||
data-lat={lat}
|
: mode === "contact"
|
||||||
data-lon={lon}
|
? "fuz-map--contact"
|
||||||
data-title={title}
|
: "fuz-map--card"}
|
||||||
data-description={description}
|
data-lat={lat}
|
||||||
>
|
data-lon={lon}
|
||||||
</div>
|
data-zoom={zoom}
|
||||||
|
data-title={title}
|
||||||
|
data-desc={description}
|
||||||
|
data-showmarker={showMarker}
|
||||||
|
>
|
||||||
</div>
|
</div>
|
||||||
<!-- TODO: Popracować nad wygladem markera -->
|
|
||||||
<script is:inline>
|
|
||||||
window.initFuzGoogleMap = function () {
|
|
||||||
const el = document.getElementById("fuz-map-google");
|
|
||||||
if (!el) return;
|
|
||||||
|
|
||||||
const lat = Number(el.dataset.lat);
|
<script is:inline define:vars={{ apiKey, mapId }}>
|
||||||
const lon = Number(el.dataset.lon);
|
(function () {
|
||||||
const title = el.dataset.title || "";
|
// Funkcja inicjująca JEDNĄ konkretną mapę
|
||||||
const desc = el.dataset.description || "";
|
function initSingleMap() {
|
||||||
|
const el = document.getElementById(mapId);
|
||||||
|
if (!el || !window.google || !google.maps) return;
|
||||||
|
|
||||||
const map = new google.maps.Map(el, {
|
const lat = Number(el.dataset.lat);
|
||||||
zoom: Number(`{{zoom}}`) || 15,
|
const lon = Number(el.dataset.lon);
|
||||||
center: { lat, lng: lon },
|
const zoom = Number(el.dataset.zoom);
|
||||||
mapTypeControl: false,
|
const title = el.dataset.title || "";
|
||||||
scrollwheel: false,
|
const desc = el.dataset.desc || "";
|
||||||
zoomControl: true,
|
const showMarker = el.dataset.showmarker === "true";
|
||||||
streetViewControl: false,
|
|
||||||
});
|
|
||||||
|
|
||||||
const infowindow = new google.maps.InfoWindow({
|
const map = new google.maps.Map(el, {
|
||||||
content: `<div class="fuz-map-infowindow"><b>${title}</b><br/>${desc}</div>`,
|
zoom,
|
||||||
});
|
center: { lat, lng: lon },
|
||||||
|
mapTypeControl: false,
|
||||||
const marker = new google.maps.Marker({
|
fullscreenControl: false,
|
||||||
position: { lat, lng: lon },
|
streetViewControl: false,
|
||||||
map,
|
scrollwheel: false,
|
||||||
title,
|
zoomControl: true,
|
||||||
});
|
|
||||||
|
|
||||||
marker.addListener("click", () => {
|
|
||||||
infowindow.open({
|
|
||||||
map,
|
|
||||||
anchor: marker,
|
|
||||||
shouldFocus: false,
|
|
||||||
});
|
});
|
||||||
});
|
|
||||||
|
|
||||||
// auto-open popup on load
|
// Zapamiętujemy mapę globalnie (np. dla KML / markerów z zewnątrz)
|
||||||
setTimeout(() => {
|
if (!window.fuzMaps) window.fuzMaps = {};
|
||||||
infowindow.open({
|
window.fuzMaps[mapId] = map;
|
||||||
map,
|
|
||||||
anchor: marker,
|
|
||||||
shouldFocus: false,
|
|
||||||
});
|
|
||||||
}, 100);
|
|
||||||
|
|
||||||
// Light fade-in
|
if (showMarker) {
|
||||||
el.classList.add("loaded");
|
const marker = new google.maps.Marker({
|
||||||
};
|
position: { lat, lng: lon },
|
||||||
|
map,
|
||||||
|
});
|
||||||
|
|
||||||
|
if (title) {
|
||||||
|
const info = new google.maps.InfoWindow({
|
||||||
|
content: `
|
||||||
|
<div class="fuz-map-infowindow">
|
||||||
|
<strong>${title}</strong><br/>
|
||||||
|
${desc}
|
||||||
|
</div>
|
||||||
|
`,
|
||||||
|
});
|
||||||
|
info.open(map, marker);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 1) Jeśli Google Maps JUŻ załadowane → inicjuj od razu
|
||||||
|
if (window.google && window.google.maps) {
|
||||||
|
initSingleMap();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 2) Jeżeli jeszcze NIE ma Google Maps → przygotuj kolejkę
|
||||||
|
if (!window.FUZ_GOOGLE_MAPS_LOADER) {
|
||||||
|
window.FUZ_GOOGLE_MAPS_LOADER = true;
|
||||||
|
window.FUZ_GOOGLE_MAPS_QUEUE = [];
|
||||||
|
|
||||||
|
window.FUZ_initGoogleMaps = function () {
|
||||||
|
// Wołana przez &callback=FUZ_initGoogleMaps
|
||||||
|
(window.FUZ_GOOGLE_MAPS_QUEUE || []).forEach((fn) => {
|
||||||
|
try {
|
||||||
|
fn();
|
||||||
|
} catch (e) {
|
||||||
|
console.error(e);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
window.FUZ_GOOGLE_MAPS_QUEUE = [];
|
||||||
|
};
|
||||||
|
|
||||||
|
const s = document.createElement("script");
|
||||||
|
s.src = `https://maps.googleapis.com/maps/api/js?key=${apiKey}&callback=FUZ_initGoogleMaps`;
|
||||||
|
s.async = true;
|
||||||
|
document.head.appendChild(s);
|
||||||
|
}
|
||||||
|
|
||||||
|
// 3) Dodaj tę mapę do kolejki, żeby odpaliła się po załadowaniu SDK
|
||||||
|
window.FUZ_GOOGLE_MAPS_QUEUE.push(initSingleMap);
|
||||||
|
})();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script
|
|
||||||
async
|
|
||||||
src={`https://maps.googleapis.com/maps/api/js?key=${apiKey}&callback=initFuzGoogleMap`}
|
|
||||||
></script>
|
|
||||||
|
|||||||
15
src/components/maps/MapSwitch.astro
Normal file
15
src/components/maps/MapSwitch.astro
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
---
|
||||||
|
const { id, label } = Astro.props;
|
||||||
|
---
|
||||||
|
|
||||||
|
<label class="flex items-center gap-2 cursor-pointer select-none text-sm">
|
||||||
|
<input
|
||||||
|
id={id}
|
||||||
|
type="checkbox"
|
||||||
|
class="h-4 w-4 rounded border-gray-400"
|
||||||
|
onchange={id === "fiber-toggle"
|
||||||
|
? "fiberRangeShow()"
|
||||||
|
: "radioRangeShow()"}
|
||||||
|
/>
|
||||||
|
<span>{label}</span>
|
||||||
|
</label>
|
||||||
@@ -9,6 +9,7 @@ const data = yaml.load(
|
|||||||
);
|
);
|
||||||
const apiKey = import.meta.env.PUBLIC_GOOGLE_MAPS_KEY;
|
const apiKey = import.meta.env.PUBLIC_GOOGLE_MAPS_KEY;
|
||||||
---
|
---
|
||||||
|
|
||||||
<!-- TODO: Obrobić wysyłanie maila przez api -->
|
<!-- TODO: Obrobić wysyłanie maila przez api -->
|
||||||
<section id="contact" class="fuz-section">
|
<section id="contact" class="fuz-section">
|
||||||
<!-- GRID 2 kolumny -->
|
<!-- GRID 2 kolumny -->
|
||||||
@@ -95,15 +96,18 @@ const apiKey = import.meta.env.PUBLIC_GOOGLE_MAPS_KEY;
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- GOOGLE MAPS -->
|
<div class="fuz-contact-map-wrapper">
|
||||||
<MapGoogle
|
<MapGoogle
|
||||||
apiKey={apiKey}
|
apiKey={apiKey}
|
||||||
lat={data.lat}
|
lat={data.lat}
|
||||||
lon={data.lng}
|
lon={data.lng}
|
||||||
zoom={16}
|
zoom={16}
|
||||||
title={data.markerTitle}
|
title={data.markerTitle}
|
||||||
description={data.markerAddress}
|
description={data.markerAddress}
|
||||||
/>
|
showMarker={true}
|
||||||
|
mode="contact"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div id="toast" class="fuz-toast hidden"></div>
|
<div id="toast" class="fuz-toast hidden"></div>
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ import Header from "../components/layout/Header.astro";
|
|||||||
import Footer from "../components/layout/Footer.astro";
|
import Footer from "../components/layout/Footer.astro";
|
||||||
import ThemeToggle from "../islands/ThemeToggle.jsx";
|
import ThemeToggle from "../islands/ThemeToggle.jsx";
|
||||||
|
|
||||||
|
|
||||||
const { seo } = Astro.props;
|
const { seo } = Astro.props;
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -20,8 +19,7 @@ const { seo } = Astro.props;
|
|||||||
</main>
|
</main>
|
||||||
|
|
||||||
<Footer />
|
<Footer />
|
||||||
|
<div class="fixed right-4 bottom-4 z-50">
|
||||||
<div class="fixed right-4 bottom-4 z-50">
|
|
||||||
<ThemeToggle client:load />
|
<ThemeToggle client:load />
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
@@ -1,20 +1,217 @@
|
|||||||
---
|
---
|
||||||
import DefaultLayout from "../../layouts/DefaultLayout.astro";
|
import DefaultLayout from "../../layouts/DefaultLayout.astro";
|
||||||
|
import MapGoogle from "../../components/maps/MapGoogle.astro";
|
||||||
|
import MapSwitch from "../../components/maps/MapSwitch.astro";
|
||||||
|
|
||||||
const seo = {
|
const apiKey = import.meta.env.PUBLIC_GOOGLE_MAPS_KEY;
|
||||||
title: "Mapa zasięgu – FUZ",
|
const lat = 52.597388
|
||||||
description: "Mapa zasięgu – FUZ",
|
const lon = 21.456797;
|
||||||
canonical: "/mapa-zasiegu"
|
|
||||||
};
|
|
||||||
---
|
---
|
||||||
|
|
||||||
<DefaultLayout seo={seo}>
|
<DefaultLayout title="FUZ Mapa zasięgu sieci">
|
||||||
<section class="fuz-section">
|
|
||||||
<div class="fuz-container">
|
<section class="flex flex-col md:flex-row min-h-screen">
|
||||||
<h1 class="fuz-hero-title">Mapa zasięgu – FUZ</h1>
|
|
||||||
<p class="mt-4 text-gray-600 dark:text-gray-300">
|
<!-- PANEL (mobile = pełna szerokość, desktop = 340px) -->
|
||||||
Ta podstrona jest na razie szkieletem. Możemy tu później wczytać treść z YAML.
|
<aside
|
||||||
</p>
|
class="w-full md:w-[340px]
|
||||||
|
bg-[var(--fuz-bg)]
|
||||||
|
text-[var(--fuz-text)]
|
||||||
|
border-r border-gray-200 dark:border-slate-700
|
||||||
|
pt-6 px-6
|
||||||
|
flex flex-col gap-6
|
||||||
|
overflow-y-auto
|
||||||
|
z-40">
|
||||||
|
|
||||||
|
<h3 class="text-3xl">Pokaż zasięg sieci</h3>
|
||||||
|
|
||||||
|
<div class="flex flex-col gap-4">
|
||||||
|
<MapSwitch id="fiber-toggle" label="ZASIĘG ŚWIATŁOWODU" />
|
||||||
|
<MapSwitch id="radio-toggle" label="ZASIĘG RADIOWY" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
|
||||||
|
<h3 class="text-3xl">Sprawdź dostępność</h3>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<label class="block text-sm mb-1 text-[var(--fuz-text)]">Miasto</label>
|
||||||
|
<select id="city" class="fuz-input"></select>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<label class="block text-sm mb-1">Ulica</label>
|
||||||
|
<select id="street" class="fuz-input"></select>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<label class="block text-sm mb-1">Numer</label>
|
||||||
|
<input id="number" type="text" placeholder="np. 1A" class="fuz-input" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<button id="search-btn" class="btn btn-outline w-full py-3">
|
||||||
|
Sprawdź dostępność →
|
||||||
|
</button>
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<!-- MAPA (mobile = wysoka, desktop = pełna wysokość) -->
|
||||||
|
<div class="flex-1 relative z-10 min-h-[70vh] md:min-h-0">
|
||||||
|
<MapGoogle
|
||||||
|
apiKey={apiKey}
|
||||||
|
lat={lat}
|
||||||
|
lon={lon}
|
||||||
|
zoom={14}
|
||||||
|
showMarker={true}
|
||||||
|
mode="full"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- ======================= -->
|
||||||
|
<!-- LOGIKA MAPY (KML warstwy) -->
|
||||||
|
<!-- ======================= -->
|
||||||
|
<script is:inline>
|
||||||
|
let fiberLayer = null;
|
||||||
|
let radioLayer = null;
|
||||||
|
|
||||||
|
function getActiveMap() {
|
||||||
|
if (!window.fuzMaps) return null;
|
||||||
|
// pobierz pierwszą mapę na stronie
|
||||||
|
return Object.values(window.fuzMaps)[0] || null;
|
||||||
|
}
|
||||||
|
|
||||||
|
function fiberRangeShow() {
|
||||||
|
const map = getActiveMap();
|
||||||
|
if (!map) return;
|
||||||
|
|
||||||
|
if (fiberLayer) {
|
||||||
|
fiberLayer.setMap(null);
|
||||||
|
fiberLayer = null;
|
||||||
|
} else {
|
||||||
|
fiberLayer = new google.maps.KmlLayer(
|
||||||
|
"https://www.google.com/maps/d/kml?mid=1Or8SF_9qx6QMdidS-99V_jqQuhF9de0&forcekml=1",
|
||||||
|
{ suppressInfoWindows: true, preserveViewport: false }
|
||||||
|
);
|
||||||
|
fiberLayer.setMap(map);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function radioRangeShow() {
|
||||||
|
const map = getActiveMap();
|
||||||
|
if (!map) return;
|
||||||
|
|
||||||
|
if (radioLayer) {
|
||||||
|
radioLayer.setMap(null);
|
||||||
|
radioLayer = null;
|
||||||
|
} else {
|
||||||
|
radioLayer = new google.maps.KmlLayer(
|
||||||
|
"https://www.google.com/maps/d/kml?mid=1c08LxJ9uCbWWfCCyopJmAMLQI1rmTkA&forcekml=1",
|
||||||
|
{ suppressInfoWindows: true, preserveViewport: true }
|
||||||
|
);
|
||||||
|
radioLayer.setMap(map);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<!-- LOGIKA MIASTO/ULICA/NUMER – możesz tymczasowo wyłączyć API -->
|
||||||
|
<script is:inline>
|
||||||
|
const citySelect = document.getElementById("city");
|
||||||
|
const streetSelect = document.getElementById("street");
|
||||||
|
const numberInput = document.getElementById("number");
|
||||||
|
const searchBtn = document.getElementById("search-btn");
|
||||||
|
|
||||||
|
async function loadCities() {
|
||||||
|
try {
|
||||||
|
const res = await fetch("/api/cities");
|
||||||
|
if (!res.ok) throw new Error("API off");
|
||||||
|
const list = await res.json();
|
||||||
|
citySelect.innerHTML = list.map(c => `<option>${c}</option>`).join("");
|
||||||
|
loadStreets();
|
||||||
|
} catch {
|
||||||
|
console.info("API do zasięgu wyłączone — czeka na backend.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
async function loadStreets() {
|
||||||
|
try {
|
||||||
|
const city = citySelect.value;
|
||||||
|
const res = await fetch(`/api/streets?city=${encodeURIComponent(city)}`);
|
||||||
|
if (!res.ok) throw new Error("API off");
|
||||||
|
const list = await res.json();
|
||||||
|
streetSelect.innerHTML = list.map(s => `<option>${s}</option>`).join("");
|
||||||
|
} catch {
|
||||||
|
// ignorujemy na razie
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
citySelect?.addEventListener("change", loadStreets);
|
||||||
|
|
||||||
|
searchBtn?.addEventListener("click", async () => {
|
||||||
|
const city = citySelect.value;
|
||||||
|
const street = streetSelect.value;
|
||||||
|
const number = numberInput.value.trim();
|
||||||
|
|
||||||
|
if (!number) {
|
||||||
|
showToast("Podaj numer domu / lokalu.", "error");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
const res = await fetch("/api/search", {
|
||||||
|
method: "POST",
|
||||||
|
headers: { "Content-Type": "application/json" },
|
||||||
|
body: JSON.stringify({ city, street, number }),
|
||||||
|
});
|
||||||
|
|
||||||
|
if (!res.ok) throw new Error("API off");
|
||||||
|
|
||||||
|
const result = await res.json();
|
||||||
|
|
||||||
|
if (!result) {
|
||||||
|
showToast("Brak usługi pod wskazanym adresem.", "info");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (typeof showAddressOnMap === "function") {
|
||||||
|
showAddressOnMap(result);
|
||||||
|
showToast("Znaleziono adres – zaznaczono na mapie!", "success");
|
||||||
|
}
|
||||||
|
} catch {
|
||||||
|
showToast("API do zasięgu wyłączone — czeka na backend.", "info");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
loadCities();
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<!-- TOAST -->
|
||||||
|
<div
|
||||||
|
id="toast"
|
||||||
|
class="fixed top-5 left-1/2 -translate-x-1/2 z-[9999]
|
||||||
|
space-y-3 flex flex-col items-center"
|
||||||
|
></div>
|
||||||
|
|
||||||
|
<script is:inline>
|
||||||
|
function showToast(message, type = "info") {
|
||||||
|
const toastContainer = document.getElementById("toast");
|
||||||
|
|
||||||
|
const el = document.createElement("div");
|
||||||
|
el.className = `
|
||||||
|
px-4 py-3 rounded-xl shadow-lg text-white text-sm
|
||||||
|
animate-fade-in-down
|
||||||
|
${type === "error" ? "bg-red-600" : ""}
|
||||||
|
${type === "success" ? "bg-green-600" : ""}
|
||||||
|
${type === "info" ? "bg-[var(--fuz-accent)]" : ""}
|
||||||
|
`;
|
||||||
|
el.textContent = message;
|
||||||
|
|
||||||
|
toastContainer.appendChild(el);
|
||||||
|
|
||||||
|
setTimeout(() => {
|
||||||
|
el.style.opacity = 0;
|
||||||
|
el.style.transform = "translateY(-10px)";
|
||||||
|
setTimeout(() => el.remove(), 300);
|
||||||
|
}, 3000);
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
</DefaultLayout>
|
</DefaultLayout>
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.footer-col {
|
.footer-col {
|
||||||
@apply max-w-sm;
|
@apply max-w-sm pt-4;
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer-inner {
|
.footer-inner {
|
||||||
|
|||||||
@@ -1,55 +1,23 @@
|
|||||||
.fuz-map-wrapper {
|
/* PODSTAWY */
|
||||||
@apply max-w-7xl mx-auto mt-16;
|
.fuz-map {
|
||||||
|
@apply w-full;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fuz-map-container {
|
/* Pełna mapa (zasięg) */
|
||||||
@apply w-full h-[400px] rounded-xl shadow-lg;
|
.fuz-map--full {
|
||||||
|
@apply absolute inset-0 w-full h-full mt-4 md:mt-0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fuz-map-google {
|
/* Mapa na stronie kontaktu */
|
||||||
@apply w-full h-[450px] rounded-xl overflow-hidden relative;
|
.fuz-map--contact {
|
||||||
background: linear-gradient(90deg, #e0e0e0 0px, #f5f5f5 40px, #e0e0e0 80px);
|
@apply w-full h-[350px] md:h-[450px] overflow-hidden shadow-lg;
|
||||||
background-size: 200% 100%;
|
|
||||||
animation: mapSkeleton 1.5s infinite;
|
|
||||||
opacity: 0;
|
|
||||||
transition: opacity 0.6s ease;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes mapSkeleton {
|
/* Mała karta mapy (inne sekcje) */
|
||||||
from {
|
.fuz-map--card {
|
||||||
background-position: 200% 0;
|
@apply w-full h-[350px] overflow-hidden mt-8;
|
||||||
}
|
|
||||||
|
|
||||||
to {
|
|
||||||
background-position: -200% 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
.fuz-contact-map-wrapper {
|
||||||
.fuz-map-google.loaded {
|
/* @apply col-span-2 w-full border-cyan-200; */
|
||||||
animation: none;
|
@apply w-full max-w-7xl mx-auto mt-6;
|
||||||
background: transparent;
|
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
|
||||||
.fuz-map-google {
|
|
||||||
@apply h-[300px];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.fuz-map-infowindow {
|
|
||||||
/* background: var(--fuz-bg); */
|
|
||||||
color: var(--fuz-text);
|
|
||||||
@apply ml-1 mr-6 text-lg leading-snug ;
|
|
||||||
border-radius: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.gm-style-iw-d {
|
|
||||||
padding-top: 2px !important;
|
|
||||||
padding-bottom: 6px !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.gm-style-iw-c {
|
|
||||||
padding-top: 2px !important;
|
|
||||||
padding-bottom: 2px !important;
|
|
||||||
}
|
}
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
.fuz-section {
|
.fuz-section {
|
||||||
@apply py-10 px-4;
|
@apply py-10 mx-2;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fuz-section-grid {
|
.fuz-section-grid {
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.fuz-section-title {
|
.fuz-section-title {
|
||||||
@apply text-5xl md:text-5xl font-bold mb-6;
|
@apply text-4xl md:text-5xl font-bold mb-6;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fuz-section-text {
|
.fuz-section-text {
|
||||||
|
|||||||
Reference in New Issue
Block a user