mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 20:19:49 +02:00
feat: better navbar
This commit is contained in:
1 parent
cadc84b32f
commit
bf7a319770
2 files changed
+53
-49
No files matched your search
@@ -1,21 +0,0 @@
|
|||||||
import { ReactNode } from 'react';
|
|
||||||
|
|
||||||
interface ButtonProps {
|
|
||||||
children: ReactNode;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function Button({ children }: ButtonProps) {
|
|
||||||
return (
|
|
||||||
<button
|
|
||||||
style={{
|
|
||||||
padding: 16,
|
|
||||||
border: 'none',
|
|
||||||
cursor: 'pointer',
|
|
||||||
background: 'none',
|
|
||||||
color: 'inherit',
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
{children}
|
|
||||||
</button>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
@@ -1,38 +1,63 @@
|
|||||||
|
import { DiscordLogoIcon } from '@radix-ui/react-icons';
|
||||||
|
import { Card, Flex, Text, Theme } from '@radix-ui/themes';
|
||||||
import Link from 'next/link';
|
import Link from 'next/link';
|
||||||
import { theme } from '../../stitches.config';
|
|
||||||
import { BlitzkriegWormWide } from '../BlitzkriegWormWide';
|
import { BlitzkriegWormWide } from '../BlitzkriegWormWide';
|
||||||
|
|
||||||
export default function Navbar() {
|
export default function Navbar() {
|
||||||
return (
|
return (
|
||||||
<div
|
<Theme radius="none">
|
||||||
style={{
|
<Card
|
||||||
width: '100%',
|
|
||||||
display: 'flex',
|
|
||||||
alignItems: 'center',
|
|
||||||
justifyContent: 'center',
|
|
||||||
color: theme.colors.textHighContrast,
|
|
||||||
backgroundColor: theme.colors.appBackground2,
|
|
||||||
borderBottom: theme.borderStyles.nonInteractive,
|
|
||||||
height: 48, // TODO: remove this when the icons are implemented
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
{/* <Button>
|
|
||||||
<HamburgerMenuIcon />
|
|
||||||
</Button> */}
|
|
||||||
<Link
|
|
||||||
href="/"
|
|
||||||
style={{
|
style={{
|
||||||
color: 'inherit',
|
borderLeft: 'none',
|
||||||
display: 'flex',
|
borderTop: 'none',
|
||||||
alignItems: 'center',
|
borderRight: 'none',
|
||||||
justifyContent: 'center',
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<BlitzkriegWormWide />
|
<Flex justify="center">
|
||||||
</Link>
|
<Flex
|
||||||
{/* <Button>
|
justify="between"
|
||||||
<PersonIcon />
|
align="center"
|
||||||
</Button> */}
|
style={{ maxWidth: 800, width: '100%', padding: '0 16px' }}
|
||||||
</div>
|
>
|
||||||
|
<Flex justify="center" align="center" gap="2">
|
||||||
|
<Link
|
||||||
|
href="/"
|
||||||
|
style={{
|
||||||
|
color: 'inherit',
|
||||||
|
display: 'flex',
|
||||||
|
alignItems: 'center',
|
||||||
|
justifyContent: 'center',
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<BlitzkriegWormWide />
|
||||||
|
</Link>
|
||||||
|
<Text size="2">❤️</Text>
|
||||||
|
<Text size="2">
|
||||||
|
<Link
|
||||||
|
href="https://tresabhi.github.io/"
|
||||||
|
style={{ color: 'inherit', textDecoration: 'none' }}
|
||||||
|
>
|
||||||
|
by TrèsAbhi
|
||||||
|
</Link>
|
||||||
|
</Text>
|
||||||
|
</Flex>
|
||||||
|
|
||||||
|
<Flex justify="center" align="center" gap="2">
|
||||||
|
<Link
|
||||||
|
href="https://discord.gg/nDt7AjGJQH"
|
||||||
|
style={{
|
||||||
|
color: 'inherit',
|
||||||
|
display: 'flex',
|
||||||
|
alignItems: 'center',
|
||||||
|
justifyContent: 'center',
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<DiscordLogoIcon />
|
||||||
|
</Link>
|
||||||
|
</Flex>
|
||||||
|
</Flex>
|
||||||
|
</Flex>
|
||||||
|
</Card>
|
||||||
|
</Theme>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user