From 22c67e4db3c45cca7553e41adde63580203e43f5 Mon Sep 17 00:00:00 2001
From: Biki Kalita <86558912+Biki-dev@users.noreply.github.com>
Date: Tue, 9 Dec 2025 17:00:33 +0530
Subject: [PATCH 1/3] feat: add global scroll-to-top button feature
---
apps/web/src/app/layout.tsx | 4 +-
apps/web/src/components/ui/ScrollToTop.tsx | 62 ++++++++++++++++++++++
2 files changed, 65 insertions(+), 1 deletion(-)
create mode 100644 apps/web/src/components/ui/ScrollToTop.tsx
diff --git a/apps/web/src/app/layout.tsx b/apps/web/src/app/layout.tsx
index bde677a7..ceb7626a 100644
--- a/apps/web/src/app/layout.tsx
+++ b/apps/web/src/app/layout.tsx
@@ -10,7 +10,7 @@ import { authConfig } from "@/lib/auth/config";
import { SessionWrapper } from "./SessionWrapper";
import { TRPCProvider } from "@/providers/trpc-provider";
import { GeistSans } from "geist/font/sans";
-
+import ScrollToTop from "@/components/ui/ScrollToTop";
// DM Mono - Used for code, terminal, and monospace text
const dmMono = localFont({
src: [
@@ -100,6 +100,7 @@ export const metadata: Metadata = {
},
};
+
export default async function RootLayout({
children,
}: Readonly<{
@@ -126,6 +127,7 @@ export default async function RootLayout({
+