Compare commits
2 Commits
bb64499b01
...
c148bf7fec
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c148bf7fec | ||
| 5cb67355fb |
22
frontend/pnpm-lock.yaml
generated
22
frontend/pnpm-lock.yaml
generated
@ -29,7 +29,7 @@ importers:
|
||||
version: 9.39.1
|
||||
'@types/node':
|
||||
specifier: ^24.10.1
|
||||
version: 24.10.1
|
||||
version: 24.10.4
|
||||
'@types/react':
|
||||
specifier: ^19.2.7
|
||||
version: 19.2.7
|
||||
@ -38,7 +38,7 @@ importers:
|
||||
version: 19.2.3(@types/react@19.2.7)
|
||||
'@vitejs/plugin-react':
|
||||
specifier: ^5.1.2
|
||||
version: 5.1.2(rolldown-vite@7.2.5(@types/node@24.10.1))
|
||||
version: 5.1.2(rolldown-vite@7.2.5(@types/node@24.10.4))
|
||||
eslint:
|
||||
specifier: ^9.39.1
|
||||
version: 9.39.1
|
||||
@ -62,7 +62,7 @@ importers:
|
||||
version: 8.48.1(eslint@9.39.1)(typescript@5.9.3)
|
||||
vite:
|
||||
specifier: npm:rolldown-vite@7.2.5
|
||||
version: rolldown-vite@7.2.5(@types/node@24.10.1)
|
||||
version: rolldown-vite@7.2.5(@types/node@24.10.4)
|
||||
|
||||
packages:
|
||||
|
||||
@ -351,8 +351,8 @@ packages:
|
||||
'@types/json-schema@7.0.15':
|
||||
resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==}
|
||||
|
||||
'@types/node@24.10.1':
|
||||
resolution: {integrity: sha512-GNWcUTRBgIRJD5zj+Tq0fKOJ5XZajIiBroOF0yvj2bSU1WvNdYS/dn9UxwsujGW4JX06dnHyjV2y9rRaybH0iQ==}
|
||||
'@types/node@24.10.4':
|
||||
resolution: {integrity: sha512-vnDVpYPMzs4wunl27jHrfmwojOGKya0xyM3sH+UE5iv5uPS6vX7UIoh6m+vQc5LGBq52HBKPIn/zcSZVzeDEZg==}
|
||||
|
||||
'@types/react-dom@19.2.3':
|
||||
resolution: {integrity: sha512-jp2L/eY6fn+KgVVQAOqYItbF0VY/YApe5Mz2F0aykSO8gx31bYCZyvSeYxCHKvzHG5eZjc+zyaS5BrBWya2+kQ==}
|
||||
@ -425,7 +425,7 @@ packages:
|
||||
resolution: {integrity: sha512-EcA07pHJouywpzsoTUqNh5NwGayl2PPVEJKUSinGGSxFGYn+shYbqMGBg6FXDqgXum9Ou/ecb+411ssw8HImJQ==}
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
peerDependencies:
|
||||
vite: ^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0
|
||||
vite: npm:rolldown-vite@7.2.5
|
||||
|
||||
acorn-jsx@5.3.2:
|
||||
resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==}
|
||||
@ -1350,7 +1350,7 @@ snapshots:
|
||||
|
||||
'@types/json-schema@7.0.15': {}
|
||||
|
||||
'@types/node@24.10.1':
|
||||
'@types/node@24.10.4':
|
||||
dependencies:
|
||||
undici-types: 7.16.0
|
||||
|
||||
@ -1454,7 +1454,7 @@ snapshots:
|
||||
'@typescript-eslint/types': 8.48.1
|
||||
eslint-visitor-keys: 4.2.1
|
||||
|
||||
'@vitejs/plugin-react@5.1.2(rolldown-vite@7.2.5(@types/node@24.10.1))':
|
||||
'@vitejs/plugin-react@5.1.2(rolldown-vite@7.2.5(@types/node@24.10.4))':
|
||||
dependencies:
|
||||
'@babel/core': 7.28.5
|
||||
'@babel/plugin-transform-react-jsx-self': 7.27.1(@babel/core@7.28.5)
|
||||
@ -1462,7 +1462,7 @@ snapshots:
|
||||
'@rolldown/pluginutils': 1.0.0-beta.53
|
||||
'@types/babel__core': 7.20.5
|
||||
react-refresh: 0.18.0
|
||||
vite: rolldown-vite@7.2.5(@types/node@24.10.1)
|
||||
vite: rolldown-vite@7.2.5(@types/node@24.10.4)
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
@ -1870,7 +1870,7 @@ snapshots:
|
||||
|
||||
resolve-from@4.0.0: {}
|
||||
|
||||
rolldown-vite@7.2.5(@types/node@24.10.1):
|
||||
rolldown-vite@7.2.5(@types/node@24.10.4):
|
||||
dependencies:
|
||||
'@oxc-project/runtime': 0.97.0
|
||||
fdir: 6.5.0(picomatch@4.0.3)
|
||||
@ -1880,7 +1880,7 @@ snapshots:
|
||||
rolldown: 1.0.0-beta.50
|
||||
tinyglobby: 0.2.15
|
||||
optionalDependencies:
|
||||
'@types/node': 24.10.1
|
||||
'@types/node': 24.10.4
|
||||
fsevents: 2.3.3
|
||||
|
||||
rolldown@1.0.0-beta.50:
|
||||
|
||||
@ -35,10 +35,23 @@ function App() {
|
||||
const [isLoading, setIsLoading] = useState(false);
|
||||
|
||||
useEffect(() => {
|
||||
if (theme !== "default") {
|
||||
if (theme !== "default" && theme !== "sakura") {
|
||||
document.body.classList.remove("sakura-theme");
|
||||
document.body.classList.add("shader-theme");
|
||||
if (theme === "clouds" || theme === "blackhole" || theme === "ball") {
|
||||
document.body.classList.add("black-theme");
|
||||
return;
|
||||
}
|
||||
document.body.classList.remove("black-theme");
|
||||
} else {
|
||||
document.body.classList.remove("shader-theme");
|
||||
document.body.classList.remove("black-theme");
|
||||
|
||||
if (theme === "sakura") {
|
||||
document.body.classList.add("sakura-theme");
|
||||
return;
|
||||
}
|
||||
document.body.classList.remove("sakura-theme");
|
||||
}
|
||||
}, [theme]);
|
||||
|
||||
@ -97,6 +110,7 @@ function App() {
|
||||
{ id: "ball", label: "Ball", icon: "⚽" },
|
||||
{ id: "reflect", label: "Reflect", icon: "🪞" },
|
||||
{ id: "clouds", label: "Clouds", icon: "☁️" },
|
||||
{ id: "sakura", label: "Sakura", icon: "🌸" },
|
||||
];
|
||||
|
||||
return (
|
||||
|
||||
@ -1,15 +1,21 @@
|
||||
:root {
|
||||
--primary-bg: #23283d;
|
||||
--secondary-bg: #1e2233;
|
||||
--secondary-alt-bg: #191f2e;
|
||||
--tertiary-bg: #101320;
|
||||
--accent-color: #096dc0;
|
||||
--secondary-accent: #0a4f8c;
|
||||
--primary-bg-rgb: 35 40 61;
|
||||
--secondary-bg-rgb: 30 34 51;
|
||||
--secondary-alt-bg-rgb: 25 31 46;
|
||||
--tertiary-bg-rgb: 16 19 32;
|
||||
--accent-color-rgb: 9 109 192;
|
||||
--secondary-accent-rgb: 10 79 140;
|
||||
--border-color-rgb: 42 48 69;
|
||||
--text-color: #ffffff;
|
||||
--text-muted: #a0a0a0;
|
||||
--border-color: #2a3045;
|
||||
|
||||
font-family: 'Inter', system-ui, Avenir, Helvetica, Arial, sans-serif;
|
||||
--primary-bg: rgb(var(--primary-bg-rgb));
|
||||
--secondary-bg: rgb(var(--secondary-bg-rgb));
|
||||
--secondary-alt-bg: rgb(var(--tertiary-bg-rgb));
|
||||
--tertiary-bg: rgb(var(--border-color-rgb));
|
||||
--border-color: rgb(var(--text-color-rgb));
|
||||
|
||||
font-family: "Inter", system-ui, Avenir, Helvetica, Arial, sans-serif;
|
||||
line-height: 1.6;
|
||||
font-weight: 400;
|
||||
|
||||
@ -32,7 +38,12 @@ body {
|
||||
background-color: var(--primary-bg);
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
color: var(--text-color);
|
||||
margin-top: 0;
|
||||
}
|
||||
@ -74,7 +85,8 @@ button:focus-visible {
|
||||
outline: 4px auto -webkit-focus-ring-color;
|
||||
}
|
||||
|
||||
input, select {
|
||||
input,
|
||||
select {
|
||||
background-color: var(--secondary-alt-bg);
|
||||
border: 1px solid var(--border-color);
|
||||
color: var(--text-color);
|
||||
@ -85,17 +97,18 @@ input, select {
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
input:focus, select:focus {
|
||||
input:focus,
|
||||
select:focus {
|
||||
outline: none;
|
||||
border-color: var(--accent-color);
|
||||
box-shadow: 0 0 0 2px rgba(9, 109, 192, 0.2);
|
||||
box-shadow: 0 0 0 2px rgb(9, 109, 192, 0.2);
|
||||
}
|
||||
|
||||
* {
|
||||
transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
|
||||
transition: background-color 0.3s ease, border-color 0.3s ease,
|
||||
color 0.3s ease, box-shadow 0.3s ease;
|
||||
}
|
||||
|
||||
|
||||
ul {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
@ -103,15 +116,21 @@ ul {
|
||||
|
||||
.shader-theme {
|
||||
--primary-bg: transparent; /* Let the shader show through */
|
||||
--secondary-bg: rgba(0, 0, 0, 0.7); /* Translucent cards */
|
||||
--secondary-alt-bg: rgba(20, 20, 20, 0.6); /* Translucent inputs */
|
||||
--tertiary-bg: rgba(40, 40, 40, 0.8);
|
||||
--border-color: rgba(255, 255, 255, 0.15);
|
||||
--secondary-bg: rgb(var(--secondary-bg-rgb) / 0.7); /* Translucent cards */
|
||||
--secondary-alt-bg: rgb(
|
||||
var(--secondary-alt-bg-rgb) / 0.6
|
||||
); /* Translucent inputs */
|
||||
--tertiary-bg: rgb(var(--tertiary-bg-rgb) / 0.8);
|
||||
--border-color: rgb(var(--border-color-rgb) / 0.15);
|
||||
}
|
||||
|
||||
.black-theme {
|
||||
--primary-bg: transparent; /* Let the shader show through */
|
||||
--secondary-bg: rgb(0, 0, 0, 0.7); /* Translucent cards */
|
||||
--secondary-alt-bg: rgb(20, 20, 20, 0.6); /* Translucent inputs */
|
||||
--tertiary-bg: rgb(40, 40, 40, 0.8);
|
||||
--border-color: rgb(255, 255, 255, 0.15);
|
||||
--text-color: #ffffff;
|
||||
--accent-color: #121212;
|
||||
--secondary-accent: #212121;
|
||||
}
|
||||
|
||||
.shader-theme body {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user