Spaces:
Running
Running
Download web/src/app/layout.tsx from Aynkhn/WorkPilot-AI: direct link, hf CLI and curl.
- Browser
- Download file 1.57 kB
-
https://huggingface.co/spaces/Aynkhn/WorkPilot-AI/resolve/main/web/src/app/layout.tsx
- Command line
-
hf download hf://spaces/Aynkhn/WorkPilot-AI/web/src/app/layout.tsx
-
curl -L -o layout.tsx https://huggingface.co/spaces/Aynkhn/WorkPilot-AI/resolve/main/web/src/app/layout.tsx
1.57 kB
| import type { Metadata, Viewport } from "next"; | |
| import { Geist, Geist_Mono, Noto_Nastaliq_Urdu } from "next/font/google"; | |
| import { Providers } from "@/components/providers"; | |
| import { localeBootScript } from "@/lib/i18n/boot"; | |
| import "./globals.css"; | |
| const geistSans = Geist({ variable: "--font-geist-sans", subsets: ["latin"] }); | |
| const geistMono = Geist_Mono({ variable: "--font-geist-mono", subsets: ["latin"] }); | |
| // Urdu is set in Nastaliq, the script Pakistani readers expect (Naskh reads as Arabic). | |
| const nastaliq = Noto_Nastaliq_Urdu({ | |
| variable: "--font-nastaliq", | |
| subsets: ["arabic"], | |
| weight: ["400", "600", "700"], | |
| preload: false, | |
| }); | |
| export const metadata: Metadata = { | |
| title: { default: "WorkPilot", template: "%s · WorkPilot" }, | |
| description: "Safe AI operations for small businesses: an agent inbox, live runs and policies.", | |
| }; | |
| export const viewport: Viewport = { | |
| themeColor: [ | |
| { media: "(prefers-color-scheme: light)", color: "#fbfcfd" }, | |
| { media: "(prefers-color-scheme: dark)", color: "#16181d" }, | |
| ], | |
| }; | |
| export default function RootLayout({ children }: LayoutProps<"/">) { | |
| return ( | |
| <html | |
| lang="en" | |
| dir="ltr" | |
| suppressHydrationWarning | |
| className={`${geistSans.variable} ${geistMono.variable} ${nastaliq.variable} h-full antialiased`} | |
| > | |
| <head> | |
| <script dangerouslySetInnerHTML={{ __html: localeBootScript }} /> | |
| ); | |
| } | |