diff --git a/Application/app/data.ts b/Application/app/data.ts index 81910d7..f324d41 100644 --- a/Application/app/data.ts +++ b/Application/app/data.ts @@ -12,7 +12,7 @@ export const clubFeatures = [ ], }, { - title: "Open Office Hours", + title: "Open Office Hours (Every Sunday)", bgColor: "blue.600", items: [ "Online learning can feel isolating--it's easy to think you're on your own", diff --git a/Application/app/layout.tsx b/Application/app/layout.tsx index abcc307..42e0316 100644 --- a/Application/app/layout.tsx +++ b/Application/app/layout.tsx @@ -1,3 +1,5 @@ +"use client"; + import type { Metadata } from "next"; import { Geist, Geist_Mono } from "next/font/google"; import "./globals.css"; @@ -5,6 +7,8 @@ import { Provider } from "@/components/ui/provider"; import Navbar from "@/components/navbar"; import Footer from "@/components/footer"; import { Box, Flex } from "@chakra-ui/react/"; +import { useEffect } from "react"; +import { usePathname } from "next/navigation"; const geistSans = Geist({ @@ -17,14 +21,17 @@ const geistMono = Geist_Mono({ subsets: ["latin"], }); -export const metadata: Metadata = { - title: "Coding United Club", - description: "Coding United Club for SNHU", -}; + export default function RootLayout({ children,}: Readonly<{ children: React.ReactNode;}>) { + const pathname = usePathname(); + + useEffect(() => { + window.scrollTo(0, 0); + }, [pathname]); + return (
diff --git a/Application/app/page.tsx b/Application/app/page.tsx index 44e3f6b..4536612 100644 --- a/Application/app/page.tsx +++ b/Application/app/page.tsx @@ -23,7 +23,7 @@ export default function Home() { return ( <>