From 5779e9995dd80be00dbc3f12deb039afe79ec2a1 Mon Sep 17 00:00:00 2001 From: Abhishek Date: Sun, 28 Jul 2024 16:07:48 +0530 Subject: [PATCH 1/2] feat: top loader added a loader at the top for better ux --- app/layout.js | 2 ++ .../FeatureSection/FeatureSectionGrid.jsx | 8 ++++-- components/HeroSection.jsx | 1 + components/Navbar.jsx | 2 +- package-lock.json | 25 +++++++++++++++++++ package.json | 1 + 6 files changed, 36 insertions(+), 3 deletions(-) diff --git a/app/layout.js b/app/layout.js index 5273c16..7663713 100644 --- a/app/layout.js +++ b/app/layout.js @@ -4,6 +4,7 @@ import { ThemeProvider } from "../components/theme-provider"; import Navbar from "../components/Navbar"; import Footer from "../components/Footer"; import AuthProvider from "../context/AuthProvider"; +import NextTopLoader from "nextjs-toploader"; const inter = Inter({ subsets: ["latin"] }); @@ -23,6 +24,7 @@ export default function RootLayout({ children }) { enableSystem disableTransitionOnChange > +
{children}