2022-12-15 20:23:11 +00:00
|
|
|
import styled from 'styled-components'
|
|
|
|
import Link from 'next/link';
|
|
|
|
|
|
|
|
interface ActivePropType {
|
2022-12-17 20:35:40 +00:00
|
|
|
active?: number;
|
2022-12-15 20:23:11 +00:00
|
|
|
}
|
|
|
|
|
2022-12-15 20:36:15 +00:00
|
|
|
export const NavWrap = styled.div`
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
border-bottom: 1px solid ${({ theme }) => theme.colors.primary};
|
|
|
|
`
|
|
|
|
|
2022-12-15 20:23:11 +00:00
|
|
|
export const NavBar = styled.nav`
|
2022-12-15 21:33:40 +00:00
|
|
|
margin-right: 1%;
|
2022-12-15 20:23:11 +00:00
|
|
|
display: flex;
|
|
|
|
flex: 1;
|
2022-12-17 01:17:54 +00:00
|
|
|
padding: 1rem 0;
|
2022-12-15 20:23:11 +00:00
|
|
|
flex-wrap: nowrap;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
`
|
|
|
|
|
2022-12-18 03:57:22 +00:00
|
|
|
export const NavLink = styled(Link) <ActivePropType>`
|
|
|
|
color: ${props => props.active ?
|
|
|
|
({ theme }) => theme.invertButtons ?
|
|
|
|
theme.colors.text ? theme.colors.text : theme.colors.secondary : theme.colors.secondary :
|
|
|
|
({ theme }) => theme.colors.primary};
|
|
|
|
|
|
|
|
background-color: ${props => props.active ?
|
|
|
|
({ theme }) => theme.invertButtons ?
|
|
|
|
theme.colors.secondary : theme.colors.background :
|
|
|
|
({ theme }) => theme.colors.background};
|
|
|
|
|
|
|
|
padding: 2px 6px;
|
|
|
|
border: 2px solid;
|
|
|
|
|
2022-12-15 20:23:11 +00:00
|
|
|
margin: 0.2rem;
|
2022-12-17 00:56:41 +00:00
|
|
|
border-radius: 5px;
|
2022-12-15 20:23:11 +00:00
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
2022-12-18 03:57:22 +00:00
|
|
|
transition: all 0.1s ease;
|
2022-12-15 20:23:11 +00:00
|
|
|
|
|
|
|
&:hover {
|
2022-12-18 03:57:22 +00:00
|
|
|
color: ${({ theme }) => theme.invertButtons ?
|
|
|
|
theme.colors.text ? theme.colors.text : theme.colors.primary :
|
|
|
|
theme.colors.secondary};
|
2022-12-15 20:23:11 +00:00
|
|
|
|
2022-12-18 03:57:22 +00:00
|
|
|
background-color: ${({ theme }) => theme.invertButtons ?
|
|
|
|
theme.colors.secondary :
|
|
|
|
theme.colors.background};
|
|
|
|
}
|
2022-12-15 20:23:11 +00:00
|
|
|
`
|