mirror of
https://github.com/AykutSarac/jsoncrack.com.git
synced 2025-01-12 19:02:53 +08:00
fix navbar
This commit is contained in:
parent
76615cc34a
commit
bf981d4d27
@ -10,6 +10,8 @@ const StyledNavbar = styled.div`
|
||||
padding: 16px 48px;
|
||||
|
||||
@media only screen and (max-width: 768px) {
|
||||
justify-content: center;
|
||||
|
||||
a:first-of-type {
|
||||
display: none;
|
||||
}
|
||||
@ -35,6 +37,12 @@ const StyledNavLink = styled(Link)`
|
||||
font-weight: 500;
|
||||
color: ${({ theme }) => theme.ORANGE};
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 568px) {
|
||||
&.mobileHide {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const Navbar = () => (
|
||||
@ -43,10 +51,14 @@ export const Navbar = () => (
|
||||
<img src="assets/icon.png" alt="json crack" width="120" />
|
||||
</Link>
|
||||
<StyledLinkWrapper>
|
||||
<StyledNavLink href="https://pro.jsoncrack.com">Pro</StyledNavLink>
|
||||
<StyledNavLink className="mobileHide" href="https://pro.jsoncrack.com">
|
||||
Pro
|
||||
</StyledNavLink>
|
||||
<StyledNavLink href="/editor">Editor</StyledNavLink>
|
||||
<StyledNavLink href="#features">Features</StyledNavLink>
|
||||
<StyledNavLink href="#sponsor">Sponsor</StyledNavLink>
|
||||
<StyledNavLink className="mobileHide" href="#sponsor">
|
||||
Sponsor
|
||||
</StyledNavLink>
|
||||
<StyledNavLink
|
||||
href="https://github.com/AykutSarac/jsoncrack.com"
|
||||
target="_blank"
|
||||
@ -54,7 +66,9 @@ export const Navbar = () => (
|
||||
>
|
||||
GitHub
|
||||
</StyledNavLink>
|
||||
<StyledNavLink href="docs">Documentation</StyledNavLink>
|
||||
<StyledNavLink className="mobileHide" href="docs">
|
||||
Documentation
|
||||
</StyledNavLink>
|
||||
</StyledLinkWrapper>
|
||||
</StyledNavbar>
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user