diff --git a/src/components/hero/Hero.astro b/src/components/hero/Hero.astro
index 1525706..82caf02 100644
--- a/src/components/hero/Hero.astro
+++ b/src/components/hero/Hero.astro
@@ -9,7 +9,6 @@ const {
ctas = []
} = Astro.props;
-// Automatyczne wczytanie wszystkich obrazów hero
const images = import.meta.glob<{ default: ImageMetadata }>('/src/assets/hero/*.{png,jpg,jpeg,webp,avif}', {
eager: true
});
@@ -44,7 +43,6 @@ const isLCP = true;
)}
-
{Array.isArray(title)
? title.map(line => (
{line}
diff --git a/src/components/layout/Header.astro b/src/components/layout/Header.astro
index f6001c5..d531b2a 100644
--- a/src/components/layout/Header.astro
+++ b/src/components/layout/Header.astro
@@ -7,7 +7,7 @@ const links = [
{ name: "INTERNET I TELEWIZJA", href: "/internet-telewizja" },
{ name: "TELEFON", href: "/telefon" },
{ name: "ZASIĘG SIECI", href: "/mapa-zasiegu" },
- { name: "KONTAKT", href: "/#contact" },
+ { name: "KONTAKT", href: "/kontakt" },
{
name: "BOK",
href: "https://panel.fuz.pl/userpanel/auth",
diff --git a/src/components/maps/CitiesList.astro b/src/components/maps/CitiesList.astro
index 5002f2a..1a6f24a 100644
--- a/src/components/maps/CitiesList.astro
+++ b/src/components/maps/CitiesList.astro
@@ -1,12 +1,10 @@
---
const { cities = [] } = Astro.props;
-
-// sortujemy alfabetycznie
const sorted = cities.sort((a: string, b: any) => a.localeCompare(b, "pl"));
---
-
Miejscowości w zasięgu sieci światłowodowej i radiowej
+
Miejscowości w zasięgu sieci światłowodowej
{sorted.map((city: unknown) => (
@@ -20,7 +18,6 @@ const sorted = cities.sort((a: string, b: any) => a.localeCompare(b, "pl"));
background: var(--f-background);
color: var(--f-text);
-
padding: 16px;
}
diff --git a/src/components/maps/MapGoogle.astro b/src/components/maps/MapGoogle.astro
index 9cf5f89..3cd6e46 100644
--- a/src/components/maps/MapGoogle.astro
+++ b/src/components/maps/MapGoogle.astro
@@ -13,7 +13,7 @@ const {
description = "",
showMarker = false,
mode = "full",
- mapStyleId = "8e0a97af9476f2d3" // Google DEMO mapId (legalne, bez warningów)
+ mapStyleId = "8e0a97af9476f2d3"
} = Astro.props;
/** ID kontenera w DOM */
@@ -119,9 +119,11 @@ const domId = `fuz-map-${Math.random().toString(36).slice(2)}`;
if (title || desc) {
const info = new InfoWindow({
content: `
-
-
${title}
- ${desc}
+
+
`
});
diff --git a/src/components/maps/MapSwitch.astro b/src/components/maps/MapSwitch.astro
deleted file mode 100644
index 91634bd..0000000
--- a/src/components/maps/MapSwitch.astro
+++ /dev/null
@@ -1,15 +0,0 @@
----
-const { id, label } = Astro.props;
----
-
-
diff --git a/src/components/sections/SectionContact.astro b/src/components/sections/SectionContact.astro
index 4dbbfb7..61e11bb 100644
--- a/src/components/sections/SectionContact.astro
+++ b/src/components/sections/SectionContact.astro
@@ -1,184 +1,125 @@
---
import yaml from "js-yaml";
import fs from "fs";
-import MapGoogle from "../maps/MapGoogle.astro";
-// import "../../styles/contact.css";
+import MapGoogle from "../../components/maps/MapGoogle.astro";
const data = yaml.load(
- fs.readFileSync("./src/content/contact/contact.yaml", "utf8"),
+ fs.readFileSync("./src/content/contact/contact.yaml", "utf8")
);
+
const apiKey = import.meta.env.PUBLIC_GOOGLE_MAPS_KEY;
const form = data.form;
---
-