From 9d368ef9cb04ab579b4ba8aa34d8394fcaac9389 Mon Sep 17 00:00:00 2001 From: Julian Prieber <60265788+JulianPrieber@users.noreply.github.com> Date: Thu, 12 May 2022 20:17:48 +0200 Subject: [PATCH] Switched to dark mode detection via CSS instead of JavaScript Switched to dark mode detection via CSS instead of JavaScript on users LittleLink pages and the home page. I decided to use this approach instead of the previous JavaScript version. This means that a manual switch to change between light and dark mode by user won't be added. --- resources/views/home.blade.php | 41 +---------------- resources/views/layouts/footer.blade.php | 8 +--- resources/views/littlelink.blade.php | 58 ++---------------------- 3 files changed, 8 insertions(+), 99 deletions(-) diff --git a/resources/views/home.blade.php b/resources/views/home.blade.php index 05d4e3b..3356b23 100755 --- a/resources/views/home.blade.php +++ b/resources/views/home.blade.php @@ -6,7 +6,7 @@ - + @@ -15,41 +15,6 @@ @else @endif - - - - - - @if ($color_scheme == 'dark') - - - @else - - @endif -
@@ -97,12 +62,10 @@ foreach($pages as $page) home_message; ?> - - + -and {{ $countButton - 3 }} other buttons ...
diff --git a/resources/views/layouts/footer.blade.php b/resources/views/layouts/footer.blade.php index f82410a..0885df7 100755 --- a/resources/views/layouts/footer.blade.php +++ b/resources/views/layouts/footer.blade.php @@ -8,11 +8,7 @@ @if(env('DISPLAY_CREDIT') === true) - +