feat: improved tools

This commit is contained in:
TrèsAbhi committed 2024-02-20 22:36:18 -06:00
1 parent a19c772bba
commit bcde6907c8
5 files changed
+27 -19

No files matched your search

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

+1 -1
View File
@@ -3,7 +3,7 @@ import { theme } from '../stitches.config';
export const tool = styleVariants({ export const tool = styleVariants({
enabled: { enabled: {
boxShadow: `inset 0 -192px 128px -128px ${theme.colors.appBackground1}`, boxShadow: `inset 0 -256px 512px -128px ${theme.colors.appBackground1}`,
':hover': { ':hover': {
boxShadow: `inset 0 -160px 128px -128px ${theme.colors.appBackground1}`, boxShadow: `inset 0 -160px 128px -128px ${theme.colors.appBackground1}`,
+2 -1
View File
@@ -30,7 +30,8 @@ export default function Page() {
({ ({
node: ( node: (
<Link <Link
href={`/tools/${tool.id}`} href={tool.href ?? `/tools/${tool.id}`}
target={tool.href ? '_blank' : undefined}
className={ className={
tool.disabled ? styles.tool.disabled : styles.tool.enabled tool.disabled ? styles.tool.disabled : styles.tool.enabled
} }
+24 -17
View File
@@ -3,6 +3,7 @@ interface Tool {
title: string; title: string;
description: string; description: string;
disabled?: boolean; disabled?: boolean;
href?: string;
} }
export const TOOLS: Tool[] = [ export const TOOLS: Tool[] = [
@@ -11,32 +12,38 @@ export const TOOLS: Tool[] = [
title: 'Session tracker', title: 'Session tracker',
description: 'Live session performance tracker', description: 'Live session performance tracker',
}, },
{
id: 'ratings',
title: 'Ratings',
description: 'Ratings gamemode leaderboards',
},
{ {
id: 'tankopedia', id: 'tankopedia',
title: 'Tankopedia', title: 'Tankopedia',
description: 'Blitz tank encyclopedia', description: 'Blitz tank encyclopedia',
}, },
{ {
id: 'inactive', id: 'ratings',
title: 'Inactivity tracker', title: 'Ratings',
description: 'Find inactive members of a clan', description: 'Ratings gamemode leaderboards',
disabled: true,
}, },
{ {
id: 'profile', id: 'discord',
title: 'Player profile', title: 'Discord bot',
description: "A player's basic non-statistical info", description: 'Stats and tools right in Discord',
disabled: true, href: 'https://discord.com/application-directory/1097673957865443370',
}, },
// { // {
// title: 'More coming soon', // id: 'inactive',
// description: 'New tools are added often', // title: 'Inactivity tracker',
// banner: '/assets/banners/more.png', // description: 'Find inactive members of a clan',
// id: 'https://discord.gg/nDt7AjGJQH', // disabled: true,
// }, // },
// {
// id: 'profile',
// title: 'Player profile',
// description: "A player's basic non-statistical info",
// disabled: true,
// },
{
id: 'more',
title: 'More coming soon',
description: 'This site is being actively developed',
href: 'https://discord.gg/nDt7AjGJQH',
},
]; ];