From 3c4653a4c6d5b81ab971e1fa7e7fde7d45019112 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 3 Dec 2025 16:22:22 +0100 Subject: [PATCH] Phase 1: Logo, Auszeichnung, Scroll-Animationen, Copyright 2025, nur echtes Testimonial --- src/App.tsx | 130 +++++++++++++++++++++++++++++++++++++--------------- 1 file changed, 92 insertions(+), 38 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index b33092c..70962cf 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,28 +1,49 @@ -import { useState } from 'react'; +import { useState, useEffect, useRef } from 'react'; import { ChevronDown, Check, Plus, Minus } from 'lucide-react'; +// Custom hook for scroll animations +function useScrollAnimation() { + const ref = useRef(null); + const [isVisible, setIsVisible] = useState(false); + + useEffect(() => { + const observer = new IntersectionObserver( + ([entry]) => { + if (entry.isIntersecting) { + setIsVisible(true); + } + }, + { threshold: 0.1 } + ); + + if (ref.current) { + observer.observe(ref.current); + } + + return () => observer.disconnect(); + }, []); + + return { ref, isVisible }; +} + function App() { const [activeTestimonial, setActiveTestimonial] = useState(0); const [openFaq, setOpenFaq] = useState(null); + // Scroll animation refs + const problemSection = useScrollAnimation(); + const solutionSection = useScrollAnimation(); + const timelineSection = useScrollAnimation(); + const pricingSection = useScrollAnimation(); + const testimonialSection = useScrollAnimation(); + const faqSection = useScrollAnimation(); + const testimonials = [ { quote: "Wir haben das SunHouse mit der Familie schon zweimal besucht und waren restlos überzeugt von der ganzheitlichen Technik und dem Wohlbehagen.", author: "Tom Anand", title: "Zukunftsforscher und Indienexperte", company: "" - }, - { - quote: "Das SunHouse ist das erste Projekt, bei dem ich merkte: Das ist nicht nur Haus. Das ist Geschäftsmodell.", - author: "Thomas K.", - title: "Entwickler, Frankfurt", - company: "Real Estate Developer mit 8.000+ LinkedIn Followern" - }, - { - quote: "Das sollte Standard sein. Manfred zeigt, wie Kommunen ihre Energieunabhängigkeit erreichen.", - author: "Bürgermeister R.", - title: "Bürgermeister, Baden-Württemberg", - company: "Stadt mit 50.000+ Einwohnern" } ]; @@ -46,7 +67,7 @@ function App() { ]; return ( -
+
{/* SECTION 1: HERO */}
+ {/* Logo top left */} +
+ SunHouse Energy Logo +
+

Autark leben erleben @@ -75,10 +105,17 @@ function App() { ↓ Führung Buchen (€79 oder Gruppe) -
-

- ⭐ 40.000+ LinkedIn Follower | Expertenrat seit 40 Jahren -

+
+
+

+ 40.000+ LinkedIn Follower | Expertenrat seit 40 Jahren +

+
+ Auszeichnung: Arbeitgeber der Zukunft
@@ -89,7 +126,12 @@ function App() { {/* SECTION 2: PROBLEM */}
-
+

Das Dilemma der Energiewende

@@ -156,7 +198,12 @@ function App() { {/* SECTION 3: SOLUTION */}
-
+

Das SunHouse Konzept

@@ -255,7 +302,12 @@ function App() { {/* SECTION 4: EXPERIENCE TIMELINE */}
-
+

Deine 90-Minuten-Erfahrung

@@ -333,7 +385,12 @@ function App() { {/* SECTION 5: PRICING */}
-
+

Einführungspreise 2025

@@ -494,7 +551,12 @@ function App() { {/* SECTION 6: TESTIMONIALS */}
-
+

Was Besucher sagen

@@ -510,19 +572,6 @@ function App() {
-
- {testimonials.map((_, index) => ( -
-

⭐ 95%

@@ -542,7 +591,12 @@ function App() { {/* SECTION 7: FAQ */}
-
+

Häufig gestellte Fragen

@@ -671,7 +725,7 @@ function App() {
-

© 2024 SunHouse. Alle Rechte vorbehalten.

+

© 2025 SunHouse. Alle Rechte vorbehalten.