cc63312305
Remove the web-app manifest link + manifest.ts route so bargevasat.ir no longer triggers an "install/add to home screen" prompt. It's a plain marketing/SEO site now. Only the game app (app.bargevasat.ir) remains a PWA. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
83 lines
2.3 KiB
TypeScript
83 lines
2.3 KiB
TypeScript
import type { Metadata, Viewport } from "next";
|
|
import "./globals.css";
|
|
import { BRAND, SITE_URL } from "@/lib/site";
|
|
import { Nav } from "@/components/Nav";
|
|
import { Footer } from "@/components/Footer";
|
|
|
|
export const metadata: Metadata = {
|
|
metadataBase: new URL(SITE_URL),
|
|
title: {
|
|
default: `${BRAND.nameFa} | بازی حکم آنلاین رایگان`,
|
|
template: `%s | ${BRAND.nameFa}`,
|
|
},
|
|
description: BRAND.descFa,
|
|
keywords: [
|
|
"حکم",
|
|
"بازی حکم",
|
|
"حکم آنلاین",
|
|
"بازی ورق ایرانی",
|
|
"برگ وسط",
|
|
"بازی کارتی آنلاین",
|
|
"حکم با دوستان",
|
|
"Hokm",
|
|
"Barg-e Vasat",
|
|
],
|
|
applicationName: BRAND.nameFa,
|
|
authors: [{ name: BRAND.nameFa }],
|
|
alternates: { canonical: "/" },
|
|
openGraph: {
|
|
type: "website",
|
|
locale: "fa_IR",
|
|
url: SITE_URL,
|
|
siteName: BRAND.nameFa,
|
|
title: `${BRAND.nameFa} | بازی حکم آنلاین رایگان`,
|
|
description: BRAND.descFa,
|
|
images: [{ url: "/og.png", width: 1200, height: 630, alt: BRAND.nameFa }],
|
|
},
|
|
twitter: {
|
|
card: "summary_large_image",
|
|
title: `${BRAND.nameFa} | بازی حکم آنلاین`,
|
|
description: BRAND.descFa,
|
|
images: ["/og.png"],
|
|
},
|
|
icons: { icon: "/icon.svg", apple: "/icon.svg" },
|
|
// No web-app manifest on the marketing site — it's a plain SEO site, not an
|
|
// installable PWA. Only the game app (app.bargevasat.ir) is a PWA.
|
|
};
|
|
|
|
export const viewport: Viewport = {
|
|
themeColor: "#070b18",
|
|
width: "device-width",
|
|
initialScale: 1,
|
|
};
|
|
|
|
const jsonLd = {
|
|
"@context": "https://schema.org",
|
|
"@type": "VideoGame",
|
|
name: "برگ وسط",
|
|
alternateName: "Barg-e Vasat",
|
|
description: BRAND.descFa,
|
|
url: SITE_URL,
|
|
applicationCategory: "GameApplication",
|
|
genre: "بازی کارتی",
|
|
operatingSystem: "Android, iOS, Web",
|
|
inLanguage: "fa-IR",
|
|
offers: { "@type": "Offer", price: "0", priceCurrency: "IRR" },
|
|
};
|
|
|
|
export default function RootLayout({ children }: { children: React.ReactNode }) {
|
|
return (
|
|
<html lang="fa" dir="rtl">
|
|
<body>
|
|
<script
|
|
type="application/ld+json"
|
|
dangerouslySetInnerHTML={{ __html: JSON.stringify(jsonLd) }}
|
|
/>
|
|
<Nav />
|
|
<main>{children}</main>
|
|
<Footer />
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|