Compare commits
13 Commits
version_2
...
version_12
| Author | SHA1 | Date | |
|---|---|---|---|
| bac2df8313 | |||
| a8950d99d3 | |||
| 993de45e65 | |||
| 9741023bee | |||
| 3e2e6b4c01 | |||
| 3a2905a8b0 | |||
| 153ad3e960 | |||
| f62a9472d6 | |||
| 982672301f | |||
| f5556592af | |||
| 487973b161 | |||
| 4c26cfa1c1 | |||
| e0ff4d943c |
@@ -1,14 +1,9 @@
|
|||||||
import type { Metadata } from "next";
|
import type { Metadata } from "next";
|
||||||
import { Mulish } from "next/font/google";
|
|
||||||
import { Inter } from "next/font/google";
|
import { Inter } from "next/font/google";
|
||||||
import "./globals.css";
|
import "./globals.css";
|
||||||
import { ServiceWrapper } from "@/components/ServiceWrapper";
|
import { ServiceWrapper } from "@/components/ServiceWrapper";
|
||||||
import Tag from "@/tag/Tag";
|
import Tag from "@/tag/Tag";
|
||||||
|
|
||||||
const mulish = Mulish({
|
|
||||||
variable: "--font-mulish", subsets: ["latin"],
|
|
||||||
});
|
|
||||||
|
|
||||||
const inter = Inter({
|
const inter = Inter({
|
||||||
variable: "--font-inter", subsets: ["latin"],
|
variable: "--font-inter", subsets: ["latin"],
|
||||||
});
|
});
|
||||||
@@ -26,7 +21,7 @@ export default function RootLayout({
|
|||||||
<html lang="en" suppressHydrationWarning>
|
<html lang="en" suppressHydrationWarning>
|
||||||
<ServiceWrapper>
|
<ServiceWrapper>
|
||||||
<body
|
<body
|
||||||
className={`${mulish.variable} ${inter.variable} antialiased`}
|
className={`${inter.variable} antialiased`}
|
||||||
>
|
>
|
||||||
<Tag />
|
<Tag />
|
||||||
{children}
|
{children}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
"use client"
|
"use client"
|
||||||
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
|
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
|
||||||
import NavbarStyleFullscreen from '@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen';
|
import NavbarStyleFullscreen from '@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen';
|
||||||
import HeroOverlay from '@/components/sections/hero/HeroOverlay';
|
import HeroBillboard from '@/components/sections/hero/HeroBillboard';
|
||||||
import MediaAbout from '@/components/sections/about/MediaAbout';
|
import MediaAbout from '@/components/sections/about/MediaAbout';
|
||||||
import FeatureCardMedia from '@/components/sections/feature/FeatureCardMedia';
|
import FeatureCardMedia from '@/components/sections/feature/FeatureCardMedia';
|
||||||
import ProductCardOne from '@/components/sections/product/ProductCardOne';
|
import ProductCardOne from '@/components/sections/product/ProductCardOne';
|
||||||
@@ -10,6 +10,7 @@ import FaqBase from '@/components/sections/faq/FaqBase';
|
|||||||
import ContactSplitForm from '@/components/sections/contact/ContactSplitForm';
|
import ContactSplitForm from '@/components/sections/contact/ContactSplitForm';
|
||||||
import FooterMedia from '@/components/sections/footer/FooterMedia';
|
import FooterMedia from '@/components/sections/footer/FooterMedia';
|
||||||
import { Sparkles, Star, HelpCircle } from "lucide-react";
|
import { Sparkles, Star, HelpCircle } from "lucide-react";
|
||||||
|
import HeroBillboardCarousel from '@/components/sections/hero/HeroBillboardCarousel';
|
||||||
|
|
||||||
export default function LandingPage() {
|
export default function LandingPage() {
|
||||||
return (
|
return (
|
||||||
@@ -43,22 +44,35 @@ export default function LandingPage() {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="hero-section" data-section="hero-section">
|
<div id="hero-section" data-section="hero-section">
|
||||||
<HeroOverlay
|
<HeroBillboardCarousel
|
||||||
title="Artisan Baked Goods Delivered to Your Doorstep"
|
title="Artisanal Baked Goods"
|
||||||
description="Experience the warmth of freshly baked breads, pastries, and desserts made with love using time-honored techniques and the finest ingredients."
|
description="Handcrafted with passion and premium ingredients for an unforgettable taste experience"
|
||||||
|
background={{ variant: "radial-gradient" }}
|
||||||
tag="Fresh Daily"
|
tag="Fresh Daily"
|
||||||
tagIcon={Sparkles}
|
tagIcon={null}
|
||||||
tagAnimation="slide-up"
|
tagAnimation="fade-in"
|
||||||
buttons={[
|
buttons={[
|
||||||
{ text: "View Our Menu", href: "#products-section" },
|
{ text: "View Our Menu", href: "#menu", dataWebildId: "btn-carousel-1" },
|
||||||
{ text: "Visit Us", href: "#contact-section" }
|
{ text: "Order Online", href: "#order", dataWebildId: "btn-carousel-2" }
|
||||||
]}
|
]}
|
||||||
buttonAnimation="slide-up"
|
buttonAnimation="slide-up"
|
||||||
imageSrc="https://img.b2bpic.net/free-photo/view-delicious-baked-bread-pastry-shop_23-2150379551.jpg"
|
mediaItems={[
|
||||||
imageAlt="Warm and inviting bakery interior with fresh pastries on display"
|
{ imageSrc: "https://img.b2bpic.net/free-photo/abstract-luxury-gradient-blue-background_53876-120942.jpg", imageAlt: "Fresh baked croissants" },
|
||||||
textPosition="bottom-left"
|
{ imageSrc: "https://img.b2bpic.net/free-photo/futuristic-moon-background_23-2150930890.jpg", imageAlt: "Artisan sourdough bread" },
|
||||||
showDimOverlay={true}
|
{ imageSrc: "https://img.b2bpic.net/free-photo/futuristic-city-architecture_23-2151918947.jpg", imageAlt: "Delicious pastries display" },
|
||||||
showBlur={true}
|
{ imageSrc: "https://img.b2bpic.net/free-photo/beautiful-landscape-with-mountains_23-2151151078.jpg", imageAlt: "Warm & Crumb bakery interior" }
|
||||||
|
]}
|
||||||
|
ariaLabel="Welcome to Warm & Crumb Bakery"
|
||||||
|
className=""
|
||||||
|
containerClassName=""
|
||||||
|
textBoxClassName=""
|
||||||
|
titleClassName=""
|
||||||
|
descriptionClassName=""
|
||||||
|
tagClassName=""
|
||||||
|
buttonContainerClassName=""
|
||||||
|
buttonClassName=""
|
||||||
|
buttonTextClassName=""
|
||||||
|
mediaWrapperClassName=""
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -70,8 +84,8 @@ export default function LandingPage() {
|
|||||||
tagIcon={Sparkles}
|
tagIcon={Sparkles}
|
||||||
tagAnimation="slide-up"
|
tagAnimation="slide-up"
|
||||||
buttons={[
|
buttons={[
|
||||||
{ text: "Explore Our Products", href: "#products-section" },
|
{ text: "Explore Our Products", href: "products-section" },
|
||||||
{ text: "Visit Our Bakery", href: "#contact-section" }
|
{ text: "Visit Our Bakery", href: "contact-section" }
|
||||||
]}
|
]}
|
||||||
buttonAnimation="slide-up"
|
buttonAnimation="slide-up"
|
||||||
imageSrc="https://img.b2bpic.net/free-photo/baker-forming-dough-sphere-wooden-board_74855-5658.jpg"
|
imageSrc="https://img.b2bpic.net/free-photo/baker-forming-dough-sphere-wooden-board_74855-5658.jpg"
|
||||||
@@ -156,6 +170,14 @@ export default function LandingPage() {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div className="flex justify-center gap-4 py-8">
|
||||||
|
<span className="text-4xl">❤️</span>
|
||||||
|
<span className="text-4xl">❤️</span>
|
||||||
|
<span className="text-4xl">❤️</span>
|
||||||
|
<span className="text-4xl">❤️</span>
|
||||||
|
<span className="text-4xl">❤️</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div id="faq-section" data-section="faq-section">
|
<div id="faq-section" data-section="faq-section">
|
||||||
<FaqBase
|
<FaqBase
|
||||||
title="Frequently Asked Questions"
|
title="Frequently Asked Questions"
|
||||||
@@ -181,7 +203,7 @@ export default function LandingPage() {
|
|||||||
tagIcon={HelpCircle}
|
tagIcon={HelpCircle}
|
||||||
tagAnimation="slide-up"
|
tagAnimation="slide-up"
|
||||||
buttons={[
|
buttons={[
|
||||||
{ text: "Contact Us", href: "#contact-section" }
|
{ text: "Contact Us", href: "contact-section" }
|
||||||
]}
|
]}
|
||||||
buttonAnimation="slide-up"
|
buttonAnimation="slide-up"
|
||||||
/>
|
/>
|
||||||
@@ -216,16 +238,16 @@ export default function LandingPage() {
|
|||||||
columns={[
|
columns={[
|
||||||
{
|
{
|
||||||
title: "Explore", items: [
|
title: "Explore", items: [
|
||||||
{ label: "Home", href: "#hero-section" },
|
{ label: "Home", href: "hero-section" },
|
||||||
{ label: "Our Story", href: "#about-section" },
|
{ label: "Our Story", href: "about-section" },
|
||||||
{ label: "Menu", href: "#products-section" },
|
{ label: "Menu", href: "products-section" },
|
||||||
{ label: "Testimonials", href: "#testimonials-section" }
|
{ label: "Testimonials", href: "testimonials-section" }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "Support", items: [
|
title: "Support", items: [
|
||||||
{ label: "FAQ", href: "#faq-section" },
|
{ label: "FAQ", href: "faq-section" },
|
||||||
{ label: "Contact Us", href: "#contact-section" },
|
{ label: "Contact Us", href: "contact-section" },
|
||||||
{ label: "Delivery Info", href: "#" },
|
{ label: "Delivery Info", href: "#" },
|
||||||
{ label: "Returns Policy", href: "#" }
|
{ label: "Returns Policy", href: "#" }
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -24,5 +24,5 @@ h3,
|
|||||||
h4,
|
h4,
|
||||||
h5,
|
h5,
|
||||||
h6 {
|
h6 {
|
||||||
font-family: var(--font-mulish), sans-serif;
|
font-family: var(--font-inter), sans-serif;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,22 +3,22 @@
|
|||||||
/* --vw is set by ThemeProvider */
|
/* --vw is set by ThemeProvider */
|
||||||
|
|
||||||
/* --background: #f7f6f7;;
|
/* --background: #f7f6f7;;
|
||||||
--card: #ffffff;;
|
--card: #1a1a1a;;
|
||||||
--foreground: #0c1325;;
|
--foreground: #000000;;
|
||||||
--primary-cta: #0b07ff;;
|
--primary-cta: #ffcc00;;
|
||||||
--secondary-cta: #ffffff;;
|
--secondary-cta: #ffcc00;;
|
||||||
--accent: #93b7ff;;
|
--accent: #ff9900;;
|
||||||
--background-accent: #a8bae8;; */
|
--background-accent: #333300;; */
|
||||||
|
|
||||||
--background: #f7f6f7;;
|
--background: #000000;;
|
||||||
--card: #ffffff;;
|
--card: #1a1a1a;;
|
||||||
--foreground: #0c1325;;
|
--foreground: #000000;;
|
||||||
--primary-cta: #0b07ff;;
|
--primary-cta: #ffcc00;;
|
||||||
--primary-cta-text: #f7f6f7;;
|
--primary-cta-text: #f7f6f7;;
|
||||||
--secondary-cta: #ffffff;;
|
--secondary-cta: #ffcc00;;
|
||||||
--secondary-cta-text: #0c1325;;
|
--secondary-cta-text: #0c1325;;
|
||||||
--accent: #93b7ff;;
|
--accent: #ff9900;;
|
||||||
--background-accent: #a8bae8;;
|
--background-accent: #333300;;
|
||||||
|
|
||||||
/* text sizing - set by ThemeProvider */
|
/* text sizing - set by ThemeProvider */
|
||||||
/* --text-2xs: clamp(0.465rem, 0.62vw, 0.62rem);
|
/* --text-2xs: clamp(0.465rem, 0.62vw, 0.62rem);
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ import { useButtonAnimation } from "@/components/hooks/useButtonAnimation";
|
|||||||
import type { LucideIcon } from "lucide-react";
|
import type { LucideIcon } from "lucide-react";
|
||||||
import type { ButtonConfig, ButtonAnimationType } from "@/types/button";
|
import type { ButtonConfig, ButtonAnimationType } from "@/types/button";
|
||||||
import type { Avatar } from "@/components/shared/AvatarGroup";
|
import type { Avatar } from "@/components/shared/AvatarGroup";
|
||||||
|
import { useRef, useEffect } from "react";
|
||||||
|
|
||||||
type HeroBillboardBackgroundProps = Extract<
|
type HeroBillboardBackgroundProps = Extract<
|
||||||
HeroBackgroundVariantProps,
|
HeroBackgroundVariantProps,
|
||||||
@@ -67,9 +68,13 @@ interface HeroBillboardProps {
|
|||||||
marqueeImageClassName?: string;
|
marqueeImageClassName?: string;
|
||||||
marqueeTextClassName?: string;
|
marqueeTextClassName?: string;
|
||||||
marqueeIconClassName?: string;
|
marqueeIconClassName?: string;
|
||||||
|
backgroundVideoSrc?: string;
|
||||||
|
backgroundVideoFallbackSrc?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
const HeroBillboard = ({
|
const HeroBillboard = ({
|
||||||
|
backgroundVideoSrc,
|
||||||
|
backgroundVideoFallbackSrc = "https://img.b2bpic.net/free-photo/abstract-luxury-gradient-blue-background_53876-120942.jpg",
|
||||||
title,
|
title,
|
||||||
description,
|
description,
|
||||||
background,
|
background,
|
||||||
|
|||||||
@@ -82,7 +82,10 @@ const HeroBillboardCarousel = ({
|
|||||||
const renderCarouselItem = (item: MediaItem, index: number) => (
|
const renderCarouselItem = (item: MediaItem, index: number) => (
|
||||||
<div
|
<div
|
||||||
key={index}
|
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
|
<MediaContent
|
||||||
imageSrc={item.imageSrc}
|
imageSrc={item.imageSrc}
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ import ProductImage from "@/components/shared/ProductImage";
|
|||||||
import { cls, shouldUseInvertedText } from "@/lib/utils";
|
import { cls, shouldUseInvertedText } from "@/lib/utils";
|
||||||
import { useTheme } from "@/providers/themeProvider/ThemeProvider";
|
import { useTheme } from "@/providers/themeProvider/ThemeProvider";
|
||||||
import { useProducts } from "@/hooks/useProducts";
|
import { useProducts } from "@/hooks/useProducts";
|
||||||
|
import { useRef, useEffect } from "react";
|
||||||
import type { Product } from "@/lib/api/product";
|
import type { Product } from "@/lib/api/product";
|
||||||
import type { LucideIcon } from "lucide-react";
|
import type { LucideIcon } from "lucide-react";
|
||||||
import type { ButtonConfig, GridVariant, CardAnimationType, TitleSegment, ButtonAnimationType } from "@/components/cardStack/types";
|
import type { ButtonConfig, GridVariant, CardAnimationType, TitleSegment, ButtonAnimationType } from "@/components/cardStack/types";
|
||||||
@@ -52,6 +53,8 @@ interface ProductCardOneProps {
|
|||||||
textBoxButtonContainerClassName?: string;
|
textBoxButtonContainerClassName?: string;
|
||||||
textBoxButtonClassName?: string;
|
textBoxButtonClassName?: string;
|
||||||
textBoxButtonTextClassName?: string;
|
textBoxButtonTextClassName?: string;
|
||||||
|
backgroundVideoUrl?: string;
|
||||||
|
showBackgroundVideo?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface ProductCardItemProps {
|
interface ProductCardItemProps {
|
||||||
@@ -72,7 +75,7 @@ const ProductCardItem = memo(({
|
|||||||
cardPriceClassName = "",
|
cardPriceClassName = "",
|
||||||
}: ProductCardItemProps) => {
|
}: ProductCardItemProps) => {
|
||||||
return (
|
return (
|
||||||
<article
|
<article className="relative overflow-hidden"
|
||||||
className={cls("card group relative h-full flex flex-col gap-4 cursor-pointer p-4 rounded-theme-capped", cardClassName)}
|
className={cls("card group relative h-full flex flex-col gap-4 cursor-pointer p-4 rounded-theme-capped", cardClassName)}
|
||||||
onClick={product.onProductClick}
|
onClick={product.onProductClick}
|
||||||
role="article"
|
role="article"
|
||||||
|
|||||||
Reference in New Issue
Block a user