File tree 4 files changed +155
-126
lines changed
4 files changed +155
-126
lines changed Original file line number Diff line number Diff line change 23
23
"next" : " 13.4.9" ,
24
24
"next-auth" : " ^4.22.1" ,
25
25
"next-themes" : " ^0.2.1" ,
26
+ "nextjs-toploader" : " ^1.4.2" ,
26
27
"postcss" : " 8.4.25" ,
27
28
"react" : " 18.2.0" ,
28
29
"react-dom" : " 18.2.0" ,
Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ import Header from "@/components/header";
2
2
import "./globals.css" ;
3
3
import type { Metadata } from "next" ;
4
4
import { Inter } from "next/font/google" ;
5
-
5
+ import NextTopLoader from "nextjs-toploader" ;
6
6
import { Footer } from "@/components/footer" ;
7
- import { ThemeProvider } from "@/components/theme-provider"
7
+ import { ThemeProvider } from "@/components/theme-provider" ;
8
8
9
9
const inter = Inter ( { subsets : [ "latin" ] } ) ;
10
10
@@ -14,13 +14,14 @@ export const metadata: Metadata = {
14
14
} ;
15
15
16
16
export default function RootLayout ( {
17
- children
17
+ children,
18
18
} : {
19
19
children : React . ReactNode ;
20
20
} ) {
21
21
return (
22
22
< html lang = "en" >
23
23
< body className = { inter . className } >
24
+ < NextTopLoader />
24
25
< ThemeProvider attribute = "class" defaultTheme = "system" enableSystem >
25
26
< Header />
26
27
{ children }
Original file line number Diff line number Diff line change @@ -20,14 +20,15 @@ const Header = () => {
20
20
< nav className = "w-full border-b md:border-0 md:static" >
21
21
< div className = "items-center px-4 max-w-screen-xl mx-auto md:flex md:px-8" >
22
22
< div className = "flex items-center justify-between py-3 md:py-5 md:block" >
23
- < Link href = "/" >
23
+ < Link href = "/" className = "flex gap-2 items-center" >
24
24
< Image
25
25
unoptimized
26
26
src = "/static/logo.png"
27
- width = { 50 }
28
- height = { 50 }
27
+ width = { 30 }
28
+ height = { 30 }
29
29
alt = "Code Racer Logo"
30
30
/>
31
+ CodeRacer
31
32
</ Link >
32
33
< div className = "md:hidden" >
33
34
< Button onClick = { ( ) => setState ( ! state ) } >
You can’t perform that action at this time.
0 commit comments