Compare commits

...

2 Commits

Author SHA1 Message Date
Renovate Bot
9a816c7bbf fix(deps): update react monorepo to v19.2.3 2025-12-19 19:04:48 +00:00
5cb67355fb introduce new theming category 2025-12-19 19:50:57 +01:00
3 changed files with 76 additions and 43 deletions

View File

@ -16,13 +16,13 @@ importers:
version: 2.10.1 version: 2.10.1
react: react:
specifier: ^19.2.1 specifier: ^19.2.1
version: 19.2.1 version: 19.2.3
react-dom: react-dom:
specifier: ^19.2.1 specifier: ^19.2.1
version: 19.2.1(react@19.2.1) version: 19.2.3(react@19.2.3)
react-router-dom: react-router-dom:
specifier: ^7.10.1 specifier: ^7.10.1
version: 7.10.1(react-dom@19.2.1(react@19.2.1))(react@19.2.1) version: 7.10.1(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
devDependencies: devDependencies:
'@eslint/js': '@eslint/js':
specifier: ^9.39.1 specifier: ^9.39.1
@ -425,7 +425,7 @@ packages:
resolution: {integrity: sha512-EcA07pHJouywpzsoTUqNh5NwGayl2PPVEJKUSinGGSxFGYn+shYbqMGBg6FXDqgXum9Ou/ecb+411ssw8HImJQ==} resolution: {integrity: sha512-EcA07pHJouywpzsoTUqNh5NwGayl2PPVEJKUSinGGSxFGYn+shYbqMGBg6FXDqgXum9Ou/ecb+411ssw8HImJQ==}
engines: {node: ^20.19.0 || >=22.12.0} engines: {node: ^20.19.0 || >=22.12.0}
peerDependencies: 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: acorn-jsx@5.3.2:
resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==}
@ -863,10 +863,10 @@ packages:
resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==} resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==}
engines: {node: '>=6'} engines: {node: '>=6'}
react-dom@19.2.1: react-dom@19.2.3:
resolution: {integrity: sha512-ibrK8llX2a4eOskq1mXKu/TGZj9qzomO+sNfO98M6d9zIPOEhlBkMkBUBLd1vgS0gQsLDBzA+8jJBVXDnfHmJg==} resolution: {integrity: sha512-yELu4WmLPw5Mr/lmeEpox5rw3RETacE++JgHqQzd2dg+YbJuat3jH4ingc+WPZhxaoFzdv9y33G+F7Nl5O0GBg==}
peerDependencies: peerDependencies:
react: ^19.2.1 react: ^19.2.3
react-refresh@0.18.0: react-refresh@0.18.0:
resolution: {integrity: sha512-QgT5//D3jfjJb6Gsjxv0Slpj23ip+HtOpnNgnb2S5zU3CB26G/IDPGoy4RJB42wzFE46DRsstbW6tKHoKbhAxw==} resolution: {integrity: sha512-QgT5//D3jfjJb6Gsjxv0Slpj23ip+HtOpnNgnb2S5zU3CB26G/IDPGoy4RJB42wzFE46DRsstbW6tKHoKbhAxw==}
@ -889,8 +889,8 @@ packages:
react-dom: react-dom:
optional: true optional: true
react@19.2.1: react@19.2.3:
resolution: {integrity: sha512-DGrYcCWK7tvYMnWh79yrPHt+vdx9tY+1gPZa7nJQtO/p8bLTDaHp4dzwEhQB7pZ4Xe3ok4XKuEPrVuc+wlpkmw==} resolution: {integrity: sha512-Ku/hhYbVjOQnXDZFv2+RibmLFGwFdeeKHFcOTlrt7xplBnya5OGn/hIRDsqDiSUcfORsDC7MPxwork8jBwsIWA==}
engines: {node: '>=0.10.0'} engines: {node: '>=0.10.0'}
resolve-from@4.0.0: resolve-from@4.0.0:
@ -1845,28 +1845,28 @@ snapshots:
punycode@2.3.1: {} punycode@2.3.1: {}
react-dom@19.2.1(react@19.2.1): react-dom@19.2.3(react@19.2.3):
dependencies: dependencies:
react: 19.2.1 react: 19.2.3
scheduler: 0.27.0 scheduler: 0.27.0
react-refresh@0.18.0: {} react-refresh@0.18.0: {}
react-router-dom@7.10.1(react-dom@19.2.1(react@19.2.1))(react@19.2.1): react-router-dom@7.10.1(react-dom@19.2.3(react@19.2.3))(react@19.2.3):
dependencies: dependencies:
react: 19.2.1 react: 19.2.3
react-dom: 19.2.1(react@19.2.1) react-dom: 19.2.3(react@19.2.3)
react-router: 7.10.1(react-dom@19.2.1(react@19.2.1))(react@19.2.1) react-router: 7.10.1(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
react-router@7.10.1(react-dom@19.2.1(react@19.2.1))(react@19.2.1): react-router@7.10.1(react-dom@19.2.3(react@19.2.3))(react@19.2.3):
dependencies: dependencies:
cookie: 1.1.1 cookie: 1.1.1
react: 19.2.1 react: 19.2.3
set-cookie-parser: 2.7.2 set-cookie-parser: 2.7.2
optionalDependencies: optionalDependencies:
react-dom: 19.2.1(react@19.2.1) react-dom: 19.2.3(react@19.2.3)
react@19.2.1: {} react@19.2.3: {}
resolve-from@4.0.0: {} resolve-from@4.0.0: {}

View File

@ -35,10 +35,23 @@ function App() {
const [isLoading, setIsLoading] = useState(false); const [isLoading, setIsLoading] = useState(false);
useEffect(() => { useEffect(() => {
if (theme !== "default") { if (theme !== "default" && theme !== "sakura") {
document.body.classList.remove("sakura-theme");
document.body.classList.add("shader-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 { } else {
document.body.classList.remove("shader-theme"); 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]); }, [theme]);
@ -97,6 +110,7 @@ function App() {
{ id: "ball", label: "Ball", icon: "⚽" }, { id: "ball", label: "Ball", icon: "⚽" },
{ id: "reflect", label: "Reflect", icon: "🪞" }, { id: "reflect", label: "Reflect", icon: "🪞" },
{ id: "clouds", label: "Clouds", icon: "☁️" }, { id: "clouds", label: "Clouds", icon: "☁️" },
{ id: "sakura", label: "Sakura", icon: "🌸" },
]; ];
return ( return (

View File

@ -1,15 +1,21 @@
:root { :root {
--primary-bg: #23283d; --primary-bg-rgb: 35 40 61;
--secondary-bg: #1e2233; --secondary-bg-rgb: 30 34 51;
--secondary-alt-bg: #191f2e; --secondary-alt-bg-rgb: 25 31 46;
--tertiary-bg: #101320; --tertiary-bg-rgb: 16 19 32;
--accent-color: #096dc0; --accent-color-rgb: 9 109 192;
--secondary-accent: #0a4f8c; --secondary-accent-rgb: 10 79 140;
--border-color-rgb: 42 48 69;
--text-color: #ffffff; --text-color: #ffffff;
--text-muted: #a0a0a0; --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; line-height: 1.6;
font-weight: 400; font-weight: 400;
@ -32,7 +38,12 @@ body {
background-color: var(--primary-bg); background-color: var(--primary-bg);
} }
h1, h2, h3, h4, h5, h6 { h1,
h2,
h3,
h4,
h5,
h6 {
color: var(--text-color); color: var(--text-color);
margin-top: 0; margin-top: 0;
} }
@ -74,7 +85,8 @@ button:focus-visible {
outline: 4px auto -webkit-focus-ring-color; outline: 4px auto -webkit-focus-ring-color;
} }
input, select { input,
select {
background-color: var(--secondary-alt-bg); background-color: var(--secondary-alt-bg);
border: 1px solid var(--border-color); border: 1px solid var(--border-color);
color: var(--text-color); color: var(--text-color);
@ -85,17 +97,18 @@ input, select {
transition: all 0.2s ease; transition: all 0.2s ease;
} }
input:focus, select:focus { input:focus,
select:focus {
outline: none; outline: none;
border-color: var(--accent-color); 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 { ul {
list-style: none; list-style: none;
padding: 0; padding: 0;
@ -103,15 +116,21 @@ ul {
.shader-theme { .shader-theme {
--primary-bg: transparent; /* Let the shader show through */ --primary-bg: transparent; /* Let the shader show through */
--secondary-bg: rgba(0, 0, 0, 0.7); /* Translucent cards */ --secondary-bg: rgb(var(--secondary-bg-rgb) / 0.7); /* Translucent cards */
--secondary-alt-bg: rgba(20, 20, 20, 0.6); /* Translucent inputs */ --secondary-alt-bg: rgb(
--tertiary-bg: rgba(40, 40, 40, 0.8); var(--secondary-alt-bg-rgb) / 0.6
--border-color: rgba(255, 255, 255, 0.15); ); /* 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; --text-color: #ffffff;
--accent-color: #121212; --accent-color: #121212;
--secondary-accent: #212121; --secondary-accent: #212121;
} }
.shader-theme body {
background-color: transparent;
}