Small style changes and env fun

This commit is contained in:
2025-09-29 12:34:53 +03:00
parent f280ad9843
commit cb60cf1abf
6 changed files with 50 additions and 18 deletions

3
.gitignore vendored
View File

@ -22,3 +22,6 @@ dist-ssr
*.njsproj *.njsproj
*.sln *.sln
*.sw? *.sw?
# Other
.env

38
package-lock.json generated
View File

@ -3144,14 +3144,14 @@
} }
}, },
"node_modules/tinyglobby": { "node_modules/tinyglobby": {
"version": "0.2.14", "version": "0.2.15",
"resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.14.tgz", "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz",
"integrity": "sha512-tX5e7OM1HnYr2+a2C/4V0htOcSQcoSTH9KgJnVvNm5zm/cyEWKJ7j7YutsH9CxMdtOkkLFy2AHrMci9IM8IPZQ==", "integrity": "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"fdir": "^6.4.4", "fdir": "^6.5.0",
"picomatch": "^4.0.2" "picomatch": "^4.0.3"
}, },
"engines": { "engines": {
"node": ">=12.0.0" "node": ">=12.0.0"
@ -3161,11 +3161,14 @@
} }
}, },
"node_modules/tinyglobby/node_modules/fdir": { "node_modules/tinyglobby/node_modules/fdir": {
"version": "6.4.6", "version": "6.5.0",
"resolved": "https://registry.npmjs.org/fdir/-/fdir-6.4.6.tgz", "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz",
"integrity": "sha512-hiFoqpyZcfNm1yc4u8oWCf9A2c4D3QjCrks3zmoVKVxpQRzmPNar1hUJcBG2RQHvEVGDN+Jm81ZheVLAQMK6+w==", "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"engines": {
"node": ">=12.0.0"
},
"peerDependencies": { "peerDependencies": {
"picomatch": "^3 || ^4" "picomatch": "^3 || ^4"
}, },
@ -3307,18 +3310,18 @@
} }
}, },
"node_modules/vite": { "node_modules/vite": {
"version": "7.1.0", "version": "7.1.7",
"resolved": "https://registry.npmjs.org/vite/-/vite-7.1.0.tgz", "resolved": "https://registry.npmjs.org/vite/-/vite-7.1.7.tgz",
"integrity": "sha512-3jdAy3NhBJYsa/lCFcnRfbK4kNkO/bhijFCnv5ByUQk/eekYagoV2yQSISUrhpV+5JiY5hmwOh7jNnQ68dFMuQ==", "integrity": "sha512-VbA8ScMvAISJNJVbRDTJdCwqQoAareR/wutevKanhR2/1EkoXVZVkkORaYm/tNVCjP/UDTKtcw3bAkwOUdedmA==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"esbuild": "^0.25.0", "esbuild": "^0.25.0",
"fdir": "^6.4.6", "fdir": "^6.5.0",
"picomatch": "^4.0.3", "picomatch": "^4.0.3",
"postcss": "^8.5.6", "postcss": "^8.5.6",
"rollup": "^4.43.0", "rollup": "^4.43.0",
"tinyglobby": "^0.2.14" "tinyglobby": "^0.2.15"
}, },
"bin": { "bin": {
"vite": "bin/vite.js" "vite": "bin/vite.js"
@ -3382,11 +3385,14 @@
} }
}, },
"node_modules/vite/node_modules/fdir": { "node_modules/vite/node_modules/fdir": {
"version": "6.4.6", "version": "6.5.0",
"resolved": "https://registry.npmjs.org/fdir/-/fdir-6.4.6.tgz", "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz",
"integrity": "sha512-hiFoqpyZcfNm1yc4u8oWCf9A2c4D3QjCrks3zmoVKVxpQRzmPNar1hUJcBG2RQHvEVGDN+Jm81ZheVLAQMK6+w==", "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"engines": {
"node": ">=12.0.0"
},
"peerDependencies": { "peerDependencies": {
"picomatch": "^3 || ^4" "picomatch": "^3 || ^4"
}, },

View File

@ -76,7 +76,7 @@ function App() {
newestOnTop={false} newestOnTop={false}
closeOnClick={false} closeOnClick={false}
rtl={false} rtl={false}
theme={systemDark ? "light" : "dark"} theme={systemDark ? "dark" : "light"}
/> />
<Router> <Router>
<Routes> <Routes>

View File

@ -25,6 +25,7 @@ const Home = () => {
</li> </li>
</ul> </ul>
</nav> </nav>
<h2>Test var: {import.meta.env.VITE_TEST}</h2>
</div> </div>
</div> </div>
) )

View File

@ -72,9 +72,10 @@
.login-button { .login-button {
margin-top: "10px"; margin-top: 10px;
padding: 16px 32px; padding: 16px 32px;
font-size: 16px; font-size: 16px;
width: 100%;
border-radius: 12px; border-radius: 12px;
background-color: var(--buttons-main-color); background-color: var(--buttons-main-color);
color: var(--text_dark); color: var(--text_dark);
@ -104,3 +105,12 @@
color: var(--links-hover-color); color: var(--links-hover-color);
text-decoration: none; text-decoration: none;
} }
.separator {
color: var(--links-hover-color);
font-size: medium;
font-family: sans-serif;
margin-left: 4;
margin-right: 4;
}

View File

@ -79,6 +79,12 @@ const Login = () => {
required required
showError={usernameEmpty} showError={usernameEmpty}
errorMessage="Please enter your username" errorMessage="Please enter your username"
// icon=<svg xmlns="http://www.w3.org/2000/svg" class="min-icon" fill="currentcolor" viewBox="0 0 256 256"><g><path d="M128.1,144c39.2,0.1,71.1-31.4,71.4-70.6c0-39.4-32-71.4-71.4-71.4s-71.4,32-71.4,71.4
// C57,112.6,89,144.1,128.1,144"></path><path d="M214.6,197.3c-10.8-13.9-24.9-25-41-32.2c-7.3-3.3-14.9-5.9-22.7-7.6
// c-7.7-1.7-15.5-2.6-23.4-2.6c-1.6,0-3.2,0-4.7,0.1h-0.5c-3.9,0.2-7.7,0.6-11.5,1.2c-27.1,4.3-51.6,18.7-68.6,40.2
// c-0.6,0.8-1.2,1.6-1.8,2.4l0,0c-7.8,11-8.9,25.4-2.8,37.3c1.4,2.7,3.2,5.2,5.3,7.5c2.1,2.2,4.5,4.1,7.1,5.6
// c2.6,1.5,5.4,2.7,8.4,3.5c3.1,0.8,6.2,1.2,9.4,1.2h120.6c3.2,0,6.4-0.4,9.5-1.2c2.9-0.8,5.8-2,8.4-3.5c2.6-1.5,5-3.5,7-5.7
// c2.1-2.3,3.9-4.8,5.3-7.6C224.7,223.4,223.2,208.4,214.6,197.3"></path></g></svg>
/> />
<FormField <FormField
type="password" type="password"
@ -101,9 +107,15 @@ const Login = () => {
<h2> <h2>
<a href="https://git.frik.su/Beesquit/picrinth-admin" className="login-link">Frontend</a> <a href="https://git.frik.su/Beesquit/picrinth-admin" className="login-link">Frontend</a>
</h2> </h2>
<span className="separator">
|
</span>
<h2> <h2>
<a href="https://git.frik.su/Beesquit/picrinth-server" className="login-link">Backend</a> <a href="https://git.frik.su/Beesquit/picrinth-server" className="login-link">Backend</a>
</h2> </h2>
<span className="separator">
|
</span>
<h2> <h2>
<a href="https://git.frik.su/Beesquit" className="login-link">Author</a> <a href="https://git.frik.su/Beesquit" className="login-link">Author</a>
</h2> </h2>