Update src/app/menu/page.tsx
This commit is contained in:
@@ -3,85 +3,34 @@
|
||||
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
|
||||
import ReactLenis from "lenis/react";
|
||||
import NavbarStyleFullscreen from '@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen';
|
||||
import ProductCardTwo from '@/components/sections/product/ProductCardTwo';
|
||||
import FooterSimple from '@/components/sections/footer/FooterSimple';
|
||||
import { useState } from "react";
|
||||
|
||||
const categories = [
|
||||
{ id: "burgers", name: "Burgers" },
|
||||
{ id: "street-food", name: "Street Food" },
|
||||
{ id: "wraps", name: "Wraps" },
|
||||
{ id: "fries", name: "Fries & Sides" },
|
||||
{ id: "drinks", name: "Drinks" },
|
||||
{ id: "milkshakes", name: "Milkshakes" },
|
||||
];
|
||||
|
||||
export default function MenuPage() {
|
||||
const [activeCategory, setActiveCategory] = useState("burgers");
|
||||
|
||||
return (
|
||||
<ThemeProvider
|
||||
defaultButtonVariant="text-stagger"
|
||||
defaultTextAnimation="entrance-slide"
|
||||
background="circleGradient"
|
||||
cardStyle="glass-elevated"
|
||||
primaryButtonStyle="gradient"
|
||||
secondaryButtonStyle="glass"
|
||||
headingFontWeight="normal"
|
||||
borderRadius="rounded"
|
||||
contentWidth="smallMedium"
|
||||
sizing="mediumLargeSizeMediumTitles"
|
||||
>
|
||||
<ThemeProvider>
|
||||
<ReactLenis root>
|
||||
<div id="nav" data-section="nav">
|
||||
<NavbarStyleFullscreen
|
||||
navItems={[
|
||||
{ name: "Home", id: "/" },
|
||||
{ name: "Menu", id: "/menu" },
|
||||
{ name: "About", id: "/about" },
|
||||
{ name: "Gallery", id: "/gallery" },
|
||||
{ name: "Contact", id: "/contact" },
|
||||
{ name: "Order Online", id: "/order" },
|
||||
]}
|
||||
brandName="Lolly’s Food Joint"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<main className="pt-32 pb-20 px-6 max-w-4xl mx-auto">
|
||||
<h1 className="text-4xl md:text-5xl font-bold mb-10 text-center">Our Menu</h1>
|
||||
|
||||
<div className="flex flex-wrap gap-2 justify-center mb-12">
|
||||
{categories.map((cat) => (
|
||||
<button
|
||||
key={cat.id}
|
||||
onClick={() => setActiveCategory(cat.id)}
|
||||
className={`px-6 py-2 rounded-full transition ${activeCategory === cat.id ? "bg-primary text-white" : "bg-card hover:bg-muted"}`}
|
||||
>
|
||||
{cat.name}
|
||||
</button>
|
||||
))}
|
||||
</div>
|
||||
|
||||
<div className="grid gap-6 md:grid-cols-2">
|
||||
{[1, 2, 3, 4, 5, 6].map((item) => (
|
||||
<div key={item} className="p-6 rounded-xl border border-border bg-card shadow-sm">
|
||||
<h3 className="text-xl font-bold">Signature Item {item}</h3>
|
||||
<p className="text-muted-foreground mt-2">Delicious description of our amazing {categories.find(c => c.id === activeCategory)?.name || "dish"}.</p>
|
||||
<p className="font-bold mt-4">$9.99</p>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<div id="footer" data-section="footer">
|
||||
<FooterSimple
|
||||
columns={[
|
||||
{ title: "Company", items: [{ label: "About Us", href: "/about" }, { label: "Menu", href: "/menu" }] },
|
||||
{ title: "Order", items: [{ label: "Order Online", href: "/order" }, { label: "Contact Us", href: "/contact" }] },
|
||||
]}
|
||||
bottomLeftText="© 2024 Lolly's Food Joint"
|
||||
bottomRightText="All rights reserved."
|
||||
/>
|
||||
<NavbarStyleFullscreen
|
||||
navItems={[{ name: "Home", id: "/" }, { name: "Menu", id: "/menu" }, { name: "Gallery", id: "/gallery" }, { name: "Testimonials", id: "/testimonials" }, { name: "Reservations", id: "/reservations" }, { name: "Contact", id: "/contact" }]}
|
||||
brandName="Lolly’s Food Joint"
|
||||
/>
|
||||
<div className="pt-32 pb-20">
|
||||
<ProductCardTwo
|
||||
title="Full Menu"
|
||||
description="Explore our complete selection of fresh, signature dishes."
|
||||
gridVariant="four-items-2x2-equal-grid"
|
||||
animationType="slide-up"
|
||||
textboxLayout="default"
|
||||
products={[
|
||||
{ id: "m1", brand: "Burgers", name: "Signature Burger", price: "$12.99", imageSrc: "http://img.b2bpic.net/free-photo/home-made-tasty-burgers_628469-332.jpg" },
|
||||
{ id: "m2", brand: "Sides", name: "Hand-cut Fries", price: "$5.99", imageSrc: "http://img.b2bpic.net/free-photo/delicious-creamy-melted-cheese_23-2149332823.jpg" }
|
||||
]}
|
||||
/>
|
||||
</div>
|
||||
<FooterSimple
|
||||
columns={[{ title: "Links", items: [{ label: "Home", href: "/" }] }]}
|
||||
bottomLeftText="© 2024 Lolly's Food Joint"
|
||||
/>
|
||||
</ReactLenis>
|
||||
</ThemeProvider>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user