Skip to content

Commit

Permalink
feat(banner): boss banner removal
Browse files Browse the repository at this point in the history
  • Loading branch information
0tuedon authored and Emmanuel-Develops committed Dec 31, 2024
1 parent 2236327 commit 464db84
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 13 deletions.
12 changes: 3 additions & 9 deletions src/components/navbar/Navbar.tsx
Original file line number Diff line number Diff line change
@@ -1,26 +1,20 @@
import { Box, Container, Divider, Flex, Text } from "@chakra-ui/react";
import { Box, Divider, Flex, Text } from "@chakra-ui/react";
import Link from "next/link";
import React from "react";
import BossBanner from "../banner/BossBanner";
import { useRouter } from "next/router";

const Navbar = () => {
const router = useRouter();
const isHomeScreen = Object.keys(router.query).length < 1;
return (
<Box
as="nav"
position="sticky"
minH={12}
top={"0px"}
position={"fixed"}
h={12}
w="full"
boxShadow="md"
bgColor="gray.900"
fontSize="14px"
isolation="isolate"
zIndex={1}
>
{isHomeScreen && <BossBanner />}
<Flex
alignItems="center"
h="full"
Expand Down
3 changes: 0 additions & 3 deletions src/layout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ import Navbar from "@/components/navbar/Navbar";
import Head from "next/head";
import React from "react";
import styles from "./layout.module.css";
import BossBanner from "@/components/banner/BossBanner";
import { useRouter } from "next/router";

const Layout = ({ children }: { children: React.ReactNode }) => {

return (
Expand Down
2 changes: 1 addition & 1 deletion src/layout/layout.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

.child_container {
height: 100%;
/* padding-top: var(--chakra-sizes-12); /* account for navbar height in chakra units */
padding-top: var(--chakra-sizes-12); /* account for navbar height in chakra units
/* flex-grow: 1;
margin-top: var(--chakra-sizes-12); account for navbar height in chakra units */
}

0 comments on commit 464db84

Please sign in to comment.