From d36902a8659899f934608774fcc426046e71d8cb Mon Sep 17 00:00:00 2001 From: Jaydin_MacBook <74679492+TheManWhoLikesToCode@users.noreply.github.com> Date: Mon, 22 Jan 2024 10:23:08 -0500 Subject: [PATCH] Added Loading Screen Added loading screen by adding forgotten html and center the text by switching from block to flex --- frontend/static/default.css | 2 +- frontend/static/scripts.js | 4 +-- frontend/templates/userPage.html | 52 +++++++++++++++++++------------- 3 files changed, 33 insertions(+), 25 deletions(-) diff --git a/frontend/static/default.css b/frontend/static/default.css index 3ea7863..c57876f 100755 --- a/frontend/static/default.css +++ b/frontend/static/default.css @@ -10384,4 +10384,4 @@ footer h5 { .switcher-wrap { display: none; } -} +} \ No newline at end of file diff --git a/frontend/static/scripts.js b/frontend/static/scripts.js index 8e1b414..e3ed764 100755 --- a/frontend/static/scripts.js +++ b/frontend/static/scripts.js @@ -91,7 +91,7 @@ const app = (() => { const showLoadingScreen = () => { const loadingScreen = document.getElementById("loading-screen"); if (loadingScreen) { - loadingScreen.style.display = "block"; + loadingScreen.style.display = "flex"; } }; @@ -128,8 +128,6 @@ const app = (() => { const password = document.getElementById("password").value; const responseContainer = document.getElementById("response-container"); - showLoadingScreen(); - try { const response = await fetchWithErrorHandler(`${apiUrl}/login`, { method: "POST", diff --git a/frontend/templates/userPage.html b/frontend/templates/userPage.html index 0a081a4..14d05cd 100644 --- a/frontend/templates/userPage.html +++ b/frontend/templates/userPage.html @@ -48,31 +48,30 @@ - - -
-
-
-
-

- Archive with Archive-Me -

-

- Utilize Archive-Me to manage and organize your digital resources effectively. -

- -
-

You are Logged In

-

Access and manage your archived courses and resources with ease.

-
- - + +
+
+
+
+

+ Archive with Archive-Me +

+

+ Utilize Archive-Me to manage and organize your digital resources effectively. +

+ +
+

You are Logged In

+

Access and manage your archived courses and resources with ease.

+
+ + +
-
-
+ @@ -101,6 +100,17 @@

Directory Listing for /path/to/directory

+ + +