1
- import { CartCountProvider } from '#/components/cart-count-context' ;
2
- import { Header } from '#/components/header' ;
3
- import { Sidebar } from '#/components/sidebar' ;
4
- import { GeistSans } from 'geist/font/sans' ;
5
- import { Metadata } from 'next' ;
6
- import './globals.css' ;
1
+ import { CartCountProvider } from "#/components/cart-count-context" ;
2
+ import { Header } from "#/components/header" ;
3
+ import { Sidebar } from "#/components/sidebar" ;
4
+ import { Metadata } from "next" ;
5
+ import { GlobalStyles } from "./styles" ;
7
6
8
7
export const metadata : Metadata = {
9
- metadataBase : new URL ( ' https://partialprerendering.com' ) ,
10
- title : ' Next.js Partial Prerendering' ,
11
- description : ' A demo of Next.js using Partial Prerendering.' ,
8
+ metadataBase : new URL ( " https://partialprerendering.com" ) ,
9
+ title : " Next.js Partial Prerendering" ,
10
+ description : " A demo of Next.js using Partial Prerendering." ,
12
11
openGraph : {
13
- title : ' Next.js Partial Prerendering' ,
14
- description : ' A demo of Next.js using Partial Prerendering.' ,
12
+ title : " Next.js Partial Prerendering" ,
13
+ description : " A demo of Next.js using Partial Prerendering." ,
15
14
} ,
16
15
twitter : {
17
- card : ' summary_large_image' ,
16
+ card : " summary_large_image" ,
18
17
} ,
19
18
} ;
20
19
@@ -24,7 +23,10 @@ export default function RootLayout({
24
23
children : React . ReactNode ;
25
24
} ) {
26
25
return (
27
- < html lang = "en" className = { `[color-scheme:dark] ${ GeistSans . variable } ` } >
26
+ < html lang = "en" className = { `[color-scheme:dark]` } >
27
+ < head >
28
+ < GlobalStyles />
29
+ </ head >
28
30
< body className = "overflow-y-scroll bg-gray-1100 bg-[url('/grid.svg')] pb-36" >
29
31
< Sidebar />
30
32
< div className = "lg:pl-72" >
0 commit comments