diff --git a/src/components/Layout.tsx b/src/components/Layout.tsx index 48a992d..a755239 100644 --- a/src/components/Layout.tsx +++ b/src/components/Layout.tsx @@ -59,25 +59,25 @@ export default function Layout() { { items: [ { - label: "Startseite", - href: "#hero", + label: "Impressum", + href: "#", }, { - label: "Über uns", - href: "#about", + label: "Datenschutz", + href: "#", }, ], }, { items: [ - { - label: "Kontakt", - href: "#contact", - }, { label: "Instagram", href: "https://instagram.com/autofix_loerrach", }, + { + label: "WhatsApp", + href: "https://wa.me/4915129747192", + }, ], }, ]} diff --git a/src/index.css b/src/index.css index 44273a9..dbbbc8d 100644 --- a/src/index.css +++ b/src/index.css @@ -6,13 +6,13 @@ :root { /* @colorThemes/lightTheme/grayNavyBlue */ --background: #ffffff; - --card: #f8f9fa; - --foreground: #001122; - --primary-cta: #15479c; + --card: rgba(255, 255, 255, 0.7); + --foreground: #0B1F3A; + --primary-cta: #0066FF; --primary-cta-text: #ffffff; - --secondary-cta: #a8cce8; - --secondary-cta-text: #001122; - --accent: #15479c; + --secondary-cta: #0B1F3A; + --secondary-cta-text: #ffffff; + --accent: #0066FF; --background-accent: #f5faff; /* @layout/border-radius/rounded */ diff --git a/src/pages/HomePage.tsx b/src/pages/HomePage.tsx index 1254f3b..58e6ea9 100644 --- a/src/pages/HomePage.tsx +++ b/src/pages/HomePage.tsx @@ -1,252 +1,40 @@ -import AboutFeaturesSplit from '@/components/sections/about/AboutFeaturesSplit'; -import ContactCta from '@/components/sections/contact/ContactCta'; -import FaqTabbedAccordion from '@/components/sections/faq/FaqTabbedAccordion'; -import FeaturesArrowCards from '@/components/sections/features/FeaturesArrowCards'; -import HeroSplitMediaGrid from '@/components/sections/hero/HeroSplitMediaGrid'; -import MetricsSimpleCards from '@/components/sections/metrics/MetricsSimpleCards'; -import PricingSimpleCards from '@/components/sections/pricing/PricingSimpleCards'; -import TestimonialOverlayCards from '@/components/sections/testimonial/TestimonialOverlayCards'; -import { Clock, MapPin, ShieldCheck } from "lucide-react"; -import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary"; +// AUTO-GENERATED shell by per-section-migrate. +// Section bodies live in .//sections/.tsx. Edit the section +// files directly. Non-block content (wrappers, non-inlinable sections) is +// preserved inline; extracted section blocks become refs. -export default function HomePage() { +import React from 'react'; +import HeroSection from './HomePage/sections/Hero'; +import AboutSection from './HomePage/sections/About'; +import FeaturesSection from './HomePage/sections/Features'; +import PricingSection from './HomePage/sections/Pricing'; +import TestimonialsSection from './HomePage/sections/Testimonials'; +import MetricsSection from './HomePage/sections/Metrics'; +import FaqSection from './HomePage/sections/Faq'; +import ContactSection from './HomePage/sections/Contact'; + + +import TrustBadgesSection from './HomePage/sections/TrustBadges'; +import GallerySection from './HomePage/sections/Gallery';export default function HomePage(): React.JSX.Element { return ( - <> -
- - - -
+<> + + -
- - - -
+ + -
- - - -
+ -
- - - -
+ -
- - - -
+ -
- - - -
+ -
- - - -
+ -
- - - -
+ ); } diff --git a/src/pages/HomePage/sections/About.tsx b/src/pages/HomePage/sections/About.tsx new file mode 100644 index 0000000..4d29253 --- /dev/null +++ b/src/pages/HomePage/sections/About.tsx @@ -0,0 +1,23 @@ +// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this +// file as the canonical source for the "about" section. + +import React from 'react'; +import AboutFeaturesSplit from '@/components/sections/about/AboutFeaturesSplit'; +import { Clock, MapPin, ShieldCheck } from "lucide-react"; +import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary"; + +export default function AboutSection(): React.JSX.Element { + return ( +
+ + + +
+ ); +} diff --git a/src/pages/HomePage/sections/Contact.tsx b/src/pages/HomePage/sections/Contact.tsx new file mode 100644 index 0000000..ac43ec8 --- /dev/null +++ b/src/pages/HomePage/sections/Contact.tsx @@ -0,0 +1,21 @@ +// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this +// file as the canonical source for the "contact" section. + +import React from 'react'; +import ContactCta from '@/components/sections/contact/ContactCta'; +import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary"; + +export default function ContactSection(): React.JSX.Element { + return ( +
+ + + +
+ ); +} diff --git a/src/pages/HomePage/sections/Faq.tsx b/src/pages/HomePage/sections/Faq.tsx new file mode 100644 index 0000000..f94cafe --- /dev/null +++ b/src/pages/HomePage/sections/Faq.tsx @@ -0,0 +1,35 @@ +// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this +// file as the canonical source for the "faq" section. + +import React from 'react'; +import FaqTabbedAccordion from '@/components/sections/faq/FaqTabbedAccordion'; +import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary"; + +export default function FaqSection(): React.JSX.Element { + return ( +
+ + + +
+ ); +} diff --git a/src/pages/HomePage/sections/Features.tsx b/src/pages/HomePage/sections/Features.tsx new file mode 100644 index 0000000..dd42471 --- /dev/null +++ b/src/pages/HomePage/sections/Features.tsx @@ -0,0 +1,21 @@ +// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this +// file as the canonical source for the "features" section. + +import React from 'react'; +import FeaturesArrowCards from '@/components/sections/features/FeaturesArrowCards'; +import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary"; + +export default function FeaturesSection(): React.JSX.Element { + return ( +
+ + + +
+ ); +} diff --git a/src/pages/HomePage/sections/Gallery.tsx b/src/pages/HomePage/sections/Gallery.tsx new file mode 100644 index 0000000..07bcdae --- /dev/null +++ b/src/pages/HomePage/sections/Gallery.tsx @@ -0,0 +1,153 @@ +import { useState, useRef } from 'react'; +import { motion } from 'motion/react'; +import TextAnimation from '@/components/ui/TextAnimation'; +import ScrollReveal from '@/components/ui/ScrollReveal'; +import ImageOrVideo from '@/components/ui/ImageOrVideo'; +import Tag from '@/components/ui/Tag'; + +export default function GallerySection() { + const [sliderPosition1, setSliderPosition1] = useState(50); + const [sliderPosition2, setSliderPosition2] = useState(50); + const containerRef1 = useRef(null); + const containerRef2 = useRef(null); + + const handleMove1 = (event: React.MouseEvent | React.TouchEvent) => { + if (!containerRef1.current) return; + const rect = containerRef1.current.getBoundingClientRect(); + const x = 'touches' in event ? event.touches[0].clientX - rect.left : (event as React.MouseEvent).clientX - rect.left; + const position = Math.max(0, Math.min(100, (x / rect.width) * 100)); + setSliderPosition1(position); + }; + + const handleMove2 = (event: React.MouseEvent | React.TouchEvent) => { + if (!containerRef2.current) return; + const rect = containerRef2.current.getBoundingClientRect(); + const x = 'touches' in event ? event.touches[0].clientX - rect.left : (event as React.MouseEvent).clientX - rect.left; + const position = Math.max(0, Math.min(100, (x / rect.width) * 100)); + setSliderPosition2(position); + }; + + return ( + + ); +} \ No newline at end of file diff --git a/src/pages/HomePage/sections/Hero.tsx b/src/pages/HomePage/sections/Hero.tsx new file mode 100644 index 0000000..ca172b9 --- /dev/null +++ b/src/pages/HomePage/sections/Hero.tsx @@ -0,0 +1,23 @@ +// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this +// file as the canonical source for the "hero" section. + +import React from 'react'; +import HeroSplitMediaGrid from '@/components/sections/hero/HeroSplitMediaGrid'; +import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary"; + +export default function HeroSection(): React.JSX.Element { + return ( +
+ + + +
+ ); +} diff --git a/src/pages/HomePage/sections/Metrics.tsx b/src/pages/HomePage/sections/Metrics.tsx new file mode 100644 index 0000000..1918933 --- /dev/null +++ b/src/pages/HomePage/sections/Metrics.tsx @@ -0,0 +1,34 @@ +// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this +// file as the canonical source for the "metrics" section. + +import React from 'react'; +import MetricsSimpleCards from '@/components/sections/metrics/MetricsSimpleCards'; +import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary"; + +export default function MetricsSection(): React.JSX.Element { + return ( +
+ + + +
+ ); +} diff --git a/src/pages/HomePage/sections/Pricing.tsx b/src/pages/HomePage/sections/Pricing.tsx new file mode 100644 index 0000000..07db9ef --- /dev/null +++ b/src/pages/HomePage/sections/Pricing.tsx @@ -0,0 +1,21 @@ +// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this +// file as the canonical source for the "pricing" section. + +import React from 'react'; +import PricingSimpleCards from '@/components/sections/pricing/PricingSimpleCards'; +import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary"; + +export default function PricingSection(): React.JSX.Element { + return ( +
+ + + +
+ ); +} diff --git a/src/pages/HomePage/sections/Testimonials.tsx b/src/pages/HomePage/sections/Testimonials.tsx new file mode 100644 index 0000000..6ef995b --- /dev/null +++ b/src/pages/HomePage/sections/Testimonials.tsx @@ -0,0 +1,21 @@ +// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this +// file as the canonical source for the "testimonials" section. + +import React from 'react'; +import TestimonialOverlayCards from '@/components/sections/testimonial/TestimonialOverlayCards'; +import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary"; + +export default function TestimonialsSection(): React.JSX.Element { + return ( +
+ + + +
+ ); +} diff --git a/src/pages/HomePage/sections/TrustBadges.tsx b/src/pages/HomePage/sections/TrustBadges.tsx new file mode 100644 index 0000000..aaf75de --- /dev/null +++ b/src/pages/HomePage/sections/TrustBadges.tsx @@ -0,0 +1,17 @@ +// Created by add_section_from_catalog (SocialProofMarquee). + +import React from 'react'; +import SocialProofMarquee from '@/components/sections/social-proof/SocialProofMarquee'; + +export default function TrustBadgesSection(): React.JSX.Element { + return ( +
+ +
+ ); +}