Start Working on UX
This commit is contained in:
parent
c032da94a4
commit
4e08f1c493
13 changed files with 5192 additions and 175 deletions
35
src/error.html
Normal file
35
src/error.html
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>AyuSkinner</title>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<script src="https://code.iconify.design/3/3.1.1/iconify.min.js"></script>
|
||||
<script>
|
||||
function retry() {
|
||||
fetch("https://ayuworks.xyz/ayuskinner/data.php").catch(err => {
|
||||
console.log(err);
|
||||
}).then(async (res) => {
|
||||
console.log(res);
|
||||
if (res == undefined || !res.ok) {
|
||||
document.querySelector(".text-red").innerText = "Failed.";
|
||||
} else {
|
||||
location.href = "index.html";
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body class="mocha bg-base text-text flex items-center justify-center h-screen">
|
||||
<div class="p-4 rounded-lg bg-crust">
|
||||
<h1 class="text-2xl">Failed to connect to server.</h1>
|
||||
<br>
|
||||
<button class="px-4 py-2 rounded-lg bg-mauve text-mantle transition duration-150 hover:bg-subtext0" onclick="retry();">Try Again</button>
|
||||
<p class="text-red"></p>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue