Loading screen tweaks

This commit is contained in:
Lncvrt committed 2025-01-03 14:47:00 -07:00
1 parent d45ebd0115
commit 335333935b
4 files changed
+29 -15

No files matched your search

+24 -4
View File
@@ -26,7 +26,6 @@ img:hover {
margin: 2px;
}
/* Container for the dropdown */
.dropdown-container {
display: flex;
justify-content: center;
@@ -34,7 +33,6 @@ img:hover {
padding: 10px;
}
/* Styling the dropdown itself */
.dropdown {
font-size: 16px;
padding: 8px;
@@ -44,14 +42,36 @@ img:hover {
transition: background-color 0.3s ease;
}
/* Change background color when hovered */
.dropdown:hover {
background-color: #222222;
}
/* Option styling */
.dropdown option {
font-size: 16px;
padding: 8px;
background-color: #1e1e1e;
}
.loader {
width: 80px;
height: 80px;
border: 5px solid #f3f3f3;
border-top: 5px solid #3498db;
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
.center {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
+1 -3
View File
@@ -1,7 +1,7 @@
import { useState } from "react";
import { invoke } from "@tauri-apps/api/core";
function App() {
export default function App() {
const [result, setResult] = useState(false);
const [selectedVersion, setSelectedVersion] = useState<number>(0);
@@ -42,5 +42,3 @@ function App() {
</main>
);
}
export default App;
+3 -5
View File
@@ -1,9 +1,7 @@
function Loading() {
export default function Loading() {
return (
<main className="container">
<p>loading</p>
<main className="container center">
<div className="loader"></div>
</main>
);
}
export default Loading;
+1 -3
View File
@@ -1,4 +1,4 @@
function UpdateRequired() {
export default function UpdateRequired() {
return (
<main className="container">
<p>update required</p>
@@ -6,5 +6,3 @@ function UpdateRequired() {
</main>
);
}
export default UpdateRequired;