Skip to content

Commit

Permalink
add sunset banner (#182)
Browse files Browse the repository at this point in the history
  • Loading branch information
ra-phael authored Oct 14, 2024
1 parent f63eb9d commit 6294548
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions src/components/NavBar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const FULL_BORDER_RADIUS = 9999

const Nav = styled.nav`
padding: 20px 12px;
width: 100%;
width: 100vw;
height: ${({ theme }) => theme.navHeight}px;
z-index: 2;
`
Expand All @@ -32,6 +32,17 @@ const DocsLink = styled(ExternalLink)`
padding: 0.5rem 1rem;
`

const Banner = styled.div`
width: 100%;
text-align: center;
background-color: red;
color: white;
font-size: large;
padding-top: 4px;
padding-bottom: 4px;
font-weight: 600;
`

interface MenuItemProps {
href: string
id?: NavLinkProps['id']
Expand Down Expand Up @@ -80,7 +91,8 @@ const Navbar = () => {
const navigate = useNavigate()

return (
<>
<div>
<Banner>Mauve is no longer operational and will be closing down permanently in the near future.</Banner>
<Nav>
<Box display="flex" height="full" flexWrap="nowrap">
<Box className={styles.leftSideContainer}>
Expand Down Expand Up @@ -116,7 +128,7 @@ const Navbar = () => {
</Box>
</Box>
</Nav>
</>
</div>
)
}

Expand Down

0 comments on commit 6294548

Please sign in to comment.