Loading screen tweaks
This commit is contained in:
1 parent
d45ebd0115
commit
335333935b
4 files changed
+29
-15
No files matched your search
+24
-4
@@ -26,7 +26,6 @@ img:hover {
|
|||||||
margin: 2px;
|
margin: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Container for the dropdown */
|
|
||||||
.dropdown-container {
|
.dropdown-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
@@ -34,7 +33,6 @@ img:hover {
|
|||||||
padding: 10px;
|
padding: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Styling the dropdown itself */
|
|
||||||
.dropdown {
|
.dropdown {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
@@ -44,14 +42,36 @@ img:hover {
|
|||||||
transition: background-color 0.3s ease;
|
transition: background-color 0.3s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Change background color when hovered */
|
|
||||||
.dropdown:hover {
|
.dropdown:hover {
|
||||||
background-color: #222222;
|
background-color: #222222;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Option styling */
|
|
||||||
.dropdown option {
|
.dropdown option {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
background-color: #1e1e1e;
|
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
@@ -1,7 +1,7 @@
|
|||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import { invoke } from "@tauri-apps/api/core";
|
import { invoke } from "@tauri-apps/api/core";
|
||||||
|
|
||||||
function App() {
|
export default function App() {
|
||||||
const [result, setResult] = useState(false);
|
const [result, setResult] = useState(false);
|
||||||
const [selectedVersion, setSelectedVersion] = useState<number>(0);
|
const [selectedVersion, setSelectedVersion] = useState<number>(0);
|
||||||
|
|
||||||
@@ -42,5 +42,3 @@ function App() {
|
|||||||
</main>
|
</main>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export default App;
|
|
||||||
+3
-5
@@ -1,9 +1,7 @@
|
|||||||
function Loading() {
|
export default function Loading() {
|
||||||
return (
|
return (
|
||||||
<main className="container">
|
<main className="container center">
|
||||||
<p>loading</p>
|
<div className="loader"></div>
|
||||||
</main>
|
</main>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export default Loading;
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
function UpdateRequired() {
|
export default function UpdateRequired() {
|
||||||
return (
|
return (
|
||||||
<main className="container">
|
<main className="container">
|
||||||
<p>update required</p>
|
<p>update required</p>
|
||||||
@@ -6,5 +6,3 @@ function UpdateRequired() {
|
|||||||
</main>
|
</main>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export default UpdateRequired;
|
|
||||||
Reference in new issue
Block a user