Initial commit: Hoomat storefront with Meshkee API and static-image slots.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Alireza Hassani
2026-09-04 15:00:41 +03:30
co-authored by Cursor
commit cfabf3e327
95 changed files with 12651 additions and 0 deletions
+37
View File
@@ -0,0 +1,37 @@
import type { Metadata } from "next";
import "./globals.css";
import { SiteShell } from "@/app/components/site-shell";
import { getCategories, getFavicon } from "@/lib/meshkee/api";
import { site } from "@/lib/site-data";
export async function generateMetadata(): Promise<Metadata> {
let icon = site.logo;
try {
const favicon = await getFavicon();
if (favicon.faviconUrl) icon = favicon.faviconUrl;
} catch {
// keep default local logo
}
return {
title: site.title,
description: site.description,
icons: [{ url: icon }],
};
}
export default async function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
const categories = await getCategories("product").catch(() => []);
return (
<html lang="fa" dir="rtl">
<body>
<SiteShell categories={categories}>{children}</SiteShell>
</body>
</html>
);
}