feat: navbar

This commit is contained in:
TresAbhi committed 2023-09-07 21:25:37 +00:00
1 parent 8860c1b0f8
commit 1979047bbc
9 files changed
+113 -7

No files matched your search

@@ -0,0 +1,22 @@
import { ReactNode } from 'react';
import { theme } from '../../../stitches.config';
interface ButtonProps {
children: ReactNode;
}
export function Button({ children }: ButtonProps) {
return (
<button
style={{
padding: theme.spaces.paddingMajor,
border: 'none',
cursor: 'pointer',
background: 'none',
color: 'inherit',
}}
>
{children}
</button>
);
}
+26
View File
@@ -0,0 +1,26 @@
import { HamburgerMenuIcon, PersonIcon } from '@radix-ui/react-icons';
import { theme } from '../../stitches.config';
import { BlitzkriegWormWide } from '../BlitzkriegWormWide';
import { Button } from './components/Button';
export default function Navbar() {
return (
<div
style={{
display: 'flex',
alignItems: 'center',
justifyContent: 'space-between',
color: theme.colors.textHighContrast,
backgroundColor: theme.colors.appBackground2,
}}
>
<Button>
<HamburgerMenuIcon />
</Button>
<BlitzkriegWormWide />
<Button>
<PersonIcon />
</Button>
</div>
);
}