From 744ee95af109e3e9190c07db56b022b0325dcf94 Mon Sep 17 00:00:00 2001 From: wearrrrr Date: Tue, 23 Jan 2024 01:19:51 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=89=20Added=20theming=20support,=20We?= =?UTF-8?q?=20are=20almost=20ready=20for=20release!?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/img/{purplewaves.svg => aluwaves.svg} | 30 +++++- public/img/darkwaves.svg | 67 ------------- public/img/macchiatowaves.svg | 96 +++++++++++++++++++ public/img/mochawaves.svg | 93 ++++++++++++++++++ src/components/Dropdown.astro | 9 +- src/components/Footer.astro | 21 ++-- src/components/GameItem.astro | 2 +- src/components/Header.astro | 6 +- src/components/Input.astro | 2 +- .../SettingsContent/CustomizationTab.astro | 11 +++ src/components/SettingsContent/ProxyTab.astro | 27 ++++++ src/components/SettingsTablist.astro | 74 ++++++++------ src/components/ThemeLoader.astro | 18 ++++ src/components/UVRegistrar.astro | 4 +- src/layouts/Layout.astro | 57 +++++++++-- src/pages/games.astro | 2 +- src/pages/settings.astro | 2 +- 17 files changed, 392 insertions(+), 129 deletions(-) rename public/img/{purplewaves.svg => aluwaves.svg} (63%) delete mode 100644 public/img/darkwaves.svg create mode 100644 public/img/macchiatowaves.svg create mode 100644 public/img/mochawaves.svg create mode 100644 src/components/SettingsContent/CustomizationTab.astro create mode 100644 src/components/SettingsContent/ProxyTab.astro create mode 100644 src/components/ThemeLoader.astro diff --git a/public/img/purplewaves.svg b/public/img/aluwaves.svg similarity index 63% rename from public/img/purplewaves.svg rename to public/img/aluwaves.svg index b702a55..5c077aa 100644 --- a/public/img/purplewaves.svg +++ b/public/img/aluwaves.svg @@ -1,6 +1,8 @@ - + + + + + + + + + \ No newline at end of file diff --git a/public/img/darkwaves.svg b/public/img/darkwaves.svg deleted file mode 100644 index 41c5e31..0000000 --- a/public/img/darkwaves.svg +++ /dev/null @@ -1,67 +0,0 @@ - \ No newline at end of file diff --git a/public/img/macchiatowaves.svg b/public/img/macchiatowaves.svg new file mode 100644 index 0000000..f8dfa54 --- /dev/null +++ b/public/img/macchiatowaves.svg @@ -0,0 +1,96 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/public/img/mochawaves.svg b/public/img/mochawaves.svg new file mode 100644 index 0000000..b4f78a4 --- /dev/null +++ b/public/img/mochawaves.svg @@ -0,0 +1,93 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/components/Dropdown.astro b/src/components/Dropdown.astro index 355006d..974312d 100644 --- a/src/components/Dropdown.astro +++ b/src/components/Dropdown.astro @@ -22,11 +22,12 @@ const { buttonNameDefault, dropdownList, id } = Astro.props; box-shadow: 4px 6px 15px 0px #0e0e0e; border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; + position: relative; } .dropdown-toggle { background-color: #2e2e2e; border: none; - color: white; + color: var(--text-color); padding: 12px 16px; font-size: 16px; cursor: pointer; @@ -46,13 +47,13 @@ const { buttonNameDefault, dropdownList, id } = Astro.props; border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; background-color: #212121; - position: fixed; - width: 140px; + position: absolute; + width: 100%; } .dropdown-item { border-bottom: 1px solid #4d4d4d; padding: 10px; - color: white; + color: var(--text-color); cursor: pointer; } .dropdown-item:nth-last-child(1) { diff --git a/src/components/Footer.astro b/src/components/Footer.astro index ced91c8..117c459 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -23,9 +23,18 @@