Use cookies for dark mode

(also reverts most back-end changes from previous commit)
This commit is contained in:
2018-08-06 16:02:42 +02:00
parent 9fd6890667
commit a63e605a15
11 changed files with 98 additions and 11 deletions
+10 -1
View File
@@ -3,7 +3,16 @@
<nav class="navbar navbar-expand-md navbar-{{ dark_mode() ? 'dark' : 'light' }} page-navbar">
<div class="container">
<a class="navbar-brand" href="{{ route('dash') }}" aria-label="Go to Dashboard">
<img src="/images/logo{{ dark_mode() ? '-dark' : '' }}.svg" aria-hidden=true alt="LOGO" height="32px" style="margin: -10px 0" class="mr-2">{{--
<img
id="navbar-logo"
src="/images/logo{{ dark_mode() ? '-dark' : '' }}.svg"
src-light="/images/logo.svg"
src-dark="/images/logo-dark.svg"
aria-hidden=true
alt="LOGO"
height="32px"
style="margin: -10px 0"
class="mr-2">{{--
--}}datatable.directory
</a>