From 8c38b23ebe719ddf9a56664515e8ddd58d42e81c Mon Sep 17 00:00:00 2001 From: kudinDmitriyUp Date: Wed, 17 Jun 2026 14:12:16 +0000 Subject: [PATCH] Bob AI: Add 3D tilt effects and glassmorphism to sections --- src/pages/HomePage.tsx | 189 +++---------------- src/pages/HomePage/sections/Contact.tsx | 23 +++ src/pages/HomePage/sections/Faq.tsx | 28 +++ src/pages/HomePage/sections/Features.tsx | 101 ++++++++++ src/pages/HomePage/sections/Hero.tsx | 99 ++++++++++ src/pages/HomePage/sections/Metrics.tsx | 28 +++ src/pages/HomePage/sections/Pricing.tsx | 145 ++++++++++++++ src/pages/HomePage/sections/Process.tsx | 108 +++++++++++ src/pages/HomePage/sections/Testimonials.tsx | 37 ++++ 9 files changed, 593 insertions(+), 165 deletions(-) create mode 100644 src/pages/HomePage/sections/Contact.tsx create mode 100644 src/pages/HomePage/sections/Faq.tsx create mode 100644 src/pages/HomePage/sections/Features.tsx create mode 100644 src/pages/HomePage/sections/Hero.tsx create mode 100644 src/pages/HomePage/sections/Metrics.tsx create mode 100644 src/pages/HomePage/sections/Pricing.tsx create mode 100644 src/pages/HomePage/sections/Process.tsx create mode 100644 src/pages/HomePage/sections/Testimonials.tsx diff --git a/src/pages/HomePage.tsx b/src/pages/HomePage.tsx index 6ca7b1d..f6adb2d 100644 --- a/src/pages/HomePage.tsx +++ b/src/pages/HomePage.tsx @@ -1,177 +1,36 @@ -import AboutFeaturesSplit from '@/components/sections/about/AboutFeaturesSplit'; -import ContactCta from '@/components/sections/contact/ContactCta'; -import FaqSimple from '@/components/sections/faq/FaqSimple'; -import FeaturesMediaCards from '@/components/sections/features/FeaturesMediaCards'; -import HeroCenteredLogos from '@/components/sections/hero/HeroCenteredLogos'; -import MetricsSimpleCards from '@/components/sections/metrics/MetricsSimpleCards'; -import PricingHighlightedCards from '@/components/sections/pricing/PricingHighlightedCards'; -import TestimonialRatingCards from '@/components/sections/testimonial/TestimonialRatingCards'; -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 FeaturesSection from './HomePage/sections/Features'; +import ProcessSection from './HomePage/sections/Process'; +import MetricsSection from './HomePage/sections/Metrics'; +import PricingSection from './HomePage/sections/Pricing'; +import TestimonialsSection from './HomePage/sections/Testimonials'; +import FaqSection from './HomePage/sections/Faq'; +import ContactSection from './HomePage/sections/Contact'; + +export default function HomePage(): 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..fb17b27 --- /dev/null +++ b/src/pages/HomePage/sections/Contact.tsx @@ -0,0 +1,23 @@ +// 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..8530bcd --- /dev/null +++ b/src/pages/HomePage/sections/Faq.tsx @@ -0,0 +1,28 @@ +// 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 FaqSimple from '@/components/sections/faq/FaqSimple'; +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..a349af0 --- /dev/null +++ b/src/pages/HomePage/sections/Features.tsx @@ -0,0 +1,101 @@ +/* eslint-disable */ +// @ts-nocheck — generated by catalog-eject; runtime-correct but TS strict-mode false-positives on inlined catalog body +import Button from "@/components/ui/Button"; +import TextAnimation from "@/components/ui/TextAnimation"; +import ImageOrVideo from "@/components/ui/ImageOrVideo"; +import GridOrCarousel from "@/components/ui/GridOrCarousel"; +import ScrollReveal from "@/components/ui/ScrollReveal"; +import { motion, useMotionValue, useTransform, useSpring } from 'motion/react'; + +const items = [ + { + title: "Éco-responsable", + description: "Dites adieu aux cartes en papier jetables.", + imageSrc: "http://img.b2bpic.net/free-photo/hand-hold-globe-paper-carving-with-grass-background_53876-14193.jpg" + }, + { + title: "Zéro oubli", + description: "La carte est accessible via le wallet mobile du client.", + imageSrc: "http://img.b2bpic.net/free-photo/cancel-sign-front-side-with-white-background_187299-39753.jpg" + }, + { + title: "Analytique avancée", + description: "Suivez vos performances en temps réel.", + imageSrc: "http://img.b2bpic.net/free-photo/golden-correct-sign-best-quality-assurance-guarantee-product-iso-service-concept_616485-97.jpg" + } +]; + +type FeatureItem = { + title: string; + description: string; +} & ({ imageSrc: string; videoSrc?: never } | { videoSrc: string; imageSrc?: never }); + +interface FeaturesMediaCardsProps { + tag: string; + title: string; + description: string; + primaryButton?: { text: string; href: string }; + secondaryButton?: { text: string; href: string }; + items: FeatureItem[]; +} + +const FeaturesInline = () => { + return ( +
+
+
+
+

