From d0eb8e6a0f85759a34114596976ef4c1eb4f0258 Mon Sep 17 00:00:00 2001 From: Dawid Rycerz Date: Tue, 22 Jul 2025 18:34:58 +0300 Subject: Fix scroll --- src/components/widgets/ContactHeader.astro | 73 +++++++++++++++++++++++++ src/components/widgets/Map.astro | 88 +++++++++++++++++++++++++----- 2 files changed, 147 insertions(+), 14 deletions(-) create mode 100644 src/components/widgets/ContactHeader.astro (limited to 'src/components') diff --git a/src/components/widgets/ContactHeader.astro b/src/components/widgets/ContactHeader.astro new file mode 100644 index 0000000..e3433b1 --- /dev/null +++ b/src/components/widgets/ContactHeader.astro @@ -0,0 +1,73 @@ +--- +// ContactHeader - A simple header component with phone number and social media links +// This is different from the main navigation Header component +import { Icon } from 'astro-icon/components'; +import { SITE } from 'astrowind:config'; + +interface Link { + text?: string; + href?: string; + ariaLabel?: string; + icon?: string; +} + +interface Links { + text?: string; + href?: string; + links?: Array; +} + +export interface ContactHeaderProps { + links?: Array; + actions?: Array; + isSticky?: boolean; + showRssFeed?: boolean; + showToggleTheme?: boolean; + position?: string; +} + +const { isSticky = false } = Astro.props; +--- + + diff --git a/src/components/widgets/Map.astro b/src/components/widgets/Map.astro index 76d81a4..ec36669 100644 --- a/src/components/widgets/Map.astro +++ b/src/components/widgets/Map.astro @@ -24,8 +24,8 @@ const coordinates = { lon: lon, }; -// Create map URL with proper coordinates -const mapUrl = `https://www.openstreetmap.org/export/embed.html?bbox=${coordinates.lon - 0.01},${coordinates.lat - 0.01},${coordinates.lon + 0.01},${coordinates.lat + 0.01}&layer=mapnik&marker=${coordinates.lat},${coordinates.lon}`; +// Create map URL with proper coordinates and disabled scroll wheel zoom +const mapUrl = `https://www.openstreetmap.org/export/embed.html?bbox=${coordinates.lon - 0.01},${coordinates.lat - 0.01},${coordinates.lon + 0.01},${coordinates.lat + 0.01}&layer=mapnik&marker=${coordinates.lat},${coordinates.lon}&scrollWheelZoom=false`; --- @@ -33,18 +33,78 @@ const mapUrl = `https://www.openstreetmap.org/export/embed.html?bbox=${coordinat
- +
+ + +