From cb0305fdd83e9ef6ca8105c4ba364b2822cdaed2 Mon Sep 17 00:00:00 2001 From: bender Date: Mon, 9 Mar 2026 14:22:11 +0000 Subject: [PATCH] Update src/app/menu/page.tsx --- src/app/menu/page.tsx | 284 ++++++++++++++++++++++++++---------------- 1 file changed, 180 insertions(+), 104 deletions(-) diff --git a/src/app/menu/page.tsx b/src/app/menu/page.tsx index aaaa90b..1ffca30 100644 --- a/src/app/menu/page.tsx +++ b/src/app/menu/page.tsx @@ -2,48 +2,61 @@ import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider"; import NavbarStyleCentered from "@/components/navbar/NavbarStyleCentered/NavbarStyleCentered"; +import HeroSplit from "@/components/sections/hero/HeroSplit"; import FeatureCardMedia from "@/components/sections/feature/FeatureCardMedia"; -import MetricCardFourteen from "@/components/sections/metrics/MetricCardFourteen"; +import ProductCardOne from "@/components/sections/product/ProductCardOne"; import ContactCTA from "@/components/sections/contact/ContactCTA"; import FooterBase from "@/components/sections/footer/FooterBase"; -import Link from "next/link"; -import { ChefHat } from "lucide-react"; +import { Sparkles, ChefHat, Wine, Cake } from "lucide-react"; export default function MenuPage() { const navItems = [ - { name: "Accueil", id: "/" }, - { name: "Le Restaurant", id: "/about" }, + { name: "Accueil", id: "home" }, + { name: "Le Restaurant", id: "le-restaurant" }, { name: "Menu", id: "/menu" }, - { name: "Galerie", id: "/galerie" }, - { name: "Contact", id: "/contact" }, + { name: "Galerie", id: "gallery" }, + { name: "Contact", id: "contact" } ]; + const handleNavClick = (id: string) => { + if (id === "home") { + window.location.href = "/"; + } else if (id === "le-restaurant") { + window.location.href = "/le-restaurant"; + } else if (id === "/menu") { + window.location.href = "/menu"; + } else { + const element = document.getElementById(id); + if (element) { + element.scrollIntoView({ behavior: "smooth" }); + } + } + }; + const footerColumns = [ { - title: "Navigation", - items: [ + title: "Navigation", items: [ { label: "Accueil", href: "/" }, - { label: "À Propos", href: "/about" }, + { label: "À Propos", href: "/le-restaurant" }, { label: "Menu", href: "/menu" }, - { label: "Galerie", href: "/galerie" }, - ], + { label: "Galerie", href: "/#gallery" }, + { label: "Contact", href: "#contact" } + ] }, { - title: "Contact", - items: [ + title: "Contact", items: [ { label: "23 Rue de l'Eminee, 63000 Clermont-Ferrand", href: "#" }, { label: "04 73 44 22 22", href: "tel:+33473442222" }, - { label: "Réserver une Table", href: "/contact" }, - ], + { label: "Réserver une Table", href: "#contact" } + ] }, { - title: "Horaires", - items: [ + title: "Horaires", items: [ { label: "Mardi-Dimanche : 12h00-14h30", href: "#" }, { label: "19h00-22h30", href: "#" }, - { label: "Fermé le lundi", href: "#" }, - ], - }, + { label: "Fermé le lundi", href: "#" } + ] + } ]; return ( @@ -53,7 +66,7 @@ export default function MenuPage() { borderRadius="soft" contentWidth="compact" sizing="largeSmallSizeMediumTitles" - background="aurora" + background="circleGradient" cardStyle="glass-depth" primaryButtonStyle="gradient" secondaryButtonStyle="layered" @@ -63,59 +76,45 @@ export default function MenuPage() { handleNavClick("contact") }} brandName="Caffè Mazzo" /> -