diff --git a/app/[locale]/[slug]/page.tsx b/app/[locale]/[slug]/page.tsx index 4857f9167..48d406fe8 100644 --- a/app/[locale]/[slug]/page.tsx +++ b/app/[locale]/[slug]/page.tsx @@ -229,7 +229,7 @@ export default async function Page(props: { params: Promise<{ locale: string; sl {/* Support Section */} -
+

{t('needHelp')}

diff --git a/app/[locale]/contact/page.tsx b/app/[locale]/contact/page.tsx index ecc9c21a4..23b76b7ca 100644 --- a/app/[locale]/contact/page.tsx +++ b/app/[locale]/contact/page.tsx @@ -150,7 +150,7 @@ export default async function ContactPage({ params }: ContactPageProps) {
{/* Contact Info */} -
+
{t('info.howToReachUs')} @@ -249,7 +249,7 @@ export default async function ContactPage({ params }: ContactPageProps) {
{/* Contact Form */} -
+
diff --git a/app/[locale]/referenzen/page.tsx b/app/[locale]/referenzen/page.tsx index c0f671e92..2e8af3cf5 100644 --- a/app/[locale]/referenzen/page.tsx +++ b/app/[locale]/referenzen/page.tsx @@ -3,19 +3,41 @@ import { getTranslations, setRequestLocale } from 'next-intl/server'; import { Metadata } from 'next'; import { getAllReferences } from '@/lib/references'; import TrackedLink from '@/components/analytics/TrackedLink'; -import { MapPin, Calendar, Briefcase } from 'lucide-react'; +import { MapPin, Calendar, Briefcase, Zap, Activity, ShieldCheck, Wrench, CheckCircle2 } from 'lucide-react'; import { getButtonClasses, ButtonOverlay } from '@/components/ui/Button'; import { SITE_URL } from '@/lib/schema'; import Image from 'next/image'; import { InteractiveGermanyMap } from '@/components/blocks/InteractiveGermanyMap'; import { HeroSection } from '@/components/blocks/HeroSection'; import { defaultLocations, minorLocations } from '@/lib/map-data'; - import { MDXRemote } from 'next-mdx-remote/rsc'; +const CustomLi = ({ children, ...props }: any) => { + let text = ''; + if (typeof children === 'string') text = children; + else if (Array.isArray(children)) text = children.map((c: any) => typeof c === 'string' ? c : '').join(' '); + else if (children?.props?.children) text = children.props.children; + + const lowerText = String(text).toLowerCase(); + + let Icon = CheckCircle2; + if (lowerText.includes('kabel')) Icon = Zap; + else if (lowerText.includes('bohrung')) Icon = Activity; + else if (lowerText.includes('rohr')) Icon = ShieldCheck; + else if (lowerText.includes('montage')) Icon = Wrench; + else if (lowerText.includes('vlf') || lowerText.includes('otdr')) Icon = Zap; + + return ( +
  • + + {children} +
  • + ); +}; + const mdxComponents = { - ul: (props: any) =>
      , - li: (props: any) =>
    • , + ul: (props: any) =>
        , + li: CustomLi, p: (props: any) =>

        , }; @@ -165,7 +187,7 @@ export default async function ReferenzenOverview(props: { params: Promise<{ loca

    {/* Support Section */} -
    +

    {t('nextProjectTitle')}

    diff --git a/app/[locale]/standorte/[slug]/page.tsx b/app/[locale]/standorte/[slug]/page.tsx index 37caced4a..2904527d5 100644 --- a/app/[locale]/standorte/[slug]/page.tsx +++ b/app/[locale]/standorte/[slug]/page.tsx @@ -158,7 +158,7 @@ export default async function StandortDetail(props: { params: Promise<{ locale: {/* Support Section */} -
    +

    {t('needHelp')}

    diff --git a/app/[locale]/standorte/page.tsx b/app/[locale]/standorte/page.tsx index c1791d755..9f947c592 100644 --- a/app/[locale]/standorte/page.tsx +++ b/app/[locale]/standorte/page.tsx @@ -114,7 +114,7 @@ export default async function StandorteOverview(props: { params: Promise<{ local
    {/* Support Section */} -
    +

    {t('nextProjectTitle')}

    diff --git a/components/annotator-local/Annotator.tsx b/components/annotator-local/Annotator.tsx index edd768917..a9eefb23e 100644 --- a/components/annotator-local/Annotator.tsx +++ b/components/annotator-local/Annotator.tsx @@ -239,30 +239,31 @@ export function Annotator({ assets = [], onSubmit }: AnnotatorProps) { return (
    {/* 1. Global Toolbar */} -
    -
    +
    +
    -
    +
    )} diff --git a/components/blocks/BenefitGrid.tsx b/components/blocks/BenefitGrid.tsx index 19301abff..fb5f2a8c6 100644 --- a/components/blocks/BenefitGrid.tsx +++ b/components/blocks/BenefitGrid.tsx @@ -99,7 +99,7 @@ export function BenefitGrid({ badge, title, description, benefits }: BenefitGrid variants={containerVariants} initial="hidden" whileInView="visible" - viewport={{ once: true, margin: "-50px" }} + viewport={{ once: true, amount: 0.1 }} > {benefits.map((benefit, index) => { const bgPositionClasses = [ diff --git a/components/blocks/CompetenceBentoGrid.tsx b/components/blocks/CompetenceBentoGrid.tsx index 72a87c35c..706baea83 100644 --- a/components/blocks/CompetenceBentoGrid.tsx +++ b/components/blocks/CompetenceBentoGrid.tsx @@ -127,8 +127,8 @@ export function CompetenceBentoGrid(props: CompetenceBentoGridProps) { -

    {item.title}

    - {item.description &&

    {item.description}

    } +

    {item.title}

    + {item.description &&

    {item.description}

    } ); } @@ -159,7 +159,7 @@ export function CompetenceBentoGrid(props: CompetenceBentoGridProps) { sizes={isLarge ? "(max-width: 768px) 100vw, 50vw" : "(max-width: 768px) 100vw, 25vw"} />
    -
    +
    )} @@ -177,11 +177,11 @@ export function CompetenceBentoGrid(props: CompetenceBentoGridProps) { {item.tag} )} -

    +

    {item.title}

    {item.description && ( -

    +

    {item.description}

    )} diff --git a/components/blocks/ContactSection.tsx b/components/blocks/ContactSection.tsx index 2818d4de0..20d61698c 100644 --- a/components/blocks/ContactSection.tsx +++ b/components/blocks/ContactSection.tsx @@ -49,7 +49,7 @@ export const ContactSection: React.FC = (props) => { variants={containerVariants} initial="hidden" whileInView="visible" - viewport={{ once: true, margin: "-50px" }} + viewport={{ once: true, amount: 0.1 }} > Direktkontakt Wir sind für Sie da. @@ -104,7 +104,7 @@ export const ContactSection: React.FC = (props) => { variants={formVariants} initial="hidden" whileInView="visible" - viewport={{ once: true, margin: "-50px" }} + viewport={{ once: true, amount: 0.1 }} > @@ -61,7 +61,7 @@ export function GrowthChart() { @@ -77,7 +77,7 @@ export function GrowthChart() { diff --git a/components/blocks/HeroSection.tsx b/components/blocks/HeroSection.tsx index 13cbc462d..228abaefb 100644 --- a/components/blocks/HeroSection.tsx +++ b/components/blocks/HeroSection.tsx @@ -92,7 +92,7 @@ export const HeroSection: React.FC = (props) => { )} - + {title} @@ -104,7 +104,7 @@ export const HeroSection: React.FC = (props) => { )} {ctaLabel && ctaHref && ( - +