Adds Chakra theme tokens, hero background, and animated nav underline
Defines bg/fg semantic tokens and heading/body font tokens (Marcellus + Jost), sets the hero image as the page background, and gives NavigationBar's links a hover/active underline that mirrors the design's left-to-right wipe animation.
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
import { HStack, chakra } from '@chakra-ui/react';
|
||||
import NavLink from './NavLink';
|
||||
|
||||
export default function NavigationBar() {
|
||||
return (
|
||||
<chakra.header
|
||||
bg="none"
|
||||
color="white"
|
||||
border="none"
|
||||
px={{ base: 4, md: 8 }}
|
||||
py={4}
|
||||
>
|
||||
<HStack as="ul" gap={6} listStyleType="none">
|
||||
<chakra.li>
|
||||
<NavLink to="/">Home</NavLink>
|
||||
</chakra.li>
|
||||
<chakra.li>
|
||||
<NavLink to="/over-mij">Over mij</NavLink>
|
||||
</chakra.li>
|
||||
</HStack>
|
||||
</chakra.header>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user