From 828d2862ab347d63565b222948d5064ffad94dc3 Mon Sep 17 00:00:00 2001 From: SlimWesley Date: Wed, 3 Jan 2024 19:10:20 -0500 Subject: [PATCH] fixed error handling and animations --- generateWinPage.html | 79 +++++++++++++++++++++++++++++++++++++++----- index.html | 2 +- 2 files changed, 72 insertions(+), 9 deletions(-) diff --git a/generateWinPage.html b/generateWinPage.html index 53a205e..a70e8bf 100644 --- a/generateWinPage.html +++ b/generateWinPage.html @@ -35,6 +35,46 @@ margin: 20px; padding: 20px; box-sizing: border-box; + opacity: 0; + position: relative; + } + + #loading { + display: flex; + justify-content: center; + align-items: center; + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + background-color: #000; + z-index: 1000; + opacity: 1; + transition: opacity 0.5s ease-out; + } + + #loading.hidden { + opacity: 0; + pointer-events: none; + } + + #loading-spinner { + border: 8px solid #007bff; + border-top: 8px solid transparent; + border-radius: 50%; + width: 50px; + height: 50px; + animation: spin 1s linear infinite; + } + + @keyframes spin { + 0% { + transform: rotate(0deg); + } + 100% { + transform: rotate(360deg); + } } input { @@ -62,7 +102,7 @@ margin: 5px; width: 80%; } - + input[type=submit]{ text-align: center; font-family: Fortnite; @@ -77,7 +117,7 @@ background-color: #3498db; color: white; border: none; - border-radius: 10px; /* Rounded edges */ + border-radius: 10px; cursor: pointer; margin-top: 10px; width: 80%; @@ -104,11 +144,27 @@ opacity: 1; } } + + /* New keyframes for fade in */ + @keyframes fadeIn { + from { + opacity: 0; + } + to { + opacity: 1; + } + } + +
+
+
+
-

Enter your username:

+
+

Enter your Fortnite username:


@@ -124,6 +180,16 @@

Enter your username:

diff --git a/index.html b/index.html index 8172c09..8ae2a85 100644 --- a/index.html +++ b/index.html @@ -64,7 +64,7 @@
-

+

Error. Maybe there's a typo or your account is private.