diff --git a/components/blocks/CertificatesBlock.tsx b/components/blocks/CertificatesBlock.tsx index 9149b354f..14dc2e86c 100644 --- a/components/blocks/CertificatesBlock.tsx +++ b/components/blocks/CertificatesBlock.tsx @@ -140,7 +140,7 @@ export function CertificatesBlock({ badge, title, description, certificates = de variants={containerVariants} initial="hidden" whileInView="show" - viewport={{ once: true, margin: "-50px" }} + viewport={{ once: true, amount: 0.1 }} > {certificates.map((cert, index) => { const isIso = cert.type === 'iso'; diff --git a/components/blocks/CompetenceBentoGrid.tsx b/components/blocks/CompetenceBentoGrid.tsx index 45cd49921..72a87c35c 100644 --- a/components/blocks/CompetenceBentoGrid.tsx +++ b/components/blocks/CompetenceBentoGrid.tsx @@ -81,12 +81,12 @@ export function CompetenceBentoGrid(props: CompetenceBentoGridProps) { return (
-
+

{badge}

{title}

- diff --git a/components/blocks/InteractiveGermanyMap.tsx b/components/blocks/InteractiveGermanyMap.tsx index a73b42396..ef039ba11 100644 --- a/components/blocks/InteractiveGermanyMap.tsx +++ b/components/blocks/InteractiveGermanyMap.tsx @@ -239,16 +239,16 @@ export function InteractiveGermanyMap({ animate={{ opacity: 1, y: 0, scale: 1 }} exit={{ opacity: 0, y: 10, scale: 0.95 }} transition={{ duration: 0.2 }} - className="absolute z-[9999] pointer-events-auto" + className="absolute z-[9999] pointer-events-auto bottom-[-60px] left-1/2 -translate-x-1/2 w-[calc(100vw-2rem)] max-w-[320px] md:w-max md:bottom-auto md:left-[var(--md-left)] md:top-[var(--md-top)] md:[transform:var(--md-transform)]" style={{ - left: `${activeLocation.x}%`, - top: `${activeLocation.y}%`, - transform: activeLocation.x < 50 ? 'translate(20px, -50%)' : 'translate(calc(-100% - 20px), -50%)', - }} + '--md-left': `${activeLocation.x}%`, + '--md-top': `${activeLocation.y}%`, + '--md-transform': activeLocation.x < 50 ? 'translate(20px, -50%)' : 'translate(calc(-100% - 20px), -50%)', + } as React.CSSProperties} onMouseEnter={() => handleMouseEnter(activeLocation)} onMouseLeave={handleMouseLeave} > -
+
{activeLocation.featuredImage && (
-
-
+
+

{badge}

{title}

-
+
{description}
diff --git a/components/blocks/ServiceDetailGrid.tsx b/components/blocks/ServiceDetailGrid.tsx index 627bd9f17..d8b04d7bc 100644 --- a/components/blocks/ServiceDetailGrid.tsx +++ b/components/blocks/ServiceDetailGrid.tsx @@ -193,7 +193,7 @@ export function ServiceDetailGrid({ {/* On a white card, a very subtle primary/grey shine works best */} -
+

{panel.title}

diff --git a/components/blocks/SubCompanyTiles.tsx b/components/blocks/SubCompanyTiles.tsx index 2a3047e4b..4bed72814 100644 --- a/components/blocks/SubCompanyTiles.tsx +++ b/components/blocks/SubCompanyTiles.tsx @@ -85,7 +85,7 @@ export function SubCompanyTiles(props: SubCompanyTilesProps) { variants={containerVariants} initial="hidden" whileInView="visible" - viewport={{ once: true, margin: "-50px" }} + viewport={{ once: true, amount: 0.1 }} > {companiesData.map((company: any, index: number) => { const isCurrent = company.title.toUpperCase() === 'E-TIB GMBH'; diff --git a/components/layout/Footer.tsx b/components/layout/Footer.tsx index 4c1d2ec11..77360a8a0 100644 --- a/components/layout/Footer.tsx +++ b/components/layout/Footer.tsx @@ -19,7 +19,7 @@ export function Footer({ companyInfo }: FooterProps) { const locale = useLocale(); return ( -