diff --git a/components/AboutContent.tsx b/components/AboutContent.tsx index 3693a1e..7896b1d 100644 --- a/components/AboutContent.tsx +++ b/components/AboutContent.tsx @@ -1,6 +1,7 @@ 'use client'; import React from 'react'; +import Image from 'next/image'; import { Award, Clock, Lightbulb, Linkedin, MessageSquare, ShieldCheck, Truck } from 'lucide-react'; import { Reveal } from './Reveal'; import { TechBackground } from './TechBackground'; @@ -13,9 +14,12 @@ export default function About() { {/* Hero Section */}
-
diff --git a/components/Button.tsx b/components/Button.tsx index ba50edf..3abbf57 100644 --- a/components/Button.tsx +++ b/components/Button.tsx @@ -1,7 +1,7 @@ 'use client'; import React, { useRef, useState } from 'react'; -import { motion } from 'framer-motion'; +import { m, LazyMotion, domAnimation } from 'framer-motion'; import Link from 'next/link'; import { ArrowRight } from 'lucide-react'; @@ -60,13 +60,15 @@ export const Button = ({ ); const spotlight = ( - + + ); const buttonProps = { diff --git a/components/ContactContent.tsx b/components/ContactContent.tsx index c97ae3b..f33b0eb 100644 --- a/components/ContactContent.tsx +++ b/components/ContactContent.tsx @@ -1,6 +1,7 @@ 'use client'; import React, { useState } from 'react'; +import Image from 'next/image'; import { Mail, MapPin, CheckCircle } from 'lucide-react'; import { Button } from './Button'; import { Counter } from './Counter'; @@ -41,9 +42,12 @@ export default function Contact() { {/* Hero Section */}
-
diff --git a/components/HomeContent.tsx b/components/HomeContent.tsx index b864232..9cf35bd 100644 --- a/components/HomeContent.tsx +++ b/components/HomeContent.tsx @@ -1,7 +1,8 @@ 'use client'; -import { motion } from 'framer-motion'; +import { m, LazyMotion, domAnimation } from 'framer-motion'; import { BarChart3, CheckCircle2, ChevronRight, Shield, Zap } from 'lucide-react'; +import Image from 'next/image'; import Link from 'next/link'; import { Button } from './Button'; import { Counter } from './Counter'; @@ -59,9 +60,13 @@ export default function Home() { {/* Hero Section */}
-
@@ -169,9 +174,11 @@ export default function Home() {
- Technical Engineering
@@ -214,10 +221,11 @@ export default function Home() { {/* Technical Specs Section */}
- Background
@@ -277,23 +285,25 @@ export default function Home() {
+ - - - +
diff --git a/components/Layout.tsx b/components/Layout.tsx index 37da4ad..8610b77 100644 --- a/components/Layout.tsx +++ b/components/Layout.tsx @@ -1,7 +1,8 @@ 'use client'; -import { AnimatePresence, motion } from 'framer-motion'; +import { AnimatePresence, m, LazyMotion, domAnimation } from 'framer-motion'; import { ArrowUp, Home, Info, Menu, X } from 'lucide-react'; +import Image from 'next/image'; import Link from 'next/link'; import { usePathname } from 'next/navigation'; import React, { useEffect, useState } from 'react'; @@ -55,12 +56,15 @@ const Layout = ({ children }: { children: React.ReactNode }) => { className="relative z-10 flex items-center group" aria-label="MB Grid Solutions - Zur Startseite" > - MB Grid Solutions +
+ MB Grid Solutions +
{/* Desktop Navigation */} @@ -100,9 +104,10 @@ const Layout = ({ children }: { children: React.ReactNode }) => { {/* Mobile Menu Overlay */} + {isMobileMenuOpen && ( - { Projekt anfragen - + )} +
{children} @@ -153,16 +159,18 @@ const Layout = ({ children }: { children: React.ReactNode }) => {
{/* Animated Tech Lines */} - + - + {/* Corner Accents */}
@@ -172,12 +180,14 @@ const Layout = ({ children }: { children: React.ReactNode }) => {
- MB Grid Solutions +
+ MB Grid Solutions +

Ihr spezialisierter Partner für herstellerneutrale technische Beratung und Projektbegleitung bei Energiekabelprojekten bis 110 kV. diff --git a/components/Reveal.tsx b/components/Reveal.tsx index 524e0a7..fc5b531 100644 --- a/components/Reveal.tsx +++ b/components/Reveal.tsx @@ -1,7 +1,7 @@ 'use client'; import React from 'react'; -import { motion } from 'framer-motion'; +import { m, LazyMotion, domAnimation } from 'framer-motion'; interface RevealProps { children: React.ReactNode; @@ -26,9 +26,10 @@ export const Reveal = ({ }; return ( - + {children} - + + ); }; @@ -63,7 +65,8 @@ export const Stagger = ({ staggerDelay = 0.1 }: StaggerProps) => { return ( - + {children} - + + ); }; diff --git a/components/TileGrid.tsx b/components/TileGrid.tsx index f553f51..6bb8dbc 100644 --- a/components/TileGrid.tsx +++ b/components/TileGrid.tsx @@ -1,7 +1,7 @@ 'use client'; import React, { useEffect, useState } from 'react'; -import { motion } from 'framer-motion'; +import { m, LazyMotion, domAnimation } from 'framer-motion'; export const TileGrid = () => { const [mounted, setMounted] = useState(false); @@ -17,26 +17,27 @@ export const TileGrid = () => { return (

+
{[...Array(rows)].map((_, rowIndex) => ( -
{[...Array(cols)].map((_, colIndex) => ( - 0.9 ? 0.25 : 0.05, 0.05], scale: [1, Math.random() > 0.9 ? 1.05 : 1, 1] }} - transition={{ - duration: 5 + Math.random() * 5, - repeat: Infinity, + transition={{ + duration: 5 + Math.random() * 5, + repeat: Infinity, delay: Math.random() * 20, ease: "easeInOut" }} @@ -46,6 +47,7 @@ export const TileGrid = () => {
))}
+
); }; diff --git a/context/framer-features.ts b/context/framer-features.ts new file mode 100644 index 0000000..1996ed4 --- /dev/null +++ b/context/framer-features.ts @@ -0,0 +1,2 @@ +import { domAnimation } from "framer-motion" +export default domAnimation diff --git a/public/media/business/hero-bg.jpg b/public/media/business/hero-bg.jpg new file mode 100644 index 0000000..f77434d Binary files /dev/null and b/public/media/business/hero-bg.jpg differ diff --git a/public/media/business/iStock-1068752548.jpg b/public/media/business/iStock-1068752548.jpg deleted file mode 100644 index 687ecb4..0000000 Binary files a/public/media/business/iStock-1068752548.jpg and /dev/null differ diff --git a/public/media/cables/HS Kabel.png b/public/media/cables/HS Kabel.png deleted file mode 100644 index 7d6329b..0000000 Binary files a/public/media/cables/HS Kabel.png and /dev/null differ diff --git a/public/media/cables/hs-kabel.png b/public/media/cables/hs-kabel.png new file mode 100644 index 0000000..2e0f7b9 Binary files /dev/null and b/public/media/cables/hs-kabel.png differ diff --git a/public/media/drums/about-hero.jpg b/public/media/drums/about-hero.jpg new file mode 100644 index 0000000..3e07473 Binary files /dev/null and b/public/media/drums/about-hero.jpg differ diff --git a/public/media/drums/iStock-487538226 (1).jpg b/public/media/drums/iStock-487538226 (1).jpg deleted file mode 100644 index 9040e87..0000000 Binary files a/public/media/drums/iStock-487538226 (1).jpg and /dev/null differ diff --git a/public/media/laying/contact-hero.jpg b/public/media/laying/contact-hero.jpg new file mode 100644 index 0000000..2a65484 Binary files /dev/null and b/public/media/laying/contact-hero.jpg differ diff --git a/public/media/laying/iStock-1282259999.jpg b/public/media/laying/iStock-1282259999.jpg deleted file mode 100644 index 392ad0f..0000000 Binary files a/public/media/laying/iStock-1282259999.jpg and /dev/null differ