From c1a117cbe08c4c293b983d84c72c0b3f80e1a1bc Mon Sep 17 00:00:00 2001 From: Djoufson CHE BENE Date: Thu, 7 Aug 2025 13:37:10 +0100 Subject: [PATCH 1/8] add a back to top button --- app/layout.tsx | 2 + components/BackToTop.tsx | 49 ++++++++++++++++++++++ components/google/GoogleAnalytics.tsx | 4 +- components/ui/button.tsx | 59 +++++++++++++++++++++++++++ 4 files changed, 112 insertions(+), 2 deletions(-) create mode 100644 components/BackToTop.tsx create mode 100644 components/ui/button.tsx diff --git a/app/layout.tsx b/app/layout.tsx index 631c6f9..f6f182e 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -4,6 +4,7 @@ import Footer from "@/components/footer"; import Header from "@/components/header"; import GoogleAnalytics from "@/components/google/GoogleAnalytics"; import GoogleAdSense from "@/components/google/GoogleAdSense"; +import BackToTop from "@/components/BackToTop"; export const metadata: Metadata = { title: "Djoufson's Amazing World 🌍", @@ -25,6 +26,7 @@ export default function RootLayout({
{children}