{"Les avantages"}

+
+ + + + + + {(undefined || undefined) && ( +
+ {undefined &&
+ )} +
+ + + + {items.map((item) => ( +
+
+ +
+
+

{item.title}

+

{item.description}

+
+
+ ))} +
+
+
+
+ ); +}; + +export default function FeaturesSection() { + return ( +
+ +
+ ); +} diff --git a/src/pages/HomePage/sections/Hero.tsx b/src/pages/HomePage/sections/Hero.tsx new file mode 100644 index 0000000..424d4bd --- /dev/null +++ b/src/pages/HomePage/sections/Hero.tsx @@ -0,0 +1,99 @@ +/* eslint-disable */ +// @ts-nocheck — generated by catalog-eject; runtime-correct but TS strict-mode false-positives on inlined catalog body +import Button from "@/components/ui/Button"; +import HeroBackgroundSlot from "@/components/ui/HeroBackgroundSlot"; +import TextAnimation from "@/components/ui/TextAnimation"; +import ImageOrVideo from "@/components/ui/ImageOrVideo"; +import AvatarGroup from "@/components/ui/AvatarGroup"; +import { motion, useMotionValue, useTransform, useSpring } from 'motion/react'; + +const avatarsSrc = [ + "http://img.b2bpic.net/free-photo/positive-confident-business-coach-posing-training-room_74855-3026.jpg", + "http://img.b2bpic.net/free-photo/young-asian-waitress-cafe-manager-working-with-tablet-graphic-tablet_1258-199016.jpg", + "http://img.b2bpic.net/black-businessman-happy-expression_1194-2623.jpg", + "http://img.b2bpic.net/free-photo/portrait-african-american-person-smiling-working-his-living-room_482257-126267.jpg" +]; +const primaryButton = { + text: "Pour les Commerçants", + href: "#pricing" +}; +const secondaryButton = { + text: "Pour les Clients", + href: "#features" +}; +const names = [ + "Apple Pay", + "Google Pay", + "WhatsApp", + "Instagram" +]; + +type HeroCenteredLogosProps = { + avatarsSrc: string[]; + avatarText: string; + title: string; + description: string; + primaryButton: { text: string; href: string }; + secondaryButton: { text: string; href: string }; + names: string[]; + hideMedia?: boolean; +} & ({ imageSrc: string; videoSrc?: never } | { videoSrc: string; imageSrc?: never }); + +const HeroInline = () => { + return ( +
+ + {!undefined && ( +
+ +
+
+ )} + +
+
+ + + + + + +
+
+
+
+ +
+
+ {[...names, ...names, ...names, ...names].map((name, index) => ( +
+ {name} +
+ ))} +
+
+
+ ); +}; + +export default function HeroSection() { + return ( +
+ +
+ ); +} diff --git a/src/pages/HomePage/sections/Metrics.tsx b/src/pages/HomePage/sections/Metrics.tsx new file mode 100644 index 0000000..a3df198 --- /dev/null +++ b/src/pages/HomePage/sections/Metrics.tsx @@ -0,0 +1,28 @@ +// 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..ddc6b6b --- /dev/null +++ b/src/pages/HomePage/sections/Pricing.tsx @@ -0,0 +1,145 @@ +/* eslint-disable */ +// @ts-nocheck — generated by catalog-eject; runtime-correct but TS strict-mode false-positives on inlined catalog body +import { Check } from "lucide-react"; +import Button from "@/components/ui/Button"; +import TextAnimation from "@/components/ui/TextAnimation"; +import GridOrCarousel from "@/components/ui/GridOrCarousel"; +import ScrollReveal from "@/components/ui/ScrollReveal"; +import { cls } from "@/lib/utils"; +import { motion, useMotionValue, useTransform, useSpring } from 'motion/react'; + +const plans = [ + { + tag: "Découverte", + price: "Gratuit", + description: "Pour débuter", + features: [ + "1 carte", + "Support communauté", + "Analyses basiques" + ], + primaryButton: { + text: "Commencer", + href: "#" + } + }, + { + tag: "Pro", + price: "49€", + description: "Pour les commerçants", + features: [ + "Cartes illimitées", + "Support prioritaire", + "Push Notifications" + ], + highlight: "Populaire", + primaryButton: { + text: "Essayer Pro", + href: "#" + } + }, + { + tag: "Enterprise", + price: "199€", + description: "Pour les réseaux", + features: [ + "API dédiée", + "Multi-sites", + "Accompagnement" + ], + primaryButton: { + text: "Nous contacter", + href: "#contact" + } + } +]; + +type PricingPlan = { + tag: string; + price: string; + description: string; + features: string[]; + highlight?: string; + primaryButton: { text: string; href: string }; + secondaryButton?: { text: string; href: string }; +}; + +const PricingInline = () => ( +
+
+
+
+

{"Tarifs"}

+
+ + + + + + {(undefined || undefined) && ( +
+ {undefined &&
+ )} +
+ + + + {plans.map((plan) => ( +
+
+ {plan.highlight || "placeholder"} +
+ +
+
+ {plan.price} + {plan.tag} +
+ +
+ +
+ {plan.features.map((feature) => ( +
+
+ +
+ {feature} +
+ ))} +
+ +
+
+
+
+ ))} + + +
+
+); + +export default function PricingSection() { + return ( +
+ +
+ ); +} diff --git a/src/pages/HomePage/sections/Process.tsx b/src/pages/HomePage/sections/Process.tsx new file mode 100644 index 0000000..ef3f679 --- /dev/null +++ b/src/pages/HomePage/sections/Process.tsx @@ -0,0 +1,108 @@ +/* eslint-disable */ +// @ts-nocheck — generated by catalog-eject; runtime-correct but TS strict-mode false-positives on inlined catalog body +import type { LucideIcon } from "lucide-react"; +import Button from "@/components/ui/Button"; +import TextAnimation from "@/components/ui/TextAnimation"; +import ImageOrVideo from "@/components/ui/ImageOrVideo"; +import { resolveIcon } from "@/utils/resolve-icon"; +import { motion } from 'motion/react'; + +const items = [ + { + icon: "Settings", + title: "Configurez", + description: "Créez votre design personnalisé." + }, + { + icon: "QrCode", + title: "Scannez", + description: "QR Code unique pour chaque client." + }, + { + icon: "TrendingUp", + title: "Fidélisez", + description: "Récompensez vos clients fidèles." + } +]; + +type AboutFeaturesSplitProps = { + tag: string; + title: string; + description: string; + primaryButton?: { text: string; href: string }; + secondaryButton?: { text: string; href: string }; + items: { icon: string | LucideIcon; title: string; description: string }[]; +} & ({ imageSrc: string; videoSrc?: never } | { videoSrc: string; imageSrc?: never }); + +const ProcessInline = () => { + return ( +
+
+
+
+

{"Fonctionnement"}

+
+ + + + + + {(undefined || undefined) && ( +
+ {undefined &&
+ )} +
+ +
+
+ {items.map((item, index) => { + const ItemIcon = resolveIcon(item.icon); + return ( +
+
+
+ +
+

{item.title}

+

{item.description}

+
+ {index < items.length - 1 && ( +
+ )} +
+ ); + })} +
+ +
+
+ +
+
+
+
+
+ ); +}; + +export default function ProcessSection() { + return ( +
+ +
+ ); +} diff --git a/src/pages/HomePage/sections/Testimonials.tsx b/src/pages/HomePage/sections/Testimonials.tsx new file mode 100644 index 0000000..0092bba --- /dev/null +++ b/src/pages/HomePage/sections/Testimonials.tsx @@ -0,0 +1,37 @@ +// 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 TestimonialRatingCards from '@/components/sections/testimonial/TestimonialRatingCards'; +import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary"; + +export default function TestimonialsSection(): React.JSX.Element { + return ( +
+ + + +
+ ); +} -- 2.49.1