From 46817e1a2a96e03a42b8f2dca341a68a042eb396 Mon Sep 17 00:00:00 2001 From: Sidharth Date: Sun, 1 Sep 2024 19:04:28 +0530 Subject: [PATCH] added scroll-top feature and navbar feature --- src/app/layout.tsx | 2 ++ src/components/ScrollToTop.tsx | 41 ++++++++++++++++++++++++++++++++++ src/components/job-landing.tsx | 1 + src/layouts/header.tsx | 28 ++++++++++++++++++++++- 4 files changed, 71 insertions(+), 1 deletion(-) create mode 100644 src/components/ScrollToTop.tsx diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 6cc6e943..89e967b2 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -6,6 +6,7 @@ import type { Metadata } from 'next'; import { Inter as FontSans } from 'next/font/google'; import './globals.css'; import TopLoader from '@/components/Toploader'; +import ScrollToTop from '@/components/ScrollToTop'; const fontSans = FontSans({ subsets: ['latin'], @@ -36,6 +37,7 @@ export default async function RootLayout({
{children}