Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add sunset banner #182

Merged
merged 1 commit into from
Oct 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading