mirror of
https://github.com/Nezumi-2711/react-training.git
synced 2026-09-22 20:01:59 +00:00
37 lines
632 B
TypeScript
37 lines
632 B
TypeScript
import { NavLink } from 'react-router-dom';
|
|
import styled from 'styled-components';
|
|
|
|
const StyledNav = styled.nav`
|
|
margin-top: 70px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 15px;
|
|
`;
|
|
|
|
const StyledNavLink = styled(NavLink)`
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 20px;
|
|
padding: 15px;
|
|
border-radius: var(--radius-md);
|
|
transition: all 0.3s;
|
|
|
|
& svg {
|
|
width: 25px;
|
|
height: 25px;
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
&:hover,
|
|
&.active {
|
|
background-color: var(--hover-background-color);
|
|
}
|
|
|
|
&:hover svg,
|
|
&.active svg {
|
|
color: var(--primary-color);
|
|
}
|
|
`;
|
|
|
|
export { StyledNav, StyledNavLink };
|