mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 20:19:49 +02:00
feat: frosty navbar
This commit is contained in:
1 parent
bf7a319770
commit
cfe71e15a4
6 files changed
+22
-9
No files matched your search
Vendored
+1
@@ -13,6 +13,7 @@
|
|||||||
"Everytime",
|
"Everytime",
|
||||||
"fullstats",
|
"fullstats",
|
||||||
"fuzzysort",
|
"fuzzysort",
|
||||||
|
"gamemode",
|
||||||
"immer",
|
"immer",
|
||||||
"kranvagn",
|
"kranvagn",
|
||||||
"krieg",
|
"krieg",
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ export default function RootLayout({ children }: RootLayoutProps) {
|
|||||||
<body
|
<body
|
||||||
style={{
|
style={{
|
||||||
margin: 0,
|
margin: 0,
|
||||||
|
marginTop: isEmbed ? 0 : '3.25rem',
|
||||||
background: isEmbed
|
background: isEmbed
|
||||||
? 'transparent'
|
? 'transparent'
|
||||||
: 'url(https://i.imgur.com/PhS06NJ.png)',
|
: 'url(https://i.imgur.com/PhS06NJ.png)',
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ import { Options } from './components/Options';
|
|||||||
import { PageTurner } from './components/PageTurner';
|
import { PageTurner } from './components/PageTurner';
|
||||||
import * as styles from './page.css';
|
import * as styles from './page.css';
|
||||||
|
|
||||||
const TANKS_PER_PAGE = 30;
|
const TANKS_PER_PAGE = 3 * 2 ** 4;
|
||||||
|
|
||||||
export default function Page() {
|
export default function Page() {
|
||||||
const tankopediaState = useTankopedia();
|
const tankopediaState = useTankopedia();
|
||||||
|
|||||||
@@ -1,16 +1,24 @@
|
|||||||
import { DiscordLogoIcon } from '@radix-ui/react-icons';
|
import { DiscordLogoIcon } from '@radix-ui/react-icons';
|
||||||
import { Card, Flex, Text, Theme } from '@radix-ui/themes';
|
import { 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 (
|
||||||
<Theme radius="none">
|
<Theme radius="none">
|
||||||
<Card
|
<div
|
||||||
style={{
|
style={{
|
||||||
borderLeft: 'none',
|
position: 'fixed',
|
||||||
borderTop: 'none',
|
top: 0,
|
||||||
borderRight: 'none',
|
left: 0,
|
||||||
|
width: '100%',
|
||||||
|
zIndex: 1,
|
||||||
|
padding: '1rem',
|
||||||
|
background: theme.colors.appBackground1_alpha,
|
||||||
|
borderBottom: theme.borderStyles.nonInteractive,
|
||||||
|
backdropFilter: 'blur(4rem)',
|
||||||
|
boxSizing: 'border-box',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Flex justify="center">
|
<Flex justify="center">
|
||||||
@@ -36,6 +44,7 @@ export default function Navbar() {
|
|||||||
<Link
|
<Link
|
||||||
href="https://tresabhi.github.io/"
|
href="https://tresabhi.github.io/"
|
||||||
style={{ color: 'inherit', textDecoration: 'none' }}
|
style={{ color: 'inherit', textDecoration: 'none' }}
|
||||||
|
target="_blank"
|
||||||
>
|
>
|
||||||
by TrèsAbhi
|
by TrèsAbhi
|
||||||
</Link>
|
</Link>
|
||||||
@@ -57,7 +66,7 @@ export default function Navbar() {
|
|||||||
</Flex>
|
</Flex>
|
||||||
</Flex>
|
</Flex>
|
||||||
</Flex>
|
</Flex>
|
||||||
</Card>
|
</div>
|
||||||
</Theme>
|
</Theme>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -14,12 +14,12 @@ export const TOOLS: Tool[] = [
|
|||||||
{
|
{
|
||||||
id: 'ratings',
|
id: 'ratings',
|
||||||
title: 'Ratings',
|
title: 'Ratings',
|
||||||
description: 'Current and archived ratings leaderboards',
|
description: 'Ratings gamemode leaderboards',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'tankopedia',
|
id: 'tankopedia',
|
||||||
title: 'Tankopedia',
|
title: 'Tankopedia',
|
||||||
description: 'Full Blitz tank encyclopedia',
|
description: 'Blitz tank encyclopedia',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'inactive',
|
id: 'inactive',
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import {
|
|||||||
orangeDark,
|
orangeDark,
|
||||||
slate,
|
slate,
|
||||||
slateDark,
|
slateDark,
|
||||||
|
slateDarkA,
|
||||||
tealDark,
|
tealDark,
|
||||||
} from '@radix-ui/colors';
|
} from '@radix-ui/colors';
|
||||||
import { createBorderStyles, createColors, createSpaces } from 'bepaint';
|
import { createBorderStyles, createColors, createSpaces } from 'bepaint';
|
||||||
@@ -14,6 +15,7 @@ export const theme = {
|
|||||||
|
|
||||||
colors: {
|
colors: {
|
||||||
...createColors(slateDark),
|
...createColors(slateDark),
|
||||||
|
...createColors(slateDarkA, 'alpha'),
|
||||||
...createColors(slate, 'light'),
|
...createColors(slate, 'light'),
|
||||||
|
|
||||||
...createColors(amberDark, 'amber'),
|
...createColors(amberDark, 'amber'),
|
||||||
|
|||||||
Reference in new issue
Block a user