File tree Expand file tree Collapse file tree 1 file changed +10
-15
lines changed
Expand file tree Collapse file tree 1 file changed +10
-15
lines changed Original file line number Diff line number Diff line change 11import "./globals.css" ;
22import { ThemeProvider } from "@/components/contexts/theme-provider" ;
33import type { Metadata } from "next" ;
4- import { Geist , Geist_Mono } from "next/font/google" ;
5-
6- const geistSans = Geist ( {
7- variable : "--font-geist-sans" ,
8- subsets : [ "latin" ] ,
9- } ) ;
10-
11- const geistMono = Geist_Mono ( {
12- variable : "--font-geist-mono" ,
13- subsets : [ "latin" ] ,
14- } ) ;
4+ import localFont from "next/font/local" ;
155
166export const metadata : Metadata = {
177 title : "Create Next App" ,
188 description : "Generated by create next app" ,
199} ;
2010
11+ const danaVF = localFont ( { src : "../../public/fonts/dana/DanaVF.woff2" } ) ;
12+
2113export default function RootLayout ( {
2214 children,
2315} : Readonly < {
2416 children : React . ReactNode ;
2517} > ) {
2618 return (
27- < html lang = "fa-IR" style = { { colorScheme :"dark" } } className = "dark" >
28- < body
29- className = { `${ geistSans . variable } ${ geistMono . variable } antialiased` }
30- >
19+ < html
20+ lang = "fa-IR"
21+ dir = "rtl"
22+ style = { { colorScheme : "dark" } }
23+ className = { `dark ${ danaVF . className } ` }
24+ >
25+ < body className = "antialiased" >
3126 < ThemeProvider > { children } </ ThemeProvider >
3227 </ body >
3328 </ html >
You can’t perform that action at this time.
0 commit comments