diff --git a/src/components/Layout.tsx b/src/components/Layout.tsx index 3f2f5db..18bed78 100644 --- a/src/components/Layout.tsx +++ b/src/components/Layout.tsx @@ -38,7 +38,7 @@ export default function Layout() { ]; return ( - + -
- - - -
+<> + -
- - - -
+ -
- - - -
+ + -
- - - -
-
- - - -
+ -
- - - -
+ -
- - - -
+ -
- - - -
+ ); } diff --git a/src/pages/HomePage/sections/About.tsx b/src/pages/HomePage/sections/About.tsx new file mode 100644 index 0000000..4092f70 --- /dev/null +++ b/src/pages/HomePage/sections/About.tsx @@ -0,0 +1,22 @@ +// 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 AboutMediaOverlay from '@/components/sections/about/AboutMediaOverlay'; +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..6a82b12 --- /dev/null +++ b/src/pages/HomePage/sections/Contact.tsx @@ -0,0 +1,28 @@ +// 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..e536ecc --- /dev/null +++ b/src/pages/HomePage/sections/Faq.tsx @@ -0,0 +1,39 @@ +// 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 FaqTwoColumn from '@/components/sections/faq/FaqTwoColumn'; +import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary"; + +export default function FaqSection(): React.JSX.Element { + return ( +
+ + + +
+ ); +} diff --git a/src/pages/HomePage/sections/Hero.tsx b/src/pages/HomePage/sections/Hero.tsx new file mode 100644 index 0000000..b5a9fb4 --- /dev/null +++ b/src/pages/HomePage/sections/Hero.tsx @@ -0,0 +1,44 @@ +// 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 HeroCenteredLogos from '@/components/sections/hero/HeroCenteredLogos'; +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..caa6f9d --- /dev/null +++ b/src/pages/HomePage/sections/Metrics.tsx @@ -0,0 +1,203 @@ +import React, { useEffect, useRef, useState } from 'react'; +import { motion, useScroll, useTransform, useInView } from 'motion/react'; +import { TrendingUp, Users, Search, MousePointerClick, ArrowUpRight } from 'lucide-react'; +import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary"; +import TextAnimation from "@/components/ui/TextAnimation"; +import ScrollReveal from "@/components/ui/ScrollReveal"; +import CursorTrail from "@/components/ui/CursorTrail"; + +export default function MetricsSection(): React.JSX.Element { + const containerRef = useRef(null); + const isInView = useInView(containerRef, { once: false, amount: 0.3 }); + const [mousePos, setMousePos] = useState({ x: 0, y: 0 }); + + const { scrollYProgress } = useScroll({ + target: containerRef, + offset: ["start end", "end start"] + }); + + // Animate metrics based on scroll + const profitValue = useTransform(scrollYProgress, [0.2, 0.8], [0, 345]); + const leadsValue = useTransform(scrollYProgress, [0.2, 0.8], [0, 89]); + const visitorsValue = useTransform(scrollYProgress, [0.2, 0.8], [0, 12500]); + const rankingValue = useTransform(scrollYProgress, [0.2, 0.8], [50, 1]); + + const [displayValues, setDisplayValues] = useState({ + profit: 0, + leads: 0, + visitors: 0, + ranking: 50 + }); + + useEffect(() => { + const handleMouseMove = (e: MouseEvent) => { + if (!containerRef.current) return; + const rect = containerRef.current.getBoundingClientRect(); + setMousePos({ + x: e.clientX - rect.left, + y: e.clientY - rect.top + }); + }; + + window.addEventListener('mousemove', handleMouseMove); + return () => window.removeEventListener('mousemove', handleMouseMove); + }, []); + + useEffect(() => { + const unsubscribeProfit = profitValue.on("change", v => setDisplayValues(prev => ({ ...prev, profit: Math.round(v) }))); + const unsubscribeLeads = leadsValue.on("change", v => setDisplayValues(prev => ({ ...prev, leads: Math.round(v) }))); + const unsubscribeVisitors = visitorsValue.on("change", v => setDisplayValues(prev => ({ ...prev, visitors: Math.round(v) }))); + const unsubscribeRanking = rankingValue.on("change", v => setDisplayValues(prev => ({ ...prev, ranking: Math.round(v) }))); + + return () => { + unsubscribeProfit(); + unsubscribeLeads(); + unsubscribeVisitors(); + unsubscribeRanking(); + }; + }, [profitValue, leadsValue, visitorsValue, rankingValue]); + + return ( +
+ + + {/* Mouse-following spotlight */} + + + +
+
+ +
+ + Interaktívne výsledky +
+
+ + + + +

+ Moderný web nie je len vizitka. Je to predajný nástroj, ktorý pracuje 24/7. + Posúvajte stránku a sledujte, aký vplyv má kvalitný marketing na vaše čísla. +

+
+
+ +
+ {/* Profit Chart Card */} + +
+ +
+
+
+ +
+

Nárast tržieb

+
+ +{displayValues.profit}% + YoY +
+ + {/* Animated Chart */} +
+ {[40, 55, 45, 70, 65, 85, 100].map((height, i) => ( + + + + ))} +
+
+
+ +
+ {/* Google Ranking Card */} + +
+
+
+ +
+

Pozícia v Google

+
#{displayValues.ranking}
+
+
+
Organická návštevnosť
+
+{Math.round((50 - displayValues.ranking) * 12.5)}%
+
+
+
+ +
+
+ +
+ {/* Leads Card */} + +
+ +
+

Nové dopyty

+
{displayValues.leads} / mesiac
+
+ + {/* Visitors Card */} + +
+ +
+

Návštevníci

+
+ {displayValues.visitors > 1000 ? `${(displayValues.visitors / 1000).toFixed(1)}k` : displayValues.visitors} +
+
+
+
+
+
+
+
+ ); +} \ No newline at end of file diff --git a/src/pages/HomePage/sections/Services.tsx b/src/pages/HomePage/sections/Services.tsx new file mode 100644 index 0000000..aaa8470 --- /dev/null +++ b/src/pages/HomePage/sections/Services.tsx @@ -0,0 +1,58 @@ +// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this +// file as the canonical source for the "services" section. + +import React from 'react'; +import FeaturesImageBento from '@/components/sections/features/FeaturesImageBento'; +import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary"; + +export default function ServicesSection(): React.JSX.Element { + return ( +
+ + + +
+ ); +} diff --git a/src/pages/HomePage/sections/Team.tsx b/src/pages/HomePage/sections/Team.tsx new file mode 100644 index 0000000..59ba41d --- /dev/null +++ b/src/pages/HomePage/sections/Team.tsx @@ -0,0 +1,44 @@ +// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this +// file as the canonical source for the "team" section. + +import React from 'react'; +import TeamProfileCards from '@/components/sections/team/TeamProfileCards'; +import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary"; + +export default function TeamSection(): 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..31fdf60 --- /dev/null +++ b/src/pages/HomePage/sections/Testimonials.tsx @@ -0,0 +1,53 @@ +// 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 TestimonialMarqueeCards from '@/components/sections/testimonial/TestimonialMarqueeCards'; +import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary"; + +export default function TestimonialsSection(): React.JSX.Element { + return ( +
+ + + +
+ ); +}