Skip to content

Commit 3686fc9

Browse files
committed
feat: add NextTopLoader component for improved loading experience
1 parent 1221693 commit 3686fc9

File tree

3 files changed

+34
-11
lines changed

3 files changed

+34
-11
lines changed

package-lock.json

Lines changed: 25 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,20 @@
99
"lint": "next lint"
1010
},
1111
"dependencies": {
12+
"next": "15.4.5",
13+
"nextjs-toploader": "^3.8.16",
1214
"react": "19.1.0",
13-
"react-dom": "19.1.0",
14-
"next": "15.4.5"
15+
"react-dom": "19.1.0"
1516
},
1617
"devDependencies": {
17-
"typescript": "^5",
18+
"@eslint/eslintrc": "^3",
19+
"@tailwindcss/postcss": "^4",
1820
"@types/node": "^20",
1921
"@types/react": "^19",
2022
"@types/react-dom": "^19",
21-
"@tailwindcss/postcss": "^4",
22-
"tailwindcss": "^4",
2323
"eslint": "^9",
2424
"eslint-config-next": "15.4.5",
25-
"@eslint/eslintrc": "^3"
25+
"tailwindcss": "^4",
26+
"typescript": "^5"
2627
}
2728
}

src/app/layout.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import "./globals.css";
44
import Nav from "./components/Nav";
55
import Footer from "./components/Footer";
66
import Head from "next/head";
7+
import NextTopLoader from "nextjs-toploader";
78

89
const geistSans = Geist({
910
variable: "--font-geist-sans",
@@ -96,6 +97,7 @@ export default function RootLayout({
9697
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
9798
>
9899
<Nav />
100+
<NextTopLoader showSpinner={false} color="#FF6600" />
99101
{children}
100102
<Footer />
101103
</body>

0 commit comments

Comments
 (0)