From 3cc394d69aa96fd7c303e3665e7977e992fc31e3 Mon Sep 17 00:00:00 2001 From: bender Date: Thu, 12 Feb 2026 12:34:10 +0000 Subject: [PATCH 1/9] Update src/app/about/page.tsx --- src/app/about/page.tsx | 48 +++++++++--------------------------------- 1 file changed, 10 insertions(+), 38 deletions(-) diff --git a/src/app/about/page.tsx b/src/app/about/page.tsx index d698a6f..f8447fb 100644 --- a/src/app/about/page.tsx +++ b/src/app/about/page.tsx @@ -8,32 +8,6 @@ import FooterLogoEmphasis from '@/components/sections/footer/FooterLogoEmphasis' import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider"; import Link from 'next/link'; -const assetMap = { - "coffee-shop-interior": { url: "https://img.b2bpic.net/free-photo/man-apron-preparing-coffee-machine_23-2148366708.jpg", alt: "coffee shop interior barista making coffee cozy cafe coffee beans" }, - "freshly-brewed-coffee": { url: "https://img.b2bpic.net/free-photo/close-up-barista-hands-preparing-coffee-customer-coffee-shop_93675-135317.jpg", alt: "freshly brewed coffee coffee cup steam coffee latte art" }, - "pastries-display": { url: "https://img.b2bpic.net/free-photo/portrait-smiling-waitress-using-coffee-machine_107420-12297.jpg", alt: "pastries display bakery counter croissants muffins dessert tray" }, - "latte-art": { url: "https://img.b2bpic.net/free-photo/close-up-barista-hands-preparing-coffee-customer-coffee-shop_93675-134687.jpg", alt: "latte art coffee foam heart latte coffee design" }, - "coffee-beans-roasting": { url: "https://img.b2bpic.net/free-photo/close-up-image-man-preparing-cappuccino-coffee-machine_613910-8868.jpg", alt: "coffee beans roasting fresh coffee beans roastery coffee process" }, - "barista-at-work": { url: "https://img.b2bpic.net/free-photo/black-bearded-coffee-seller-pouring-coffee-shop_613910-443.jpg", alt: "barista at work making coffee coffee preparation espresso machine" }, - "customer-review-avatar-1": { url: "https://img.b2bpic.net/free-photo/male-barista-preparing-cappuccino-coffee-shop_1303-29343.jpg", alt: "happy customer portrait smiling woman coffee cafe visitor person drinking coffee" }, - "customer-review-avatar-2": { url: "https://img.b2bpic.net/free-photo/close-up-barista-female-hands-pressing-coffee-into-tamper-prepares-order-cafe-counter_1258-203404.jpg", alt: "man enjoying coffee cafe customer smiling customer testimonial person relaxing cafe" }, - "customer-review-avatar-3": { url: "https://img.b2bpic.net/free-photo/smiling-waiter-making-cup-coffee_1170-577.jpg", alt: "young woman coffee shop satisfied customer coffee experience portrait smile cafe" }, - "customer-review-avatar-4": { url: "https://img.b2bpic.net/free-photo/high-angle-male-making-coffee_23-2148366604.jpg", alt: "older man coffee shop review coffee happy patron coffee break portrait" }, - "cozy-cafe-setting": { url: "https://img.b2bpic.net/free-photo/woman-works-cafe-evening_1153-3549.jpg", alt: "cozy cafe setting comfortable seating coffee shop decor warm ambiance" } -}; - -function resolveAsset(id) { - if (!id || !id.startsWith("asset://")) { - return { url: id, alt: "" }; - } - const assetKey = id.replace("asset://", ""); - const asset = assetMap[assetKey]; - if (asset) { - return { url: asset.url, alt: asset.alt }; - } - return { url: "/placeholders/placeholder1.webp", alt: "Placeholder image" }; -} - export default function AboutPage() { const navItems = [ { name: "Home", id: "/" }, @@ -70,8 +44,7 @@ export default function AboutPage() { From 00cf0202f67eab661d899405be84ba4d883fccca Mon Sep 17 00:00:00 2001 From: bender Date: Thu, 12 Feb 2026 12:34:11 +0000 Subject: [PATCH 2/9] Update src/app/blog/page.tsx --- src/app/blog/page.tsx | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/src/app/blog/page.tsx b/src/app/blog/page.tsx index 643ea13..75dc707 100644 --- a/src/app/blog/page.tsx +++ b/src/app/blog/page.tsx @@ -10,6 +10,15 @@ import { useBlogPosts } from "@/hooks/useBlogPosts"; export default function BlogPage() { const { posts, isLoading } = useBlogPosts(); + const navItems = [ + { name: "Home", id: "/" }, + { name: "About", id: "/about" }, + { name: "Menu", id: "/menu" }, + { name: "Testimonials", id: "/testimonials" }, + { name: "Contact", id: "/contact" }, + { name: "Blog", id: "/blog" } + ]; + return ( @@ -62,11 +65,10 @@ export default function BlogPage() { From 7565fe467ab4c7996b29f9b1a20568352b24174a Mon Sep 17 00:00:00 2001 From: bender Date: Thu, 12 Feb 2026 12:34:12 +0000 Subject: [PATCH 3/9] Update src/app/contact/page.tsx --- src/app/contact/page.tsx | 42 +++++++--------------------------------- 1 file changed, 7 insertions(+), 35 deletions(-) diff --git a/src/app/contact/page.tsx b/src/app/contact/page.tsx index d05478d..3f547bb 100644 --- a/src/app/contact/page.tsx +++ b/src/app/contact/page.tsx @@ -8,32 +8,6 @@ import FooterLogoEmphasis from '@/components/sections/footer/FooterLogoEmphasis' import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider"; import Link from 'next/link'; -const assetMap = { - "coffee-shop-interior": { url: "https://img.b2bpic.net/free-photo/man-apron-preparing-coffee-machine_23-2148366708.jpg", alt: "coffee shop interior barista making coffee cozy cafe coffee beans" }, - "freshly-brewed-coffee": { url: "https://img.b2bpic.net/free-photo/close-up-barista-hands-preparing-coffee-customer-coffee-shop_93675-135317.jpg", alt: "freshly brewed coffee coffee cup steam coffee latte art" }, - "pastries-display": { url: "https://img.b2bpic.net/free-photo/portrait-smiling-waitress-using-coffee-machine_107420-12297.jpg", alt: "pastries display bakery counter croissants muffins dessert tray" }, - "latte-art": { url: "https://img.b2bpic.net/free-photo/close-up-barista-hands-preparing-coffee-customer-coffee-shop_93675-134687.jpg", alt: "latte art coffee foam heart latte coffee design" }, - "coffee-beans-roasting": { url: "https://img.b2bpic.net/free-photo/close-up-image-man-preparing-cappuccino-coffee-machine_613910-8868.jpg", alt: "coffee beans roasting fresh coffee beans roastery coffee process" }, - "barista-at-work": { url: "https://img.b2bpic.net/free-photo/black-bearded-coffee-seller-pouring-coffee-shop_613910-443.jpg", alt: "barista at work making coffee coffee preparation espresso machine" }, - "customer-review-avatar-1": { url: "https://img.b2bpic.net/free-photo/male-barista-preparing-cappuccino-coffee-shop_1303-29343.jpg", alt: "happy customer portrait smiling woman coffee cafe visitor person drinking coffee" }, - "customer-review-avatar-2": { url: "https://img.b2bpic.net/free-photo/close-up-barista-female-hands-pressing-coffee-into-tamper-prepares-order-cafe-counter_1258-203404.jpg", alt: "man enjoying coffee cafe customer smiling customer testimonial person relaxing cafe" }, - "customer-review-avatar-3": { url: "https://img.b2bpic.net/free-photo/smiling-waiter-making-cup-coffee_1170-577.jpg", alt: "young woman coffee shop satisfied customer coffee experience portrait smile cafe" }, - "customer-review-avatar-4": { url: "https://img.b2bpic.net/free-photo/high-angle-male-making-coffee_23-2148366604.jpg", alt: "older man coffee shop review coffee happy patron coffee break portrait" }, - "cozy-cafe-setting": { url: "https://img.b2bpic.net/free-photo/woman-works-cafe-evening_1153-3549.jpg", alt: "cozy cafe setting comfortable seating coffee shop decor warm ambiance" } -}; - -function resolveAsset(id) { - if (!id || !id.startsWith("asset://")) { - return { url: id, alt: "" }; - } - const assetKey = id.replace("asset://", ""); - const asset = assetMap[assetKey]; - if (asset) { - return { url: asset.url, alt: asset.alt }; - } - return { url: "/placeholders/placeholder1.webp", alt: "Placeholder image" }; -} - export default function ContactPage() { const navItems = [ { name: "Home", id: "/" }, @@ -71,7 +45,7 @@ export default function ContactPage() { text="Have questions, feedback, or just want to say hello? We'd love to hear from you!" animationType="entrance-slide" buttons={[{ text: "Send Us an Email", href: "mailto:info@beanandbrew.com" }, { text: "Call Us: +1 (234) 567-8900", href: "tel:+1234567890" }]} - background={{ variant: "noise" }} + background={{ variant: "plain" }} useInvertedBackground={false} textClassName="text-foreground" buttonClassName="text-primary-cta" @@ -83,8 +57,7 @@ export default function ContactPage() { From 3bcc192a19c92a2eb45a32571225d694325ddceb Mon Sep 17 00:00:00 2001 From: bender Date: Thu, 12 Feb 2026 12:34:13 +0000 Subject: [PATCH 4/9] Update src/app/layout.tsx --- src/app/layout.tsx | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 133c3c0..dddd520 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -5,27 +5,16 @@ import { ServiceWrapper } from "@/components/ServiceWrapper"; import Tag from "@/tag/Tag"; const manrope = Manrope({ - variable: "--font-manrope", - subsets: ["latin"], + variable: "--font-manrope", subsets: ["latin"], }); export const metadata: Metadata = { - title: "Bean & Brew Coffee Shop - Your Daily Escape", - description: "Experience artisanal coffee, delightful pastries, and a cozy ambiance at Bean & Brew. Your perfect spot for a coffee break, work, or social gathering.", - keywords: ["coffee shop", "cafe", "artisanal coffee", "pastries", "espresso", "latte", "local coffee", "cozy cafe", "Bean & Brew"], + title: "Bean & Brew Coffee Shop - Your Daily Escape", description: "Experience artisanal coffee, delightful pastries, and a cozy ambiance at Bean & Brew. Your perfect spot for a coffee break, work, or social gathering.", keywords: ["coffee shop", "cafe", "artisanal coffee", "pastries", "espresso", "latte", "local coffee", "cozy cafe", "Bean & Brew"], openGraph: { - title: "Bean & Brew Coffee Shop - Your Daily Escape", - description: "Experience artisanal coffee, delightful pastries, and a cozy ambiance at Bean & Brew. Your perfect spot for a coffee break, work, or social gathering.", - url: "https://www.beanandbrew.com", - siteName: "Bean & Brew", - images: [{ url: "https://img.b2bpic.net/free-photo/man-apron-preparing-coffee-machine_23-2148366708.jpg", alt: "Coffee shop interior with coffee and pastries" }], - type: "website", - }, + title: "Bean & Brew Coffee Shop - Your Daily Escape", description: "Experience artisanal coffee, delightful pastries, and a cozy ambiance at Bean & Brew. Your perfect spot for a coffee break, work, or social gathering.", url: "https://www.beanandbrew.com", siteName: "Bean & Brew", images: [{ url: "https://img.b2bpic.net/free-photo/man-apron-preparing-coffee-machine_23-2148366708.jpg", alt: "Coffee shop interior with coffee and pastries" }], + type: "website"}, twitter: { - card: "summary_large_image", - title: "Bean & Brew Coffee Shop - Your Daily Escape", - description: "Experience artisanal coffee, delightful pastries, and a cozy ambiance at Bean & Brew. Your perfect spot for a coffee break, work, or social gathering.", - images: ["https://img.b2bpic.net/free-photo/man-apron-preparing-coffee-machine_23-2148366708.jpg"], + card: "summary_large_image", title: "Bean & Brew Coffee Shop - Your Daily Escape", description: "Experience artisanal coffee, delightful pastries, and a cozy ambiance at Bean & Brew. Your perfect spot for a coffee break, work, or social gathering.", images: ["https://img.b2bpic.net/free-photo/man-apron-preparing-coffee-machine_23-2148366708.jpg"], }, robots: { index: true, From bdc62df1eab9235b44ac6b42c3e62790c2c654ee Mon Sep 17 00:00:00 2001 From: bender Date: Thu, 12 Feb 2026 12:34:14 +0000 Subject: [PATCH 5/9] Update src/app/menu/page.tsx --- src/app/menu/page.tsx | 53 +++++++++++-------------------------------- 1 file changed, 13 insertions(+), 40 deletions(-) diff --git a/src/app/menu/page.tsx b/src/app/menu/page.tsx index c3a9d05..ae664c7 100644 --- a/src/app/menu/page.tsx +++ b/src/app/menu/page.tsx @@ -8,32 +8,6 @@ import FooterLogoEmphasis from '@/components/sections/footer/FooterLogoEmphasis' import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider"; import Link from 'next/link'; -const assetMap = { - "coffee-shop-interior": { url: "https://img.b2bpic.net/free-photo/man-apron-preparing-coffee-machine_23-2148366708.jpg", alt: "coffee shop interior barista making coffee cozy cafe coffee beans" }, - "freshly-brewed-coffee": { url: "https://img.b2bpic.net/free-photo/close-up-barista-hands-preparing-coffee-customer-coffee-shop_93675-135317.jpg", alt: "freshly brewed coffee coffee cup steam coffee latte art" }, - "pastries-display": { url: "https://img.b2bpic.net/free-photo/portrait-smiling-waitress-using-coffee-machine_107420-12297.jpg", alt: "pastries display bakery counter croissants muffins dessert tray" }, - "latte-art": { url: "https://img.b2bpic.net/free-photo/close-up-barista-hands-preparing-coffee-customer-coffee-shop_93675-134687.jpg", alt: "latte art coffee foam heart latte coffee design" }, - "coffee-beans-roasting": { url: "https://img.b2bpic.net/free-photo/close-up-image-man-preparing-cappuccino-coffee-machine_613910-8868.jpg", alt: "coffee beans roasting fresh coffee beans roastery coffee process" }, - "barista-at-work": { url: "https://img.b2bpic.net/free-photo/black-bearded-coffee-seller-pouring-coffee-shop_613910-443.jpg", alt: "barista at work making coffee coffee preparation espresso machine" }, - "customer-review-avatar-1": { url: "https://img.b2bpic.net/free-photo/male-barista-preparing-cappuccino-coffee-shop_1303-29343.jpg", alt: "happy customer portrait smiling woman coffee cafe visitor person drinking coffee" }, - "customer-review-avatar-2": { url: "https://img.b2bpic.net/free-photo/close-up-barista-female-hands-pressing-coffee-into-tamper-prepares-order-cafe-counter_1258-203404.jpg", alt: "man enjoying coffee cafe customer smiling customer testimonial person relaxing cafe" }, - "customer-review-avatar-3": { url: "https://img.b2bpic.net/free-photo/smiling-waiter-making-cup-coffee_1170-577.jpg", alt: "young woman coffee shop satisfied customer coffee experience portrait smile cafe" }, - "customer-review-avatar-4": { url: "https://img.b2bpic.net/free-photo/high-angle-male-making-coffee_23-2148366604.jpg", alt: "older man coffee shop review coffee happy patron coffee break portrait" }, - "cozy-cafe-setting": { url: "https://img.b2bpic.net/free-photo/woman-works-cafe-evening_1153-3549.jpg", alt: "cozy cafe setting comfortable seating coffee shop decor warm ambiance" } -}; - -function resolveAsset(id) { - if (!id || !id.startsWith("asset://")) { - return { url: id, alt: "" }; - } - const assetKey = id.replace("asset://", ""); - const asset = assetMap[assetKey]; - if (asset) { - return { url: asset.url, alt: asset.alt }; - } - return { url: "/placeholders/placeholder1.webp", alt: "Placeholder image" }; -} - export default function MenuPage() { const navItems = [ { name: "Home", id: "/" }, @@ -74,15 +48,15 @@ export default function MenuPage() { animationType="slide-up" useInvertedBackground={false} products={[ - { id: "1", brand: "Bean & Brew", name: "Classic Espresso", price: "$3.50", rating: 5, reviewCount: "1.2k", imageSrc: resolveAsset("asset://latte-art").url, imageAlt: resolveAsset("asset://latte-art").alt }, - { id: "2", brand: "Bean & Brew", name: "Velvet Latte", price: "$5.00", rating: 4, reviewCount: "850", imageSrc: resolveAsset("asset://freshly-brewed-coffee").url, imageAlt: resolveAsset("asset://freshly-brewed-coffee").alt }, - { id: "3", brand: "Bean & Brew", name: "Artisan Croissant", price: "$4.25", rating: 5, reviewCount: "600", imageSrc: resolveAsset("asset://pastries-display").url, imageAlt: resolveAsset("asset://pastries-display").alt }, - { id: "4", brand: "Bean & Brew", name: "Blueberry Muffin", price: "$3.75", rating: 4, reviewCount: "420", imageSrc: resolveAsset("asset://pastries-display").url, imageAlt: resolveAsset("asset://pastries-display").alt }, - { id: "5", brand: "Bean & Brew", name: "Iced Caramel Macchiato", price: "$5.50", rating: 4, reviewCount: "700", imageSrc: resolveAsset("asset://latte-art").url, imageAlt: resolveAsset("asset://latte-art").alt }, - { id: "6", brand: "Bean & Brew", name: "Chocolate Chip Cookie", price: "$3.00", rating: 5, reviewCount: "500", imageSrc: resolveAsset("asset://pastries-display").url, imageAlt: resolveAsset("asset://pastries-display").alt } + { id: "1", brand: "Bean & Brew", name: "Classic Espresso", price: "$3.50", rating: 5, reviewCount: "1.2k", imageSrc: "https://img.b2bpic.net/free-photo/close-up-barista-hands-preparing-coffee-customer-coffee-shop_93675-134687.jpg", imageAlt: "latte art coffee foam heart latte coffee design" }, + { id: "2", brand: "Bean & Brew", name: "Velvet Latte", price: "$5.00", rating: 4, reviewCount: "850", imageSrc: "https://img.b2bpic.net/free-photo/close-up-barista-hands-preparing-coffee-customer-coffee-shop_93675-135317.jpg", imageAlt: "freshly brewed coffee coffee cup steam coffee latte art" }, + { id: "3", brand: "Bean & Brew", name: "Artisan Croissant", price: "$4.25", rating: 5, reviewCount: "600", imageSrc: "https://img.b2bpic.net/free-photo/portrait-smiling-waitress-using-coffee-machine_107420-12297.jpg", imageAlt: "pastries display bakery counter croissants muffins dessert tray" }, + { id: "4", brand: "Bean & Brew", name: "Blueberry Muffin", price: "$3.75", rating: 4, reviewCount: "420", imageSrc: "https://img.b2bpic.net/free-photo/portrait-smiling-waitress-using-coffee-machine_107420-12297.jpg", imageAlt: "pastries display bakery counter croissants muffins dessert tray" }, + { id: "5", brand: "Bean & Brew", name: "Iced Caramel Macchiato", price: "$5.50", rating: 4, reviewCount: "700", imageSrc: "https://img.b2bpic.net/free-photo/close-up-barista-hands-preparing-coffee-customer-coffee-shop_93675-134687.jpg", imageAlt: "latte art coffee foam heart latte coffee design" }, + { id: "6", brand: "Bean & Brew", name: "Chocolate Chip Cookie", price: "$3.00", rating: 5, reviewCount: "500", imageSrc: "https://img.b2bpic.net/free-photo/portrait-smiling-waitress-using-coffee-machine_107420-12297.jpg", imageAlt: "pastries display bakery counter croissants muffins dessert tray" } ]} gridVariant="three-columns-all-equal-width" - titleClassName="text-foreground" + textBoxTitleClassName="text-foreground" descriptionClassName="text-foreground" cardBrandClassName="text-foreground" cardNameClassName="text-foreground" @@ -98,13 +72,13 @@ export default function MenuPage() { animationType="slide-up" useInvertedBackground={false} features={[ - { id: "01", title: "Premium Coffee Beans", description: "Ethically sourced from the world's best regions, roasted to perfection.", imageSrc: resolveAsset("asset://coffee-beans-roasting").url, imageAlt: resolveAsset("asset://coffee-beans-roasting").alt }, - { id: "02", title: "Fresh Local Ingredients", description: "Our pastries and treats are made daily with locally sourced, fresh ingredients.", imageSrc: resolveAsset("asset://pastries-display").url, imageAlt: resolveAsset("asset://pastries-display").alt }, - { id: "03", title: "Skilled Baristas", description: "Our team consists of passionate, expertly trained baristas dedicated to their craft.", imageSrc: resolveAsset("asset://barista-at-work").url, imageAlt: resolveAsset("asset://barista-at-work").alt }, - { id: "04", title: "Artisanal Preparation", description: "Each drink is prepared with meticulous care and attention to detail, ensuring perfection.", imageSrc: resolveAsset("asset://freshly-brewed-coffee").url, imageAlt: resolveAsset("asset://freshly-brewed-coffee").alt } + { id: "01", title: "Premium Coffee Beans", description: "Ethically sourced from the world's best regions, roasted to perfection.", imageSrc: "https://img.b2bpic.net/free-photo/close-up-image-man-preparing-cappuccino-coffee-machine_613910-8868.jpg", imageAlt: "coffee beans roasting fresh coffee beans roastery coffee process" }, + { id: "02", title: "Fresh Local Ingredients", description: "Our pastries and treats are made daily with locally sourced, fresh ingredients.", imageSrc: "https://img.b2bpic.net/free-photo/portrait-smiling-waitress-using-coffee-machine_107420-12297.jpg", imageAlt: "pastries display bakery counter croissants muffins dessert tray" }, + { id: "03", title: "Skilled Baristas", description: "Our team consists of passionate, expertly trained baristas dedicated to their craft.", imageSrc: "https://img.b2bpic.net/free-photo/black-bearded-coffee-seller-pouring-coffee-shop_613910-443.jpg", imageAlt: "barista at work making coffee coffee preparation espresso machine" }, + { id: "04", title: "Artisanal Preparation", description: "Each drink is prepared with meticulous care and attention to detail, ensuring perfection.", imageSrc: "https://img.b2bpic.net/free-photo/close-up-barista-hands-preparing-coffee-customer-coffee-shop_93675-135317.jpg", imageAlt: "freshly brewed coffee coffee cup steam coffee latte art" } ]} gridVariant="four-items-2x2-equal-grid" - titleClassName="text-foreground" + textBoxTitleClassName="text-foreground" descriptionClassName="text-foreground" cardTitleClassName="text-foreground" cardDescriptionClassName="text-foreground" @@ -118,7 +92,7 @@ export default function MenuPage() { text="Ready to order your favorite coffee and treats?" animationType="entrance-slide" buttons={[{ text: "Order Online", href: "/menu" }, { text: "Visit Our Shop", href: "/contact" }]} - background={{ variant: "noise" }} + background={{ variant: "plain" }} useInvertedBackground={false} textClassName="text-foreground" buttonClassName="text-primary-cta" @@ -134,7 +108,6 @@ export default function MenuPage() { { items: [{ label: "Contact", href: "/contact" }, { label: "Careers", href: "/careers" }] }, { items: [{ label: "Facebook", href: "https://facebook.com/beanandbrew" }, { label: "Instagram", href: "https://instagram.com/beanandbrew" }, { label: "Twitter", href: "https://twitter.com/beanandbrew" }] } ]} - useInvertedBackground={false} logoClassName="text-foreground" itemClassName="text-foreground" /> From 5f038281430ced4cc26d8939a91e035f20219657 Mon Sep 17 00:00:00 2001 From: bender Date: Thu, 12 Feb 2026 12:34:14 +0000 Subject: [PATCH 6/9] Update src/app/page.tsx --- src/app/page.tsx | 67 +++++++++++++++--------------------------------- 1 file changed, 20 insertions(+), 47 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 695b10b..ea029e3 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -10,32 +10,6 @@ import FooterLogoEmphasis from '@/components/sections/footer/FooterLogoEmphasis' import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider"; import Link from 'next/link'; -const assetMap = { - "coffee-shop-interior": { url: "https://img.b2bpic.net/free-photo/man-apron-preparing-coffee-machine_23-2148366708.jpg", alt: "coffee shop interior barista making coffee cozy cafe coffee beans" }, - "freshly-brewed-coffee": { url: "https://img.b2bpic.net/free-photo/close-up-barista-hands-preparing-coffee-customer-coffee-shop_93675-135317.jpg", alt: "freshly brewed coffee coffee cup steam coffee latte art" }, - "pastries-display": { url: "https://img.b2bpic.net/free-photo/portrait-smiling-waitress-using-coffee-machine_107420-12297.jpg", alt: "pastries display bakery counter croissants muffins dessert tray" }, - "latte-art": { url: "https://img.b2bpic.net/free-photo/close-up-barista-hands-preparing-coffee-customer-coffee-shop_93675-134687.jpg", alt: "latte art coffee foam heart latte coffee design" }, - "coffee-beans-roasting": { url: "https://img.b2bpic.net/free-photo/close-up-image-man-preparing-cappuccino-coffee-machine_613910-8868.jpg", alt: "coffee beans roasting fresh coffee beans roastery coffee process" }, - "barista-at-work": { url: "https://img.b2bpic.net/free-photo/black-bearded-coffee-seller-pouring-coffee-shop_613910-443.jpg", alt: "barista at work making coffee coffee preparation espresso machine" }, - "customer-review-avatar-1": { url: "https://img.b2bpic.net/free-photo/male-barista-preparing-cappuccino-coffee-shop_1303-29343.jpg", alt: "happy customer portrait smiling woman coffee cafe visitor person drinking coffee" }, - "customer-review-avatar-2": { url: "https://img.b2bpic.net/free-photo/close-up-barista-female-hands-pressing-coffee-into-tamper-prepares-order-cafe-counter_1258-203404.jpg", alt: "man enjoying coffee cafe customer smiling customer testimonial person relaxing cafe" }, - "customer-review-avatar-3": { url: "https://img.b2bpic.net/free-photo/smiling-waiter-making-cup-coffee_1170-577.jpg", alt: "young woman coffee shop satisfied customer coffee experience portrait smile cafe" }, - "customer-review-avatar-4": { url: "https://img.b2bpic.net/free-photo/high-angle-male-making-coffee_23-2148366604.jpg", alt: "older man coffee shop review coffee happy patron coffee break portrait" }, - "cozy-cafe-setting": { url: "https://img.b2bpic.net/free-photo/woman-works-cafe-evening_1153-3549.jpg", alt: "cozy cafe setting comfortable seating coffee shop decor warm ambiance" } -}; - -function resolveAsset(id) { - if (!id || !id.startsWith("asset://")) { - return { url: id, alt: "" }; - } - const assetKey = id.replace("asset://", ""); - const asset = assetMap[assetKey]; - if (asset) { - return { url: asset.url, alt: asset.alt }; - } - return { url: "/placeholders/placeholder1.webp", alt: "Placeholder image" }; -} - export default function HomePage() { const navItems = [ { name: "Home", id: "/" }, @@ -72,17 +46,17 @@ export default function HomePage() { From 9e496d17c55d3900df063062e20a5ca167afc5f0 Mon Sep 17 00:00:00 2001 From: bender Date: Thu, 12 Feb 2026 12:34:15 +0000 Subject: [PATCH 7/9] Update src/app/shop/[id]/page.tsx --- src/app/shop/[id]/page.tsx | 45 ++++++++++++++++++-------------------- 1 file changed, 21 insertions(+), 24 deletions(-) diff --git a/src/app/shop/[id]/page.tsx b/src/app/shop/[id]/page.tsx index cacb408..61ec119 100644 --- a/src/app/shop/[id]/page.tsx +++ b/src/app/shop/[id]/page.tsx @@ -66,6 +66,15 @@ export default function ProductPage({ params }: ProductPageProps) { await checkout(getCheckoutItems(), { successUrl: currentUrl.toString() }); }, [cartItems, checkout, getCheckoutItems]); + const navItems = [ + { name: "Home", id: "/" }, + { name: "About", id: "/about" }, + { name: "Menu", id: "/menu" }, + { name: "Testimonials", id: "/testimonials" }, + { name: "Contact", id: "/contact" }, + { name: "Shop", id: "/shop" } + ]; + if (isLoading) { return ( -