mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 03:59:50 +02:00
feat: slicker design
This commit is contained in:
1 parent
3729072594
commit
f4f804727f
1 file changed
+9
-6
+9
-6
@@ -31,7 +31,7 @@ export function ViewRangeVisualizer({ stats }: VisualizerProps) {
|
|||||||
const range = useRef<HTMLDivElement>(null);
|
const range = useRef<HTMLDivElement>(null);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Card style={{ aspectRatio: '1 / 1' }} mb="6">
|
<Card style={{ aspectRatio: '1 / 1' }} mb="6" variant="classic">
|
||||||
<Box
|
<Box
|
||||||
ref={container}
|
ref={container}
|
||||||
onPointerMove={(event) => {
|
onPointerMove={(event) => {
|
||||||
@@ -82,18 +82,21 @@ export function ViewRangeVisualizer({ stats }: VisualizerProps) {
|
|||||||
top="0"
|
top="0"
|
||||||
left="0"
|
left="0"
|
||||||
width="100%"
|
width="100%"
|
||||||
p="2"
|
py="2"
|
||||||
|
px="3"
|
||||||
gap="3"
|
gap="3"
|
||||||
align="center"
|
align="center"
|
||||||
style={{
|
style={{
|
||||||
background: `linear-gradient(${Var('black-a9')}, ${Var('black-a4')})`,
|
backgroundColor: Var('black-a8'),
|
||||||
|
backdropFilter: 'blur(4rem)',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Text>
|
<Text size="2">
|
||||||
{strings.website.tools.tankopedia.visualizers.view_range.camo}
|
{strings.website.tools.tankopedia.visualizers.view_range.camo}
|
||||||
</Text>
|
</Text>
|
||||||
|
|
||||||
<Slider
|
<Slider
|
||||||
|
size="1"
|
||||||
variant="classic"
|
variant="classic"
|
||||||
value={[camouflage]}
|
value={[camouflage]}
|
||||||
min={0}
|
min={0}
|
||||||
@@ -102,8 +105,8 @@ export function ViewRangeVisualizer({ stats }: VisualizerProps) {
|
|||||||
onValueChange={([value]) => setCamouflage(value)}
|
onValueChange={([value]) => setCamouflage(value)}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<Code highContrast color="gray" variant="ghost">
|
<Code size="1" color="gray" variant="ghost">
|
||||||
<Flex justify="center" width="3em">
|
<Flex justify="center" width="2em">
|
||||||
{literals(
|
{literals(
|
||||||
strings.website.tools.tankopedia.visualizers.view_range
|
strings.website.tools.tankopedia.visualizers.view_range
|
||||||
.percentage,
|
.percentage,
|
||||||
|
|||||||
Reference in new issue
Block a user