diff --git a/src/config/backpack/theme-tabler.php b/src/config/backpack/theme-tabler.php index 028f326..ba9a358 100644 --- a/src/config/backpack/theme-tabler.php +++ b/src/config/backpack/theme-tabler.php @@ -28,7 +28,7 @@ * Pick a login page layout. * Possible values: default, illustration, cover */ - 'auth_layout' => 'default', // default, illustration, cover + 'auth_layout' => 'cover', // default, illustration, cover /** * Here you can easily load your own extra css styles. diff --git a/src/public/lib/css/overrides.css b/src/public/lib/css/overrides.css index a8ad5df..79a7c32 100644 --- a/src/public/lib/css/overrides.css +++ b/src/public/lib/css/overrides.css @@ -41,18 +41,25 @@ body { background: #2a5255; } -.hide { - display: none; -} - -.loading { +.loading-container { + background: rgba(0, 0, 0, 0.5); + z-index: 9999; position: fixed; top: 0; - right: 0; - bottom: 0; left: 0; - background: rgba(0, 0, 0, 0.5); - z-index: 9999; + width: 100%; + height: 100%; + display: flex; + align-items: center; + justify-content: center; +} + +.loading { + text-align: center; +} + +.hide { + display: none; } .footer { diff --git a/src/public/lib/images/loading.svg b/src/public/lib/images/loading.svg new file mode 100644 index 0000000..3720a3a --- /dev/null +++ b/src/public/lib/images/loading.svg @@ -0,0 +1,6 @@ + + \ No newline at end of file diff --git a/src/public/lib/js/redbeard.js b/src/public/lib/js/redbeard.js index 258dedc..cf88ac0 100644 --- a/src/public/lib/js/redbeard.js +++ b/src/public/lib/js/redbeard.js @@ -96,7 +96,7 @@ $(document).ready(function () { // On click event for the element with id "list-runways" $("#list-runways").click(function (t) { t.preventDefault(); // Prevent default action of the click event - $(".loading").show(); // Show the loading element + $("#loading").show(); // Show the loading element icao = $("#icao").val(); // Get the value of the input with id "icao" // If icao is empty @@ -106,7 +106,7 @@ $(document).ready(function () { ErrorModal("ICAO cannot be empty.", "runway-modal") ); $("#runway-modal").modal("show"); // Show the modal with id "runway-modal" - $(".loading").hide(); // Hide the loading element + $("#loading").hide(); // Hide the loading element return; // Exit the function } @@ -117,7 +117,7 @@ $(document).ready(function () { // Show an error modal with the received error message $("#runway-output").html(ErrorModal(t.message, "runway-modal")); $("#runway-modal").modal("show"); // Show the modal with id "runway-modal" - $(".loading").hide(); // Hide the loading element + $("#loading").hide(); // Hide the loading element return; // Exit the function } @@ -128,11 +128,11 @@ $(document).ready(function () {
- | - | - | - | + | + | + | + | + |
---|