From 9ded250b8eecd95695385a9eb051baad746d408d Mon Sep 17 00:00:00 2001 From: Thedogecraft Date: Sat, 28 Sep 2024 18:05:26 -0700 Subject: [PATCH] Fixed bugs --- public/css/main.css | 33 ++++++++++++++++++++++++++++++--- public/css/themes.css | 6 +++--- public/views/apps.ejs | 4 ++++ public/views/games.ejs | 6 +++--- public/views/settings.ejs | 2 ++ 5 files changed, 42 insertions(+), 9 deletions(-) diff --git a/public/css/main.css b/public/css/main.css index d7fea11..6b1d777 100644 --- a/public/css/main.css +++ b/public/css/main.css @@ -11,8 +11,8 @@ box-sizing: border-box; font-family: "Poppins", sans-serif; font-weight: 600; + transition: 0.2s; text-decoration: none; - /* list-style: none; */ color: var(--textcolor); } :root { @@ -35,6 +35,7 @@ body { position: fixed; bottom: 0; } +/* Base styles */ .nav { display: flex; align-items: center; @@ -50,16 +51,42 @@ body { height: 4.2rem; border-radius: var(--rounded); } + .lsans { font-family: Lunaar Sans; font-weight: 500; } + .navlinks { - gap: 15px; display: flex; align-items: center; + gap: 15px; margin-left: auto; } + +/* Mobile styles */ +@media (max-width: 768px) { + .nav { + flex-direction: column; + align-items: flex-start; + padding: 10px; + margin: 10px; + height: auto; + } + + .navlinks { + flex-direction: column; + gap: 10px; + width: 100%; + } + + .navlinks a { + padding: 10px; + width: 100%; + text-align: center; + } +} + button { display: flex; flex-direction: row; @@ -255,7 +282,7 @@ button .icon { } #particles-js { - position: absolute; + position: fixed; top: 0; left: 0; width: 100%; diff --git a/public/css/themes.css b/public/css/themes.css index ab7f148..f3cc5fc 100644 --- a/public/css/themes.css +++ b/public/css/themes.css @@ -197,7 +197,7 @@ body[theme="candy"] { --bg: #bdb2ff; --textcolor: #fefcfb; --button: #ffc6ff; - --alt: rgb(255, 255, 255); + --alt: rgb(218, 151, 250); --border: var(--button); } body[theme="yellow"] { @@ -213,7 +213,7 @@ body[theme="yellow"] { body[theme="yellow"] .btn { border-radius: 0px; } -body[theme="yellow"] #tsparticles { +body[theme="yellow"] #particles-js { filter: invert(100%); } @@ -223,7 +223,7 @@ body[theme="light"] { --alt: #222121; --button: #000; } -body[theme="light"] #tsparticles { +body[theme="light"] #particles-js { filter: invert(100%); } body[theme="light"] input[type="text"], diff --git a/public/views/apps.ejs b/public/views/apps.ejs index a90ff30..2ea032e 100644 --- a/public/views/apps.ejs +++ b/public/views/apps.ejs @@ -45,6 +45,10 @@ function displayApps(apps) { appsContainer.innerHTML = ""; + if (apps.length === 0) { + appsContainer.innerHTML = "

No apps found

"; + } + apps.forEach((app) => { const appDiv = document.createElement("div"); appDiv.className = "app"; diff --git a/public/views/games.ejs b/public/views/games.ejs index 6a3d9a4..ebee247 100644 --- a/public/views/games.ejs +++ b/public/views/games.ejs @@ -12,7 +12,7 @@ window.gamesData = games; displayGames(games); - updateSearchBarPlaceholder(games.length); // Update placeholder with total games + updateSearchBarPlaceholder(games.length); } catch (error) { console.error("Error fetching games:", error); } @@ -31,7 +31,7 @@ const gameDiv = document.createElement("div"); gameDiv.className = "game"; gameDiv.innerHTML = ` - ${game.name} + ${game.name}

${game.name}

`; @@ -49,7 +49,7 @@ ); displayGames(filteredGames); - updateSearchBarPlaceholder(filteredGames.length); // Update placeholder with filtered games count + updateSearchBarPlaceholder(filteredGames.length); } function updateSearchBarPlaceholder(count) { diff --git a/public/views/settings.ejs b/public/views/settings.ejs index 4f84449..a319b96 100644 --- a/public/views/settings.ejs +++ b/public/views/settings.ejs @@ -73,11 +73,13 @@ + +