Update src/app/page.tsx
This commit is contained in:
@@ -11,37 +11,24 @@ import ProductCardOne from "@/components/sections/product/ProductCardOne";
|
||||
import MetricCardFourteen from "@/components/sections/metrics/MetricCardFourteen";
|
||||
import ContactCTA from "@/components/sections/contact/ContactCTA";
|
||||
import FooterBase from "@/components/sections/footer/FooterBase";
|
||||
import { Sparkles, Heart, Coffee, Quote, ChefHat } from "lucide-react";
|
||||
import { Sparkles, Heart, Coffee, Quote, ChefHat, MapPin, Phone, Clock, Instagram, Facebook } from "lucide-react";
|
||||
|
||||
export default function HomePage() {
|
||||
const navItems = [
|
||||
{ name: "Accueil", id: "home" },
|
||||
{ name: "Accueil", id: "/" },
|
||||
{ name: "Le Restaurant", id: "le-restaurant" },
|
||||
{ name: "Menu", id: "menu" },
|
||||
{ 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" || id === "gallery" || id === "contact") {
|
||||
const element = document.getElementById(id);
|
||||
if (element) {
|
||||
element.scrollIntoView({ behavior: "smooth" });
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
const footerColumns = [
|
||||
{
|
||||
title: "Navigation", items: [
|
||||
{ label: "Accueil", href: "/" },
|
||||
{ label: "À Propos", href: "/le-restaurant" },
|
||||
{ label: "Galerie", href: "#gallery" },
|
||||
{ label: "Contact", href: "#contact" }
|
||||
{ label: "À Propos", href: "#le-restaurant" },
|
||||
{ label: "Menu", href: "#menu" },
|
||||
{ label: "Galerie", href: "#gallery" }
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -57,6 +44,12 @@ export default function HomePage() {
|
||||
{ label: "19h00-22h30", href: "#" },
|
||||
{ label: "Fermé le lundi", href: "#" }
|
||||
]
|
||||
},
|
||||
{
|
||||
title: "Réseaux", items: [
|
||||
{ label: "Instagram", href: "https://instagram.com" },
|
||||
{ label: "Facebook", href: "https://facebook.com" }
|
||||
]
|
||||
}
|
||||
];
|
||||
|
||||
@@ -77,7 +70,7 @@ export default function HomePage() {
|
||||
<NavbarStyleCentered
|
||||
navItems={navItems}
|
||||
button={{
|
||||
text: "Réserver une table", onClick: () => handleNavClick("contact")
|
||||
text: "Réserver une table", href: "#contact"
|
||||
}}
|
||||
brandName="Caffè Mazzo"
|
||||
/>
|
||||
@@ -101,7 +94,7 @@ export default function HomePage() {
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div id="about" data-section="about">
|
||||
<div id="le-restaurant" data-section="about">
|
||||
<TestimonialAboutCard
|
||||
tag="Notre Histoire"
|
||||
tagIcon={Heart}
|
||||
@@ -252,4 +245,4 @@ export default function HomePage() {
|
||||
</div>
|
||||
</ThemeProvider>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user