mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 03:59:50 +02:00
feat: gutted some navbar features
This commit is contained in:
1 parent
29bace875e
commit
2226ac9852
1 file changed
+50
-68
@@ -1,7 +1,7 @@
|
|||||||
import {
|
import {
|
||||||
|
DiscordLogoIcon,
|
||||||
GearIcon,
|
GearIcon,
|
||||||
HamburgerMenuIcon,
|
HamburgerMenuIcon,
|
||||||
MagnifyingGlassIcon,
|
|
||||||
} from '@radix-ui/react-icons';
|
} from '@radix-ui/react-icons';
|
||||||
import {
|
import {
|
||||||
Flex,
|
Flex,
|
||||||
@@ -15,8 +15,8 @@ import { TOOLS } from '../../constants/tools';
|
|||||||
import { useFullScreen } from '../../hooks/useFullScreen';
|
import { useFullScreen } from '../../hooks/useFullScreen';
|
||||||
import { useWideFormat } from '../../hooks/useWideFormat';
|
import { useWideFormat } from '../../hooks/useWideFormat';
|
||||||
import { BlitzkriegWormWide } from '../../icons/BlitzkriegWormWide';
|
import { BlitzkriegWormWide } from '../../icons/BlitzkriegWormWide';
|
||||||
|
import { PatreonIcon } from '../../icons/Patreon';
|
||||||
import { theme } from '../../stitches.config';
|
import { theme } from '../../stitches.config';
|
||||||
import { EverythingSearch } from './components/EverythingSearch';
|
|
||||||
|
|
||||||
export default function Navbar() {
|
export default function Navbar() {
|
||||||
const isFullScreen = useFullScreen();
|
const isFullScreen = useFullScreen();
|
||||||
@@ -52,6 +52,46 @@ export default function Navbar() {
|
|||||||
style={{ maxWidth: 800, width: '100%', padding: '0 16px' }}
|
style={{ maxWidth: 800, width: '100%', padding: '0 16px' }}
|
||||||
gap="4"
|
gap="4"
|
||||||
>
|
>
|
||||||
|
{/* {wideFormat ? (
|
||||||
|
<EverythingSearch style={{ flex: 1 }} />
|
||||||
|
) : (
|
||||||
|
<div style={{ flex: 1 }} />
|
||||||
|
)}
|
||||||
|
|
||||||
|
{!wideFormat && (
|
||||||
|
<IconButton variant="ghost" color="gray">
|
||||||
|
<MagnifyingGlassIcon />
|
||||||
|
</IconButton>
|
||||||
|
)} */}
|
||||||
|
|
||||||
|
<Link
|
||||||
|
href="https://discord.gg/nDt7AjGJQH"
|
||||||
|
target="_blank"
|
||||||
|
style={{
|
||||||
|
color: 'inherit',
|
||||||
|
display: 'flex',
|
||||||
|
alignItems: 'center',
|
||||||
|
justifyContent: 'center',
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<DiscordLogoIcon width={16} height={16} />
|
||||||
|
</Link>
|
||||||
|
|
||||||
|
<Link
|
||||||
|
href="https://www.patreon.com/tresabhi"
|
||||||
|
target="_blank"
|
||||||
|
style={{
|
||||||
|
color: 'inherit',
|
||||||
|
display: 'flex',
|
||||||
|
alignItems: 'center',
|
||||||
|
justifyContent: 'center',
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<PatreonIcon width={14} height={14} />
|
||||||
|
</Link>
|
||||||
|
|
||||||
|
<div style={{ flex: 1 }} />
|
||||||
|
|
||||||
<Link
|
<Link
|
||||||
href="/"
|
href="/"
|
||||||
style={{
|
style={{
|
||||||
@@ -64,17 +104,15 @@ export default function Navbar() {
|
|||||||
<BlitzkriegWormWide />
|
<BlitzkriegWormWide />
|
||||||
</Link>
|
</Link>
|
||||||
|
|
||||||
{wideFormat ? (
|
<div style={{ flex: 1 }} />
|
||||||
<EverythingSearch style={{ flex: 1 }} />
|
|
||||||
) : (
|
|
||||||
<div style={{ flex: 1 }} />
|
|
||||||
)}
|
|
||||||
|
|
||||||
{!wideFormat && (
|
<Link href="/settings">
|
||||||
<IconButton variant="ghost" color="gray">
|
<Flex style={{ width: '100%', height: '100%' }} justify="center">
|
||||||
<MagnifyingGlassIcon />
|
<IconButton variant="ghost" color="gray">
|
||||||
</IconButton>
|
<GearIcon />
|
||||||
)}
|
</IconButton>
|
||||||
|
</Flex>
|
||||||
|
</Link>
|
||||||
|
|
||||||
<Popover.Root>
|
<Popover.Root>
|
||||||
<Popover.Trigger>
|
<Popover.Trigger>
|
||||||
@@ -114,62 +152,6 @@ export default function Navbar() {
|
|||||||
</Flex>
|
</Flex>
|
||||||
</Popover.Content>
|
</Popover.Content>
|
||||||
</Popover.Root>
|
</Popover.Root>
|
||||||
|
|
||||||
<Link href="/settings">
|
|
||||||
<Flex style={{ width: '100%', height: '100%' }} justify="center">
|
|
||||||
<IconButton variant="ghost" color="gray">
|
|
||||||
<GearIcon />
|
|
||||||
</IconButton>
|
|
||||||
</Flex>
|
|
||||||
</Link>
|
|
||||||
|
|
||||||
{/* <Flex justify="center" align="center" gap="4">
|
|
||||||
<Link
|
|
||||||
href="https://discord.gg/nDt7AjGJQH"
|
|
||||||
target="_blank"
|
|
||||||
style={{
|
|
||||||
color: 'inherit',
|
|
||||||
display: 'flex',
|
|
||||||
alignItems: 'center',
|
|
||||||
justifyContent: 'center',
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<DiscordLogoIcon width={16} height={16} />
|
|
||||||
</Link>
|
|
||||||
|
|
||||||
<Link
|
|
||||||
href="https://ko-fi.com/tresabhi"
|
|
||||||
target="_blank"
|
|
||||||
style={{
|
|
||||||
color: 'inherit',
|
|
||||||
display: 'flex',
|
|
||||||
alignItems: 'center',
|
|
||||||
justifyContent: 'center',
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<img
|
|
||||||
src="https://i.imgur.com/QdqgdP2.png"
|
|
||||||
style={{
|
|
||||||
width: 20,
|
|
||||||
height: 20,
|
|
||||||
objectFit: 'contain',
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
</Link>
|
|
||||||
|
|
||||||
<Link
|
|
||||||
href="https://www.patreon.com/tresabhi"
|
|
||||||
target="_blank"
|
|
||||||
style={{
|
|
||||||
color: 'inherit',
|
|
||||||
display: 'flex',
|
|
||||||
alignItems: 'center',
|
|
||||||
justifyContent: 'center',
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<PatreonIcon width={14} height={14} />
|
|
||||||
</Link>
|
|
||||||
</Flex> */}
|
|
||||||
</Flex>
|
</Flex>
|
||||||
</Flex>
|
</Flex>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in new issue
Block a user