Compare commits
3 Commits
version_10
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 7ec0e99154 | |||
| bac2df8313 | |||
| a8950d99d3 |
@@ -10,6 +10,7 @@ import FaqBase from '@/components/sections/faq/FaqBase';
|
||||
import ContactSplitForm from '@/components/sections/contact/ContactSplitForm';
|
||||
import FooterMedia from '@/components/sections/footer/FooterMedia';
|
||||
import { Sparkles, Star, HelpCircle } from "lucide-react";
|
||||
import HeroBillboardCarousel from '@/components/sections/hero/HeroBillboardCarousel';
|
||||
|
||||
export default function LandingPage() {
|
||||
return (
|
||||
@@ -43,7 +44,7 @@ export default function LandingPage() {
|
||||
</div>
|
||||
|
||||
<div id="hero-section" data-section="hero-section">
|
||||
<HeroBillboard
|
||||
<HeroBillboardCarousel
|
||||
title="Artisanal Baked Goods"
|
||||
description="Handcrafted with passion and premium ingredients for an unforgettable taste experience"
|
||||
background={{ variant: "radial-gradient" }}
|
||||
@@ -51,22 +52,16 @@ export default function LandingPage() {
|
||||
tagIcon={null}
|
||||
tagAnimation="fade-in"
|
||||
buttons={[
|
||||
{ text: "View Our Menu", href: "#menu", dataWebildId: "btn-1" },
|
||||
{ text: "Order Online", href: "#order", dataWebildId: "btn-2" }
|
||||
{ text: "View Our Menu", href: "#menu", dataWebildId: "btn-carousel-1" },
|
||||
{ text: "Order Online", href: "#order", dataWebildId: "btn-carousel-2" }
|
||||
]}
|
||||
buttonAnimation="slide-up"
|
||||
avatars={[]}
|
||||
avatarText=""
|
||||
videoSrc="https://storage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4"
|
||||
videoAriaLabel="Baking process demonstration video"
|
||||
mediaAnimation="zoom-in"
|
||||
marqueeItems={[
|
||||
{ text: "Organic Ingredients", icon: null, dataWebildId: "marquee-1" },
|
||||
{ text: "Fresh Daily", icon: null, dataWebildId: "marquee-2" },
|
||||
{ text: "Handcrafted", icon: null, dataWebildId: "marquee-3" }
|
||||
mediaItems={[
|
||||
{ imageSrc: "https://img.b2bpic.net/free-photo/abstract-luxury-gradient-blue-background_53876-120942.jpg", imageAlt: "Fresh baked croissants" },
|
||||
{ imageSrc: "https://img.b2bpic.net/free-photo/futuristic-moon-background_23-2150930890.jpg", imageAlt: "Artisan sourdough bread" },
|
||||
{ imageSrc: "https://img.b2bpic.net/free-photo/futuristic-city-architecture_23-2151918947.jpg", imageAlt: "Delicious pastries display" },
|
||||
{ imageSrc: "https://img.b2bpic.net/free-photo/beautiful-landscape-with-mountains_23-2151151078.jpg", imageAlt: "Warm & Crumb bakery interior" }
|
||||
]}
|
||||
marqueeSpeed={1}
|
||||
showMarqueeCard={true}
|
||||
ariaLabel="Welcome to Warm & Crumb Bakery"
|
||||
className=""
|
||||
containerClassName=""
|
||||
@@ -74,18 +69,10 @@ export default function LandingPage() {
|
||||
titleClassName=""
|
||||
descriptionClassName=""
|
||||
tagClassName=""
|
||||
avatarGroupClassName=""
|
||||
buttonContainerClassName=""
|
||||
buttonClassName=""
|
||||
buttonTextClassName=""
|
||||
mediaWrapperClassName=""
|
||||
imageClassName=""
|
||||
marqueeClassName=""
|
||||
marqueeItemClassName=""
|
||||
marqueeCardClassName=""
|
||||
marqueeImageClassName=""
|
||||
marqueeTextClassName=""
|
||||
marqueeIconClassName=""
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -58,13 +58,41 @@ const MediaAbout = ({
|
||||
mediaWrapperClassName = "",
|
||||
mediaClassName = "",
|
||||
}: MediaAboutProps) => {
|
||||
const [isFlipped, setIsFlipped] = React.useState(false);
|
||||
|
||||
React.useEffect(() => {
|
||||
const observer = new IntersectionObserver(
|
||||
([entry]) => {
|
||||
if (entry.isIntersecting) {
|
||||
setIsFlipped(true);
|
||||
}
|
||||
},
|
||||
{ threshold: 0.5 }
|
||||
);
|
||||
|
||||
const section = document.querySelector('[data-flip-section]');
|
||||
if (section) observer.observe(section);
|
||||
|
||||
return () => {
|
||||
if (section) observer.unobserve(section);
|
||||
};
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<section
|
||||
aria-label={ariaLabel}
|
||||
data-flip-section
|
||||
className={cls("relative py-20 w-full", useInvertedBackground && "bg-foreground", className)}
|
||||
style={{ perspective: "1000px" }}
|
||||
>
|
||||
<div className={cls("relative w-content-width mx-auto aspect-auto min-h-70 md:aspect-video md:min-h-0 rounded-theme-capped overflow-hidden", mediaWrapperClassName)}>
|
||||
<div
|
||||
className={cls("relative w-content-width mx-auto aspect-auto min-h-70 md:aspect-video md:min-h-0 rounded-theme-capped overflow-hidden transition-transform duration-700", mediaWrapperClassName)}
|
||||
style={{
|
||||
transformStyle: "preserve-3d",
|
||||
transform: isFlipped ? "rotateY(0deg)" : "rotateY(90deg)",
|
||||
opacity: isFlipped ? 1 : 0.5,
|
||||
}}
|
||||
>
|
||||
<MediaContent
|
||||
imageSrc={imageSrc}
|
||||
videoSrc={videoSrc}
|
||||
@@ -73,8 +101,8 @@ const MediaAbout = ({
|
||||
imageClassName={cls("w-full h-full object-cover", mediaClassName)}
|
||||
/>
|
||||
<div className="absolute inset-0 z-0 bg-background/40 backdrop-blur-xs pointer-events-none select-none rounded-theme-capped" />
|
||||
<div className="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2">
|
||||
<div className="relative z-10 flex items-center justify-center h-full w-content-width p-5 md:w-45 mx-auto">
|
||||
<div className="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-full">
|
||||
<div className="relative z-10 flex items-center justify-center h-full w-content-width p-5 md:w-45 mx-auto hover:scale-105 transition-transform duration-300">
|
||||
<TextBox
|
||||
title={title}
|
||||
description={description}
|
||||
|
||||
@@ -82,7 +82,10 @@ const HeroBillboardCarousel = ({
|
||||
const renderCarouselItem = (item: MediaItem, index: number) => (
|
||||
<div
|
||||
key={index}
|
||||
className="w-full aspect-[4/5] overflow-hidden rounded-theme-capped card p-2 shadow-lg"
|
||||
className={cls(
|
||||
"w-full aspect-[4/5] overflow-hidden rounded-theme-capped card p-2 shadow-lg",
|
||||
index % 2 === 0 && "border-2 border-green-500"
|
||||
)}
|
||||
>
|
||||
<MediaContent
|
||||
imageSrc={item.imageSrc}
|
||||
|
||||
Reference in New Issue
Block a user