| import type { Metadata } from "next"; |
| import { Geist, Geist_Mono, Tajawal } from "next/font/google"; |
| import "./globals.css"; |
| import { Sidebar, MobileNav } from "@/components/layout/Sidebar"; |
|
|
| const geistSans = Geist({ |
| variable: "--font-geist-sans", |
| subsets: ["latin"], |
| }); |
|
|
| const geistMono = Geist_Mono({ |
| variable: "--font-geist-mono", |
| subsets: ["latin"], |
| }); |
|
|
| const tajawal = Tajawal({ |
| weight: ["300","400","500","700","800"], |
| subsets: ["arabic"], |
| variable: "--font-tajawal", |
| }); |
|
|
| export const metadata: Metadata = { |
| title: "Safetensors Studio & Bench", |
| description: "منصة تشغيل واختبار نماذج Safetensors محلياً مع مراقبة الموارد", |
| }; |
|
|
| export default function RootLayout({ children }: { children: React.ReactNode }) { |
| return ( |
| <html lang="ar" dir="rtl" className={`${geistSans.variable} ${geistMono.variable} ${tajawal.variable} h-full`}> |
| <body className="min-h-full flex bg-white dark:bg-zinc-950 text-zinc-900 dark:text-zinc-50" style={{fontFamily: "var(--font-tajawal), var(--font-geist-sans), sans-serif"}}> |
| <Sidebar /> |
| <div className="flex-1 flex flex-col min-h-screen min-w-0"> |
| <MobileNav /> |
| <main className="flex-1 bg-zinc-50/50 dark:bg-zinc-900/20"> |
| {children} |
| </main> |
| <footer className="border-t bg-white dark:bg-zinc-950 dark:border-zinc-800 px-6 py-3 text-xs text-zinc-500 flex items-center justify-between"> |
| <span>Safetensors Studio & Bench • v1.0 • يعمل محلياً - بدون سحابة</span> |
| <span className="flex items-center gap-2"><span className="h-2 w-2 rounded-full bg-emerald-500 animate-pulse"/> Backend: http://localhost:8000</span> |
| </footer> |
| </div> |
| </body> |
| </html> |
| ); |
| } |
|
|