From 8b4dfe0c0c6841566b42246285f315c3654f8698 Mon Sep 17 00:00:00 2001 From: Cody Cook Date: Mon, 13 May 2024 19:38:06 -0700 Subject: [PATCH] Dark mode and other color enhancements to match --- contact.php | 2 +- dj.php | 10 +++--- djs.php | 2 +- genre.php | 8 ++--- genres.php | 2 +- includes/footer.php | 7 +--- includes/globals.php | 4 +-- includes/header.php | 15 ++++---- includes/navbar.php | 82 ++++++++++++++++++++++++++++++++++++-------- index.php | 2 +- mix.php | 8 ++--- settings.php | 12 +++++++ 12 files changed, 108 insertions(+), 46 deletions(-) create mode 100644 settings.php diff --git a/contact.php b/contact.php index 78896e9..cb07d74 100644 --- a/contact.php +++ b/contact.php @@ -20,7 +20,7 @@ if ($_POST) { } } ?> -
+
diff --git a/dj.php b/dj.php index afea639..e7a94d6 100644 --- a/dj.php +++ b/dj.php @@ -18,7 +18,7 @@ if (isset($_GET['dj']) && $_GET['dj'] != "") { $title = $dj->get_name(); require_once 'includes/header.php'; ?> -
+
@@ -43,7 +43,7 @@ require_once 'includes/header.php';
-
+
avatar @@ -72,7 +72,7 @@ require_once 'includes/header.php'; if ($dj->get_socials() != []) { ?>
-
+
    get_socials(); @@ -87,7 +87,7 @@ require_once 'includes/header.php';
-
+

@@ -108,7 +108,7 @@ require_once 'includes/header.php';
-
+
get_dj_mixes(); $count = 0; diff --git a/djs.php b/djs.php index 200e717..8014c2f 100644 --- a/djs.php +++ b/djs.php @@ -9,7 +9,7 @@ $djs = new DJs($db); $title = $locale['djs']; require_once 'includes/header.php'; ?> -
+
diff --git a/genre.php b/genre.php index 6db7f47..0535235 100644 --- a/genre.php +++ b/genre.php @@ -22,7 +22,7 @@ $title = $genre->get_name(); require_once 'includes/header.php'; ?> -
+
@@ -46,7 +46,7 @@ require_once 'includes/header.php';
-
+
avatar @@ -65,7 +65,7 @@ require_once 'includes/header.php';
-
+

@@ -81,7 +81,7 @@ require_once 'includes/header.php';
-
+
get_mixes(); diff --git a/genres.php b/genres.php index 8b59d3b..0b16d9a 100644 --- a/genres.php +++ b/genres.php @@ -11,7 +11,7 @@ $genres = new Genres($db); $title = $locale['genres']; require_once 'includes/header.php'; ?> -
+
diff --git a/includes/footer.php b/includes/footer.php index 8120569..42e2cb1 100644 --- a/includes/footer.php +++ b/includes/footer.php @@ -1,15 +1,12 @@ -
+
-

-
Created using DJ Mix Hosting Software @@ -19,7 +16,5 @@
- - \ No newline at end of file diff --git a/includes/globals.php b/includes/globals.php index 19e6b06..6d7f4de 100644 --- a/includes/globals.php +++ b/includes/globals.php @@ -24,7 +24,7 @@ function card_output(int $count, mixed $dj, mixed $locale): void } echo '
'; echo '
'; - echo '
'; + echo '
'; echo '
' . $dj['name'] . '
'; echo '

' . $dj['count'] . ' '; if ($dj['count'] == 1) { @@ -98,7 +98,7 @@ function social_line($social, $value): string } return " -

  • +
  • $value

    diff --git a/includes/header.php b/includes/header.php index 3b8613a..f6f24da 100644 --- a/includes/header.php +++ b/includes/header.php @@ -1,10 +1,13 @@ - - + + } ?> <?php echo $title . " | " . $config['app']['name']; ?> @@ -59,10 +62,10 @@ - + - \ No newline at end of file + \ No newline at end of file diff --git a/includes/navbar.php b/includes/navbar.php index bfd94de..2487ce5 100644 --- a/includes/navbar.php +++ b/includes/navbar.php @@ -12,7 +12,7 @@ if (isset($_GET['lang']) && array_key_exists($_GET['lang'], $languages)) { $current_lang = $_SESSION['lang'] ?? $config['app']['locale']; ?> -
  • +
    + + + diff --git a/index.php b/index.php index 994f0c0..3815177 100644 --- a/index.php +++ b/index.php @@ -2,7 +2,7 @@ require_once 'includes/globals.php'; $title = $locale['home']; require_once 'includes/header.php'; ?> -
    +
    diff --git a/mix.php b/mix.php index 3b0fbbe..15f4f03 100644 --- a/mix.php +++ b/mix.php @@ -21,7 +21,7 @@ if (isset($_GET['mix']) && $_GET['mix'] != "") { require_once 'includes/header.php'; ?> -
    +
    @@ -46,7 +46,7 @@ require_once 'includes/header.php'; ?>
    -
    +
    get_img() != "") { echo "avatar"; @@ -62,7 +62,7 @@ require_once 'includes/header.php'; ?>
    -
    +
    is_download_only()) { echo "" . $locale['download'] . ""; @@ -85,7 +85,7 @@ require_once 'includes/header.php'; ?>
    -
    +

    diff --git a/settings.php b/settings.php new file mode 100644 index 0000000..c4db7a4 --- /dev/null +++ b/settings.php @@ -0,0 +1,12 @@ + $darkmode]); + exit; +}