diff --git a/src/pages/HomePage.tsx b/src/pages/HomePage.tsx index f5875cb..5a1662b 100644 --- a/src/pages/HomePage.tsx +++ b/src/pages/HomePage.tsx @@ -1,118 +1,34 @@ +// 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. + import { StyleProvider } from "@/components/ui/StyleProvider"; import SiteBackgroundSlot from "@/components/ui/SiteBackgroundSlot"; import PageTransitionSwirl from "@/components/ui/PageTransitionSwirl"; -import HeroBillboardBrandFloatingCards from "@/components/sections/hero/HeroBillboardBrandFloatingCards"; -import AboutCursorTrail from "@/components/sections/about/AboutCursorTrail"; -import FeaturesFilterGrid from "@/components/sections/features/FeaturesFilterGrid"; -import FeaturesGridSplitLarge from "@/components/sections/features/FeaturesGridSplitLarge"; -import ContactBar from "@/components/sections/contact/ContactBar"; -import { Phone, MessageCircle, Mail } from "lucide-react"; +import React from 'react'; +import HeroSection from './HomePage/sections/Hero'; +import AboutSection from './HomePage/sections/About'; +import MenuSection from './HomePage/sections/Menu'; +import FeaturesSection from './HomePage/sections/Features'; +import ContactSection from './HomePage/sections/Contact'; -export default function HomePage() { +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..5aaef03 --- /dev/null +++ b/src/pages/HomePage/sections/About.tsx @@ -0,0 +1,29 @@ +// 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 AboutCursorTrail from "@/components/sections/about/AboutCursorTrail"; + +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..68ec9db --- /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 ContactBar from "@/components/sections/contact/ContactBar"; +import { Phone, MessageCircle, Mail } from "lucide-react"; + +export default function ContactSection(): 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..8057e43 --- /dev/null +++ b/src/pages/HomePage/sections/Features.tsx @@ -0,0 +1,36 @@ +// 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 FeaturesGridSplitLarge from "@/components/sections/features/FeaturesGridSplitLarge"; + +export default function FeaturesSection(): 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..f0e0ec9 --- /dev/null +++ b/src/pages/HomePage/sections/Hero.tsx @@ -0,0 +1,125 @@ +/* eslint-disable */ +// @ts-nocheck — generated by catalog-eject; runtime-correct but TS strict-mode false-positives on inlined catalog body +import { useRef } from "react"; +import { motion, useScroll, useTransform } from "motion/react"; +import { cls } from "@/lib/utils"; +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 AutoFillText from "@/components/ui/AutoFillText"; +import ScrollReveal from "@/components/ui/ScrollReveal"; + +const primaryButton = { + text: "Order Now", + href: "#order" +}; +const secondaryButton = { + text: "View Menu", + href: "#menu" +}; +const floatingCards = [ + { + imageSrc: "https://storage.googleapis.com/webild/default/templates/joes-coffee/hero/iced-coffee.webp", + name: "Americano" + }, + { + imageSrc: "https://storage.googleapis.com/webild/default/templates/joes-coffee/hero/latte.webp", + name: "Latte" + }, + { + imageSrc: "https://storage.googleapis.com/webild/default/templates/joes-coffee/menu/cappuccino.webp", + name: "Cappuccino" + } +]; + +type FloatingCard = { + name: string; +} & ({ imageSrc: string; videoSrc?: never } | { videoSrc: string; imageSrc?: never }); + +const CARD_CONFIG = [ + { position: "left", bottom: "30%", aspect: "aspect-3/4", movement: "-100%" }, + { position: "right", bottom: "14%", aspect: "aspect-square", movement: "-75%" }, + { position: "left", bottom: "65%", aspect: "aspect-square", movement: "-120%" }, +] as const; + +type HeroBillboardBrandFloatingCardsProps = { + brand: string; + description: string; + primaryButton: { text: string; href: string }; + secondaryButton: { text: string; href: string }; + floatingCards: [FloatingCard, FloatingCard, FloatingCard]; + textAnimation: "slide-up" | "fade-blur" | "fade"; +} & ({ imageSrc: string; videoSrc?: never } | { videoSrc: string; imageSrc?: never }); + +const HeroInline = () => { + const heroRef = useRef(null); + const { scrollYProgress } = useScroll({ + target: heroRef, + offset: ["start start", "end start"], + }); + const leftCardY = useTransform(scrollYProgress, [0, 1], ["0%", CARD_CONFIG[0].movement]); + const rightCardY = useTransform(scrollYProgress, [0, 1], ["0%", CARD_CONFIG[1].movement]); + const cardYTransforms = [leftCardY, rightCardY]; + + return ( +
+ + + {floatingCards.map((card, i) => ( + +
+ +
+

{card.name}

+
+
+
+ ))} + +
+
+ {"Joe's Coffee"} + + + +
+
+
+ + + + +
+
+ ); +}; + +export default function HeroSection() { + return ( +
+ +
+ ); +} diff --git a/src/pages/HomePage/sections/Menu.tsx b/src/pages/HomePage/sections/Menu.tsx new file mode 100644 index 0000000..6bebe23 --- /dev/null +++ b/src/pages/HomePage/sections/Menu.tsx @@ -0,0 +1,33 @@ +// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this +// file as the canonical source for the "menu" section. + +import React from 'react'; +import FeaturesFilterGrid from "@/components/sections/features/FeaturesFilterGrid"; + +export default function MenuSection(): React.JSX.Element { + return ( + + ); +}