From c597e7317c86d500f4fdd4a8984bb3b812d05648 Mon Sep 17 00:00:00 2001 From: Desmond Grealy Date: Thu, 29 Dec 2022 05:07:14 -0800 Subject: [PATCH 1/4] Adding a specific layout for Home so other pages are not coupled to the the header / footer / grid used on Home; Make header transparent on Home --- website/src/components/Header/Header.tsx | 6 ++++-- website/src/pages/index.tsx | 10 ++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/website/src/components/Header/Header.tsx b/website/src/components/Header/Header.tsx index 67b0d53c..774c2d2a 100644 --- a/website/src/components/Header/Header.tsx +++ b/website/src/components/Header/Header.tsx @@ -5,6 +5,7 @@ import Image from "next/image"; import Link from "next/link"; import { signOut, useSession } from "next-auth/react"; import { FaUser, FaSignOutAlt } from "react-icons/fa"; +import clsx from "clsx"; import { Container } from "src/components/Container"; import { NavLinks } from "./NavLinks"; @@ -53,9 +54,10 @@ function AccountButton() { ); } -export function Header() { +export function Header(props) { + const transparent = props.transparent ?? false; return ( -
+