Wire Meshkee catalog: products, blog, mega menu, and product search.

Catalog-only (no cart); search targets store items and products pages.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Alireza Hassani
2026-08-21 16:04:31 +03:30
co-authored by Cursor
parent cfa21cbee9
commit 8e14748b48
29 changed files with 1460 additions and 244 deletions
+5 -2
View File
@@ -4,6 +4,7 @@ import "./globals.css";
import { Footer } from "@/components/layout/Footer";
import { Header } from "@/components/layout/Header";
import { TopBar } from "@/components/layout/TopBar";
import { getNavCategories } from "@/lib/categories";
import { site } from "@/lib/data";
const vazir = Vazirmatn({
@@ -30,12 +31,14 @@ export const metadata: Metadata = {
icons: { icon: "/favicon.ico" },
};
export default function RootLayout({ children }: { children: React.ReactNode }) {
export default async function RootLayout({ children }: { children: React.ReactNode }) {
const categories = await getNavCategories();
return (
<html lang="fa" dir="rtl" className={`${vazir.variable} ${montserrat.variable}`}>
<body className={`${vazir.className} min-h-screen antialiased`}>
<TopBar />
<Header />
<Header categories={categories} />
<main>{children}</main>
<Footer />
</body>