mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 03:59:50 +02:00
feat: watermark 2
This commit is contained in:
1 parent
818d13fade
commit
797f5a90d2
2 files changed
+16
-7
No files matched your search
@@ -1,5 +1,5 @@
|
|||||||
import { LightningBoltIcon } from '@radix-ui/react-icons';
|
import { LightningBoltIcon } from '@radix-ui/react-icons';
|
||||||
import { Button, Card, Flex, Tabs, Theme } from '@radix-ui/themes';
|
import { Button, Card, Flex, Tabs, Text, Theme } from '@radix-ui/themes';
|
||||||
import { PerspectiveCamera } from '@react-three/drei';
|
import { PerspectiveCamera } from '@react-three/drei';
|
||||||
import { Canvas } from '@react-three/fiber';
|
import { Canvas } from '@react-three/fiber';
|
||||||
import { Suspense, use, useEffect, useRef, useState } from 'react';
|
import { Suspense, use, useEffect, useRef, useState } from 'react';
|
||||||
@@ -14,6 +14,7 @@ import { tankIcon } from '../../../../../../core/blitzkrieg/tankIcon';
|
|||||||
import { useEquipment } from '../../../../../../hooks/useEquipment';
|
import { useEquipment } from '../../../../../../hooks/useEquipment';
|
||||||
import { useFullScreen } from '../../../../../../hooks/useFullScreen';
|
import { useFullScreen } from '../../../../../../hooks/useFullScreen';
|
||||||
import { useWideFormat } from '../../../../../../hooks/useWideFormat';
|
import { useWideFormat } from '../../../../../../hooks/useWideFormat';
|
||||||
|
import { BlitzkriegWormWide } from '../../../../../../icons/BlitzkriegWormWide';
|
||||||
import { mutateDuel, useDuel } from '../../../../../../stores/duel';
|
import { mutateDuel, useDuel } from '../../../../../../stores/duel';
|
||||||
import mutateTankopediaPersistent, {
|
import mutateTankopediaPersistent, {
|
||||||
TankopediaMode,
|
TankopediaMode,
|
||||||
@@ -150,7 +151,6 @@ export function TankSandbox() {
|
|||||||
}}
|
}}
|
||||||
ref={canvasWrapper}
|
ref={canvasWrapper}
|
||||||
>
|
>
|
||||||
<Theme radius="full" style={{ height: '100%' }}>
|
|
||||||
<Flex
|
<Flex
|
||||||
style={{
|
style={{
|
||||||
height: isFullScreen ? '100%' : '75vh',
|
height: isFullScreen ? '100%' : '75vh',
|
||||||
@@ -177,6 +177,17 @@ export function TankSandbox() {
|
|||||||
</Tabs.List>
|
</Tabs.List>
|
||||||
</Tabs.Root>
|
</Tabs.Root>
|
||||||
|
|
||||||
|
<Text
|
||||||
|
color="gray"
|
||||||
|
style={{
|
||||||
|
position: 'absolute',
|
||||||
|
left: '50%',
|
||||||
|
top: 11,
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<BlitzkriegWormWide height={32} />
|
||||||
|
</Text>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
height: 'calc(100% - 64px)',
|
height: 'calc(100% - 64px)',
|
||||||
@@ -245,16 +256,12 @@ export function TankSandbox() {
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<Options
|
<Options canvasWrapper={canvasWrapper} isFullScreen={isFullScreen} />
|
||||||
canvasWrapper={canvasWrapper}
|
|
||||||
isFullScreen={isFullScreen}
|
|
||||||
/>
|
|
||||||
|
|
||||||
{isFullScreen && <AntagonistBar floating />}
|
{isFullScreen && <AntagonistBar floating />}
|
||||||
|
|
||||||
{loadModel && <RotationInputs isFullScreen={isFullScreen} />}
|
{loadModel && <RotationInputs isFullScreen={isFullScreen} />}
|
||||||
</Flex>
|
</Flex>
|
||||||
</Theme>
|
|
||||||
</Card>
|
</Card>
|
||||||
</Theme>
|
</Theme>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -52,6 +52,7 @@ export function RotationInputs({ isFullScreen }: RotationInputsProps) {
|
|||||||
>
|
>
|
||||||
<Flex gap="2" style={{ width: 256, pointerEvents: 'auto' }}>
|
<Flex gap="2" style={{ width: 256, pointerEvents: 'auto' }}>
|
||||||
<TextField.Root
|
<TextField.Root
|
||||||
|
radius="full"
|
||||||
style={{
|
style={{
|
||||||
flex: 1,
|
flex: 1,
|
||||||
textAlign: 'right',
|
textAlign: 'right',
|
||||||
@@ -99,6 +100,7 @@ export function RotationInputs({ isFullScreen }: RotationInputsProps) {
|
|||||||
</TextField.Root>
|
</TextField.Root>
|
||||||
|
|
||||||
<TextField.Root
|
<TextField.Root
|
||||||
|
radius="full"
|
||||||
style={{
|
style={{
|
||||||
flex: 1,
|
flex: 1,
|
||||||
textAlign: 'right',
|
textAlign: 'right',
|
||||||
|
|||||||
Reference in new issue
Block a user