remove the numbers and add some arrows in the same theme for the nav items "import…
- User
remove the numbers and add some arrows in the same theme for the nav items "import React, { useState, useEffect } from 'react'; import { Link } from 'gatsby'; import PropTypes from 'prop-types'; import { CSSTransition, TransitionGroup } from 'react-transition-group'; import styled, { css } from 'styled-components'; import { navLinks } from '@config'; import { loaderDelay } from '@utils'; import { useScrollDirection, usePrefersReducedMotion } from '@hooks'; import { Menu } from '@components'; import { IconLogo, IconHex } from '@components/icons';
const StyledHeader = styled.header` ${({ theme }) => theme.mixins.flexBetween}; position: fixed; top: 0; z-index: 11; padding: 0px 50px; width: 100%; height: var(--nav-height); background-color: rgba(10, 25, 47, 0.85); filter: none !important; pointer-events: auto !important; user-select: auto !important; backdrop-filter: blur(10px); transition: var(--transition);
@media (max-width: 1080px) { padding: 0 40px; } @media (max-width: 768px) { padding: 0 25px; }
@media (prefers-reduced-motion: no-preference) { ${props => props.scrollDirection === 'up' && !props.scrolledToTop && css
height: var(--nav-scroll-height); transform: translateY(0px); background-color: rgba(10, 25, 47, 0.85); box-shadow: 0 10px 30px -10px var(--navy-shadow);};code${props => props.scrollDirection === 'down' && !props.scrolledToTop && css` height: var(--nav-scroll-height); transform: translateY(calc(var(--nav-scroll-height) * -1)); box-shadow: 0 10px 30px -10px var(--navy-shadow); `};} `;
const StyledNav = styled.nav` ${({ theme }) => theme.mixins.flexBetween}; position: relative; width: 100%; color: var(--lightest-slate); font-family: var(--font-mono); counter-reset: item 0; z-index: 12;
.logo { ${({ theme }) => theme.mixins.flexCenter};
codea { color: var(--green); width: 42px; height: 42px; position: relative; z-index: 1; .hex-container { position: absolute; top: 0; left: 0; z-index: -1; @media (prefers-reduced-motion: no-preference) { transition: var(--transition); } } .logo-container { position: relative; z-index: 1; svg { fill: none; user-select: none; @media (prefers-reduced-motion: no-preference) { transition: var(--transition); } polygon { fill: var(--navy); } } } &:hover, &:focus { outline: 0; transform: translate(-4px, -4px); .hex-container { transform: translate(4px, 3px); } } } - Assistant