From a3c7c9c3cc98a7e203977b642676f326df0e3c16 Mon Sep 17 00:00:00 2001
From: Sidharth Babu <95430324+sidhuiwnl@users.noreply.github.com>
Date: Tue, 3 Sep 2024 19:36:34 +0530
Subject: [PATCH] added scroll-top feature and navbar feature (#297)
---
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}
+