From 7e5357dfe74c44c376b4f48b5542214327339a32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Thu, 20 Jun 2024 13:31:42 -0500 Subject: [PATCH] feat: experiments --- src/app/tools/tankopedia/page.tsx | 47 ++++++++++++++++++++++++------- src/components/ExperimentIcon.tsx | 16 +++++++++++ src/components/ScienceIcon.tsx | 16 +++++++++++ src/components/ScienceOffIcon.tsx | 16 +++++++++++ 4 files changed, 85 insertions(+), 10 deletions(-) create mode 100644 src/components/ExperimentIcon.tsx create mode 100644 src/components/ScienceIcon.tsx create mode 100644 src/components/ScienceOffIcon.tsx diff --git a/src/app/tools/tankopedia/page.tsx b/src/app/tools/tankopedia/page.tsx index 171243cde..00b529612 100644 --- a/src/app/tools/tankopedia/page.tsx +++ b/src/app/tools/tankopedia/page.tsx @@ -4,16 +4,18 @@ import { Grid, Heading, IconButton, - RadioGroup, Separator, Text, } from '@radix-ui/themes'; import { range, times } from 'lodash'; import { use } from 'react'; import { classIcons } from '../../../components/ClassIcon'; +import { ExperimentIcon } from '../../../components/ExperimentIcon'; import { Link } from '../../../components/Link'; import PageWrapper from '../../../components/PageWrapper'; import { ResearchedIcon } from '../../../components/ResearchedIcon'; +import { ScienceIcon } from '../../../components/ScienceIcon'; +import { ScienceOffIcon } from '../../../components/ScienceOffIcon'; import { TANK_CLASSES } from '../../../components/Tanks/components/Item/constants'; import { asset } from '../../../core/blitzkit/asset'; import { gameDefinitions } from '../../../core/blitzkit/gameDefinitions'; @@ -47,8 +49,15 @@ export default function Page() { initial: 'row', sm: 'column', }} - gap="4" - align="start" + gap="2" + align={{ + initial: 'start', + sm: 'start', + }} + justify={{ + initial: 'center', + sm: 'start', + }} pt={{ initial: '0', sm: '8', @@ -233,13 +242,31 @@ export default function Page() { - - Test tanks - - Include - Exclude - Only - + + + + + + + + + + diff --git a/src/components/ExperimentIcon.tsx b/src/components/ExperimentIcon.tsx new file mode 100644 index 000000000..f0d2ab841 --- /dev/null +++ b/src/components/ExperimentIcon.tsx @@ -0,0 +1,16 @@ +import { ComponentProps } from 'react'; + +export function ExperimentIcon(props: ComponentProps<'svg'>) { + return ( + + + + ); +} diff --git a/src/components/ScienceIcon.tsx b/src/components/ScienceIcon.tsx new file mode 100644 index 000000000..f4ee030d6 --- /dev/null +++ b/src/components/ScienceIcon.tsx @@ -0,0 +1,16 @@ +import { ComponentProps } from 'react'; + +export function ScienceIcon(props: ComponentProps<'svg'>) { + return ( + + + + ); +} diff --git a/src/components/ScienceOffIcon.tsx b/src/components/ScienceOffIcon.tsx new file mode 100644 index 000000000..b7574ed34 --- /dev/null +++ b/src/components/ScienceOffIcon.tsx @@ -0,0 +1,16 @@ +import { ComponentProps } from 'react'; + +export function ScienceOffIcon(props: ComponentProps<'svg'>) { + return ( + + + + ); +}