diff --git a/components/blocks/InteractiveGermanyMap.tsx b/components/blocks/InteractiveGermanyMap.tsx index 9083c3dfd..eba223ae8 100644 --- a/components/blocks/InteractiveGermanyMap.tsx +++ b/components/blocks/InteractiveGermanyMap.tsx @@ -4,7 +4,7 @@ import React, { useState } from 'react'; import { motion, AnimatePresence } from 'framer-motion'; import { MapPin, Factory, Zap, CheckCircle2, ArrowUpRight } from 'lucide-react'; import Image from 'next/image'; - +import { useRouter, usePathname } from 'next/navigation'; import Link from 'next/link'; import { AnimatedGlossyBorder } from '@/components/ui/AnimatedGlossyBorder'; import { Location, defaultLocations, minorLocations, projectLocations } from '@/lib/map-data'; @@ -52,7 +52,8 @@ export function InteractiveGermanyMap({ setHoverTimeout(timeout); }; - + const router = useRouter(); + const pathname = usePathname(); const locale = useLocale(); const t = useTranslations('InteractiveGermanyMap'); const tStandard = useTranslations('StandardPage'); @@ -81,10 +82,10 @@ export function InteractiveGermanyMap({ }, [locations, hideStandorte]); return ( -
+
- {/* Animated Border Glow (disabled in hero due to performance lag on 100vw) */} - {!isHero && } + {/* Animated Border Glow */} + {/* Background Effects */}
diff --git a/components/layout/Footer.tsx b/components/layout/Footer.tsx index 61b0578dc..b1e4d3ece 100644 --- a/components/layout/Footer.tsx +++ b/components/layout/Footer.tsx @@ -19,7 +19,7 @@ export function Footer({ companyInfo }: FooterProps) { const locale = useLocale(); return ( -