feat: better coloring

This commit is contained in:
TrèsAbhi committed 2024-07-31 13:25:58 -05:00
1 parent 2c0f9184db
commit c6249c5a83
3 files changed
+17 -12

No files matched your search

@@ -40,7 +40,7 @@ export function HeroSection({ id }: HeroSectionProps) {
const entries = Object.values(awaitedTankDefinitions);
const filtered = entries.filter((thisTank) => thisTank.tier === tank.tier);
const value =
filtered.reduce((accumulator, thisTank) => {
(filtered.reduce((accumulator, thisTank) => {
return (
accumulator +
resolveNearPenetration(
@@ -48,7 +48,8 @@ export function HeroSection({ id }: HeroSectionProps) {
)
);
}, 0) /
((4 / 3) * filtered.length);
filtered.length) *
(3 / 4);
return { value } satisfies ThicknessRange;
}, [tank.tier]);
@@ -50,7 +50,7 @@ export function Thicknesses({ thicknessRange }: ThicknessesProps) {
>
<Flex direction="column" align="end" justify="between">
<Text color="gray" size="1">
{thicknessRange.value.toFixed(0)}
{(thicknessRange.value * 1.5).toFixed(0)}
</Text>
<Flex gap="1">
{showPrimaryArmor ? <EyeOpenIcon /> : <EyeClosedIcon />}
@@ -66,7 +66,7 @@ export function Thicknesses({ thicknessRange }: ThicknessesProps) {
style={{
borderRadius: 'var(--radius-full)',
overflow: 'hidden',
background: `linear-gradient(rgb(255, 0, 0), rgb(0, 255, 0))`,
background: `linear-gradient(rgb(128, 0, 0), rgb(255, 0, 0) 33%, rgb(0, 255, 0))`,
}}
/>
</Flex>