From 04c828887e55a1a0c0e669b13f1006675fdb77ac Mon Sep 17 00:00:00 2001 From: Lucid Kobold Date: Thu, 25 Nov 2021 19:44:30 -0600 Subject: [PATCH] Added version and pre alpha tag to the navbar. --- theme/layout/Header.tsx | 39 +++++++++++++++++++++++++++++---------- 1 file changed, 29 insertions(+), 10 deletions(-) diff --git a/theme/layout/Header.tsx b/theme/layout/Header.tsx index 5ae3cb7..3bf46bb 100644 --- a/theme/layout/Header.tsx +++ b/theme/layout/Header.tsx @@ -7,12 +7,17 @@ import { Flex, Menu, MenuButton, + VStack, } from "@chakra-ui/react"; import { Icon } from "@iconify/react"; import DesktopNav from "./DesktopNav"; import MobileNav from "./MobileNav"; const Header = (): JSX.Element => { + const appName = "LCM Potty Chart" + const appVersion = "v0.0.2.3-pre-alpha" + + // Add transparency while not at the top of the page. const [transparentNavbar, setTransparentNavbar] = useState(false); const lastScroll = useRef(0); @@ -80,8 +85,8 @@ const Header = (): JSX.Element => { open ? "brand.main" : transparentNavbar - ? "rgba(49, 56, 220, 0.9)" - : "brand.main" + ? "rgba(49, 56, 220, 0.9)" + : "brand.main" } transition=".5s ease" borderRadius="0px 0px 10px 10px" @@ -94,7 +99,7 @@ const Header = (): JSX.Element => { h={open ? "125px" : "auto"} > {/* Logo | Site Name */} - { position="absolute" ml={4} d={{ base: "flex", lg: "none" }} + spacing="5px" > - - LCM Potty Chart + + {appName} - + + {appVersion} + + {/* Desktop Nav Items and Mobile Menu Button */} - + { > - - LCM Potty Chart - + + + {appName} + + + {appVersion} + +