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

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