From f3dc7ea2b22377d9d4e637add4c0eabc3d624306 Mon Sep 17 00:00:00 2001 From: Aaron Date: Tue, 30 Jun 2026 21:41:12 +0200 Subject: [PATCH] feat: first about version --- src/app/about/page.tsx | 76 ++++++++++++++++++++++++++++++++++++++- src/app/page.tsx | 4 +-- src/app/services/page.tsx | 2 +- 3 files changed, 78 insertions(+), 4 deletions(-) diff --git a/src/app/about/page.tsx b/src/app/about/page.tsx index 2b357c9..5eec531 100644 --- a/src/app/about/page.tsx +++ b/src/app/about/page.tsx @@ -1,7 +1,81 @@ +"use client"; + +import { useEffect, useRef } from "react"; + +const sections = [ + { year: "2017", text: "HEWUhueh([]); + + useEffect(() => { + const observer = new IntersectionObserver( + entries => { + entries.forEach(entry => { + if (entry.isIntersecting) { + entry.target.classList.add("opacity-100", "translate-y-0"); + } + }); + }, + { threshold: 0.2 } + ); + + refs.current.forEach(el => el && observer.observe(el)); + return () => observer.disconnect(); + }, []); + return (
+

+ Über uns +

+
+
+ + {/* Mittlere Linie */} +
+
+
+ + {sections.map((section, index) => ( +
{ + refs.current[index] = el; + }} + className="relative mb-20 opacity-0 translate-y-10 transition-all duration-700" + > + {/* Jahr */} +
+ {section.year} +
+ + {/* Text */} +
+

{section.text}

+
+
+ ))} + +
+
); -}; \ No newline at end of file +} diff --git a/src/app/page.tsx b/src/app/page.tsx index 2e3f8dc..2f2b2d3 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -4,14 +4,14 @@ export default function Home() {
-

Willkommen bei MKV Kleinholz +

Willkommen bei MKV Kleinholz

Ihr Mobilkranvermieter aus Mülheim und Umgebung

Mehr erfahren diff --git a/src/app/services/page.tsx b/src/app/services/page.tsx index e7344c4..cf6cf81 100644 --- a/src/app/services/page.tsx +++ b/src/app/services/page.tsx @@ -19,7 +19,7 @@ const sections = [ export default function Services() { return (
-

Über uns

+

Dienstleistungen

{sections.map((section, index) => (