mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-22 11:17:05 +02:00
feat: navbar
This commit is contained in:
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>
|
||||
);
|
||||
}
|
||||
@@ -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>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user