
--------- Co-authored-by: davitbejanyan <dbejanyan@provectus.com> Co-authored-by: Mgrdich <mgotm13@gmail.com> Co-authored-by: Roman Zabaluev <rzabaluev@provectus.com> Co-authored-by: VladSenyuta <vlad.senyuta@gmail.com> Co-authored-by: Vlad Senyuta <66071557+VladSenyuta@users.noreply.github.com> Co-authored-by: Oleg Shur <workshur@gmail.com>
149 lines
2.9 KiB
TypeScript
149 lines
2.9 KiB
TypeScript
import styled, { css } from 'styled-components';
|
|
import { Link } from 'react-router-dom';
|
|
import DiscordIcon from 'components/common/Icons/DiscordIcon';
|
|
import GitIcon from 'components/common/Icons/GitIcon';
|
|
|
|
export const Navbar = styled.nav(
|
|
({ theme }) => css`
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
border-bottom: 1px solid ${theme.layout.stuffBorderColor};
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
z-index: 30;
|
|
background-color: ${theme.menu.backgroundColor.normal};
|
|
min-height: 3.25rem;
|
|
`
|
|
);
|
|
|
|
export const NavbarBrand = styled.div`
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
align-items: center !important;
|
|
flex-shrink: 0;
|
|
min-height: 3.25rem;
|
|
`;
|
|
|
|
export const SocialLink = styled.a(
|
|
({ theme: { icons } }) => css`
|
|
display: block;
|
|
margin-top: 5px;
|
|
cursor: pointer;
|
|
fill: ${icons.discord.normal};
|
|
|
|
&:hover {
|
|
${DiscordIcon} {
|
|
fill: ${icons.discord.hover};
|
|
}
|
|
|
|
${GitIcon} {
|
|
fill: ${icons.git.hover};
|
|
}
|
|
}
|
|
|
|
&:active {
|
|
${DiscordIcon} {
|
|
fill: ${icons.discord.active};
|
|
}
|
|
|
|
${GitIcon} {
|
|
fill: ${icons.git.active};
|
|
}
|
|
}
|
|
`
|
|
);
|
|
|
|
export const NavbarSocial = styled.div`
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
margin: 5px 10px 5px;
|
|
`;
|
|
|
|
export const NavbarItem = styled.div`
|
|
display: flex;
|
|
position: relative;
|
|
flex-grow: 0;
|
|
flex-shrink: 0;
|
|
align-items: center;
|
|
line-height: 1.5;
|
|
padding: 0.5rem 0.75rem;
|
|
`;
|
|
|
|
export const NavbarBurger = styled.div(
|
|
({ theme }) => css`
|
|
display: block;
|
|
position: relative;
|
|
cursor: pointer;
|
|
height: 3.25rem;
|
|
width: 3.25rem;
|
|
margin: 0;
|
|
padding: 0;
|
|
|
|
&:hover {
|
|
background-color: ${theme.menu.backgroundColor.hover};
|
|
}
|
|
|
|
@media screen and (min-width: 1024px) {
|
|
display: none;
|
|
}
|
|
`
|
|
);
|
|
|
|
export const Span = styled.span(
|
|
({ theme }) => css`
|
|
display: block;
|
|
position: absolute;
|
|
background: ${theme.menu.color.active};
|
|
height: 1px;
|
|
left: calc(50% - 8px);
|
|
transform-origin: center;
|
|
transition-duration: 86ms;
|
|
transition-property: background-color, opacity, transform, -webkit-transform;
|
|
transition-timing-function: ease-out;
|
|
width: 16px;
|
|
|
|
&:first-child {
|
|
top: calc(50% - 6px);
|
|
}
|
|
|
|
&:nth-child(2) {
|
|
top: calc(50% - 1px);
|
|
}
|
|
|
|
&:nth-child(3) {
|
|
top: calc(50% + 4px);
|
|
}
|
|
`
|
|
);
|
|
|
|
export const Hyperlink = styled(Link)(
|
|
({ theme }) => css`
|
|
position: relative;
|
|
|
|
display: flex;
|
|
flex-grow: 0;
|
|
flex-shrink: 0;
|
|
align-items: center;
|
|
gap: 8px;
|
|
|
|
margin: 0;
|
|
padding: 0.5rem 0.75rem;
|
|
|
|
font-family: Inter, sans-serif;
|
|
font-style: normal;
|
|
font-weight: bold;
|
|
font-size: 12px;
|
|
line-height: 16px;
|
|
color: ${theme.default.color.normal};
|
|
&:hover {
|
|
color: ${theme.default.color.normal};
|
|
}
|
|
text-decoration: none;
|
|
word-break: break-word;
|
|
cursor: pointer;
|
|
`
|
|
);
|