diff --git a/src/app/page.tsx b/src/app/page.tsx index 68d3bfd..3020909 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,259 +1,210 @@ "use client"; +import { useState } from "react"; import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider"; import ReactLenis from "lenis/react"; -import ContactCenter from '@/components/sections/contact/ContactCenter'; -import FaqBase from '@/components/sections/faq/FaqBase'; -import FeatureCardNine from '@/components/sections/feature/FeatureCardNine'; -import FooterBase from '@/components/sections/footer/FooterBase'; -import HeroBillboardRotatedCarousel from '@/components/sections/hero/HeroBillboardRotatedCarousel'; import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline'; +import HeroBillboardRotatedCarousel from '@/components/sections/hero/HeroBillboardRotatedCarousel'; import ProductCardThree from '@/components/sections/product/ProductCardThree'; -import TestimonialCardTwelve from '@/components/sections/testimonial/TestimonialCardTwelve'; import TextSplitAbout from '@/components/sections/about/TextSplitAbout'; -import React, { useState, useEffect } from 'react'; +import FeatureCardNine from '@/components/sections/feature/FeatureCardNine'; +import TestimonialCardTwelve from '@/components/sections/testimonial/TestimonialCardTwelve'; +import FaqBase from '@/components/sections/faq/FaqBase'; +import ContactCenter from '@/components/sections/contact/ContactCenter'; +import FooterBase from '@/components/sections/footer/FooterBase'; const initialMenuProducts = [ - { - id: "mutton-karahi", name: "Mutton Karahi", price: "$18.99", imageSrc: "http://img.b2bpic.net/free-photo/lamb-bone-sauteed-bone-broth-with-herbs-tomato-sauce_114579-1900.jpg", imageAlt: "Mutton Karahi served in a traditional pot" - }, - { - id: "chicken-biryani", name: "Chicken Biryani", price: "$15.99", imageSrc: "http://img.b2bpic.net/free-photo/chicken-breast-tomato-sauce-rice-risotto-plov-with-herbs-yogurt-sumakh-white-plate_114579-293.jpg", imageAlt: "Chicken Biryani with raita" - }, - { - id: "aloo-gobi", name: "Aloo Gobi", price: "$12.99", imageSrc: "http://img.b2bpic.net/free-photo/front-view-tasty-fried-potatoes-inside-pan-with-lemon-slices-dark-table_140725-136315.jpg", imageAlt: "Aloo Gobi curry with cilantro" - }, - { - id: "seekh-kebab", name: "Seekh Kebab Platter", price: "$16.99", imageSrc: "http://img.b2bpic.net/free-photo/vertical-high-angle-shoot-barbequed-sausages-cherry-tomatoes-wooden-surface_181624-6082.jpg", imageAlt: "Seekh Kebab with mint chutney" - }, - { - id: "mango-lassi", name: "Mango Lassi", price: "$5.99", imageSrc: "http://img.b2bpic.net/free-photo/sultana-lemons-with-cup-drink-blue_114579-29047.jpg", imageAlt: "Refreshing Mango Lassi" - }, - { - id: "chai-tea", name: "Karak Chai", price: "$3.99", imageSrc: "http://img.b2bpic.net/free-photo/soothing-cinnamon-drink-casting-cozy-light-table_157027-4176.jpg", imageAlt: "Hot Karak Chai in a cup" - }, - { - id: "chicken-tikka", name: "Chicken Tikka Skewers", price: "$14.99", imageSrc: "http://img.b2bpic.net/free-photo/side-view-woman-eats-kebab-meat-skewer_141793-3912.jpg", imageAlt: "Grilled Chicken Tikka" - }, - { - id: "naan", name: "Fresh Tandoori Naan", price: "$2.99", imageSrc: "http://img.b2bpic.net/free-photo/delicious-assortment-nutritious-roti_23-2149033974.jpg", imageAlt: "Warm Tandoori Naan bread" - } + { id: "1", name: "Spicy Beef Karahi", price: "$18.99", imageSrc: "https://framerusercontent.com/images/kC11vL7j733D6t7vK0pD1o2X1Q.png", imageAlt: "Spicy Beef Karahi" }, + { id: "2", name: "Chicken Biryani", price: "$15.50", imageSrc: "https://framerusercontent.com/images/K1eTqN6Q4B4z0M8y5D2k2k7V7c.png", imageAlt: "Chicken Biryani" }, + { id: "3", name: "Mutton Korma", price: "$22.00", imageSrc: "https://framerusercontent.com/images/qX1tP3P5D0F5R8N8V6W2x2k7V7c.png", imageAlt: "Mutton Korma" }, + { id: "4", name: "Seekh Kebab", price: "$12.99", imageSrc: "https://framerusercontent.com/images/F1tP3P5D0F5R8N8V6W2x2k7V7c.png", imageAlt: "Seekh Kebab" }, + { id: "5", name: "Paya Curry", price: "$19.75", imageSrc: "https://framerusercontent.com/images/T4eR1N6Q4B4z0M8y5D2k2k7V7c.png", imageAlt: "Paya Curry" }, + { id: "6", name: "Nihari", price: "$16.25", imageSrc: "https://framerusercontent.com/images/V6W2x2k7V7cK1eTqN6Q4B4z0M8y5D2k.png", imageAlt: "Nihari" } ]; -export default function LandingPage() { - const [menuProducts, setMenuProducts] = useState([]); - - useEffect(() => { - setMenuProducts(initialMenuProducts); - }, []); - - return ( - - - - -
- -
- - - -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- - + ] + } + } +]; + +export default function Home() { + const [menuProducts] = useState(initialMenuProducts); + + const Navbar = NavbarLayoutFloatingInline; + + const navItems = [ + { name: "Home", id: "/" }, + { name: "Menu", id: "#menu" }, + { name: "About Us", id: "/about" }, + { name: "Features", id: "#features" }, + { name: "Testimonials", id: "#testimonials" }, + { name: "FAQ", id: "#faq" }, + { name: "Contact", id: "#contact" } + ]; + + return ( + + + + {homeSections.map((section, index) => { + const SectionComponent = section.Component; + if (section.id === "menu") { + return ( +
+ +
+ ); + } + return ( +
+ +
+ ); + })}
); -} \ No newline at end of file +}