From d78407d5b324b541a9ccd4a454b5df70b1b05b16 Mon Sep 17 00:00:00 2001 From: rishit-singh Date: Thu, 28 Dec 2023 02:04:20 -0800 Subject: [PATCH] Fixed the height occupying issue in the html tag. --- frontend/src/app/HomePage.tsx | 5 +++-- frontend/src/app/layout.tsx | 4 ++-- frontend/src/app/page.tsx | 5 ++--- frontend/styles/globals.css | 6 ++++++ 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/frontend/src/app/HomePage.tsx b/frontend/src/app/HomePage.tsx index 68013dd..09d152c 100644 --- a/frontend/src/app/HomePage.tsx +++ b/frontend/src/app/HomePage.tsx @@ -52,8 +52,8 @@ export default function HomePage({} : HomePageProps)
;
; - return
-
+ return (
+
@@ -83,5 +83,6 @@ export default function HomePage({} : HomePageProps) {/* {(this.state.Dimensions.X < 600) ? null :
} */}
+ ); } diff --git a/frontend/src/app/layout.tsx b/frontend/src/app/layout.tsx index f09bd3a..31cf067 100644 --- a/frontend/src/app/layout.tsx +++ b/frontend/src/app/layout.tsx @@ -4,7 +4,7 @@ import { Inter } from 'next/font/google' const inter = Inter({ subsets: ['latin'] }) export const metadata = { - title: "langaracpscclub", + title: "Langara Computer Science Club", description: "Website for Langara Computer Science Club.", } @@ -15,7 +15,7 @@ export default function RootLayout({ }) { return ( - {children} + {children} ) } diff --git a/frontend/src/app/page.tsx b/frontend/src/app/page.tsx index b6921af..152bfa4 100644 --- a/frontend/src/app/page.tsx +++ b/frontend/src/app/page.tsx @@ -13,16 +13,15 @@ import { store } from './stores/store'; export default function Home() { - return ( -
+
([ ["Home", "/"], ["About", "/about"], ["Events", "/events"] ])}/> - +
); diff --git a/frontend/styles/globals.css b/frontend/styles/globals.css index d3a0fc7..d947dc7 100644 --- a/frontend/styles/globals.css +++ b/frontend/styles/globals.css @@ -20,7 +20,13 @@ } } +html { + height: 100%; +} + body { + margin: 0; + height: 100%; color: rgb(var(--foreground-rgb)); background: linear-gradient( to bottom,