Merge version_2 into main #3
@@ -1,65 +1,28 @@
|
||||
import type { Metadata } from "next";
|
||||
import { Halant } from "next/font/google";
|
||||
import { Inter } from "next/font/google";
|
||||
import { Open_Sans } from "next/font/google";
|
||||
import { Geist, Geist_Mono } from "next/font/google";
|
||||
import "./globals.css";
|
||||
import { ServiceWrapper } from "@/components/ServiceWrapper";
|
||||
import Tag from "@/tag/Tag";
|
||||
|
||||
const halant = Halant({
|
||||
variable: "--font-halant",
|
||||
subsets: ["latin"],
|
||||
weight: ["300", "400", "500", "600", "700"],
|
||||
const geist = Geist({
|
||||
variable: "--font-geist-sans", subsets: ["latin"],
|
||||
});
|
||||
|
||||
const inter = Inter({
|
||||
variable: "--font-inter",
|
||||
subsets: ["latin"],
|
||||
});
|
||||
|
||||
const openSans = Open_Sans({
|
||||
variable: "--font-open-sans",
|
||||
subsets: ["latin"],
|
||||
const geistMono = Geist_Mono({
|
||||
variable: "--font-geist-mono", subsets: ["latin"],
|
||||
});
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "FoodHub - Order Delicious Food Online | Best Food Delivery",
|
||||
description: "Order food online from 500+ restaurants. Fast delivery, fresh meals, and exclusive deals. Download FoodHub today for delicious dining at your doorstep.",
|
||||
keywords: "food delivery, online food ordering, restaurants, fast delivery, meal delivery service",
|
||||
openGraph: {
|
||||
title: "FoodHub - Your Favorite Food Delivered Fast",
|
||||
description: "Discover amazing restaurants and get fresh food delivered in 30 minutes. Order now from FoodHub!",
|
||||
siteName: "FoodHub",
|
||||
type: "website",
|
||||
images: [
|
||||
{
|
||||
url: "http://img.b2bpic.net/free-photo/closeup-shot-restaurant-menu-set-black-plates-perfect-food-background_181624-58554.jpg",
|
||||
alt: "FoodHub - Food Delivery Service",
|
||||
},
|
||||
],
|
||||
},
|
||||
twitter: {
|
||||
card: "summary_large_image",
|
||||
title: "FoodHub - Order Food Online",
|
||||
description: "Fast, fresh, and delicious food delivery. Browse 500+ restaurants and order now!",
|
||||
images: ["http://img.b2bpic.net/free-photo/closeup-shot-restaurant-menu-set-black-plates-perfect-food-background_181624-58554.jpg"],
|
||||
},
|
||||
};
|
||||
title: "Create Next App", description: "Generated by create next app"};
|
||||
|
||||
export default function RootLayout({
|
||||
children,
|
||||
}: Readonly<{
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}>) {
|
||||
}) {
|
||||
return (
|
||||
<html lang="en" suppressHydrationWarning>
|
||||
<ServiceWrapper>
|
||||
<body
|
||||
className={`${halant.variable} ${inter.variable} ${openSans.variable} antialiased`}
|
||||
>
|
||||
<Tag />
|
||||
{children}
|
||||
|
||||
<html lang="en">
|
||||
<body className={`${geist.variable} ${geistMono.variable} antialiased`}>
|
||||
{children}
|
||||
|
||||
<script
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: `
|
||||
@@ -1427,7 +1390,6 @@ export default function RootLayout({
|
||||
}}
|
||||
/>
|
||||
</body>
|
||||
</ServiceWrapper>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@ export default function HomePage() {
|
||||
description="Discover the most delicious food delivered to your doorstep. Order from your favorite local restaurants and enjoy meals prepared with love and freshness."
|
||||
background={{ variant: "radial-gradient" }}
|
||||
buttons={[
|
||||
{ text: "Browse Restaurants", href: "/restaurants" },
|
||||
{ text: "Order Now", href: "/restaurants" },
|
||||
{ text: "Learn More", href: "/about" },
|
||||
]}
|
||||
layoutOrder="default"
|
||||
@@ -75,12 +75,9 @@ export default function HomePage() {
|
||||
description="Explore our curated selection of top-rated restaurants offering authentic cuisines and exceptional dining experiences."
|
||||
tag="Popular"
|
||||
products={[
|
||||
{
|
||||
id: "1", name: "Green Garden Bistro", price: "⭐ 4.8", imageSrc: "http://img.b2bpic.net/free-photo/beautiful-girl-sitting-cafe_1157-20846.jpg", imageAlt: "Green Garden Bistro storefront"},
|
||||
{
|
||||
id: "2", name: "Spice Route Kitchen", price: "⭐ 4.6", imageSrc: "http://img.b2bpic.net/free-photo/exotically-spice-mix-spice-herbs-powder-top-view-dark-background-cooking-spicy-food-concept-copy-space-flat-lay-still-life_639032-1225.jpg", imageAlt: "Spice Route Kitchen storefront"},
|
||||
{
|
||||
id: "3", name: "Coastal Catches", price: "⭐ 4.9", imageSrc: "http://img.b2bpic.net/free-photo/seafood-side-dishes-with-platter-shrimp-squids-fish_140725-2576.jpg", imageAlt: "Coastal Catches storefront"},
|
||||
{ id: "1", name: "Green Garden Bistro", price: "⭐ 4.8", imageSrc: "http://img.b2bpic.net/free-photo/beautiful-girl-sitting-cafe_1157-20846.jpg", imageAlt: "Green Garden Bistro storefront"},
|
||||
{ id: "2", name: "Spice Route Kitchen", price: "⭐ 4.6", imageSrc: "http://img.b2bpic.net/free-photo/exotically-spice-mix-spice-herbs-powder-top-view-dark-background-cooking-spicy-food-concept-copy-space-flat-lay-still-life_639032-1225.jpg", imageAlt: "Spice Route Kitchen storefront"},
|
||||
{ id: "3", name: "Coastal Catches", price: "⭐ 4.9", imageSrc: "http://img.b2bpic.net/free-photo/seafood-side-dishes-with-platter-shrimp-squids-fish_140725-2576.jpg", imageAlt: "Coastal Catches storefront"},
|
||||
]}
|
||||
gridVariant="three-columns-all-equal-width"
|
||||
animationType="slide-up"
|
||||
@@ -191,4 +188,4 @@ export default function HomePage() {
|
||||
</div>
|
||||
</ThemeProvider>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user