Dark theme maintenance page, theme Blade @selection directive.

This commit is contained in:
Graphictoria 2022-04-21 22:46:01 -04:00
parent 0e4cec86cc
commit 9de81c1281
3 changed files with 15 additions and 6 deletions

View File

@ -4,7 +4,7 @@
$authenticated = \App\Helpers\AuthHelper::IsAuthenticated(request()); $authenticated = \App\Helpers\AuthHelper::IsAuthenticated(request());
@endphp @endphp
<!DOCTYPE html> <!DOCTYPE html>
<html class="gtoria-light" lang="{{ str_replace('_', '-', app()->getLocale()) }}"> <html class="gtoria-{{ View::hasSection('theme') ? View::getSection('theme') : 'light' }}" lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head> <head>
<title>Graphictoria{{ View::hasSection('title') ? ' | ' . View::getSection('title') : '' }}</title> <title>Graphictoria{{ View::hasSection('title') ? ' | ' . View::getSection('title') : '' }}</title>
<meta charset="utf-8" /> <meta charset="utf-8" />

View File

@ -27,10 +27,14 @@
<img src="{{ asset('/images/logo.png') }}" alt="Graphictoria" width="43" height="43" draggable="false"/> <img src="{{ asset('/images/logo.png') }}" alt="Graphictoria" width="43" height="43" draggable="false"/>
</i> </i>
@endlive @endlive
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#graphictoria-nav" aria-controls="graphictoria-nav" aria-expanded="false" aria-label="Toggle navigation"> @live
<span class="navbar-toggler-icon"></span> <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#graphictoria-nav" aria-controls="graphictoria-nav" aria-expanded="false" aria-label="Toggle navigation">
</button> <span class="navbar-toggler-icon"></span>
<div class="collapse navbar-collapse" id="graphictoria-nav"> </button>
@endlive
@live
<div class="collapse navbar-collapse" id="graphictoria-nav">
@endlive
<ul class="navbar-nav me-auto"> <ul class="navbar-nav me-auto">
@live @live
@foreach($routes as $route) @foreach($routes as $route)
@ -81,7 +85,10 @@
<a class="btn btn-success" href="/login">Login / Sign up</a> <a class="btn btn-success" href="/login">Login / Sign up</a>
@endif @endif
@endlive @endlive
</div> @live
{{-- graphictoria-nav --}}
</div>
@endlive
</div> </div>
</div> </div>
<div class="graphictoria-nav-margin"></div> <div class="graphictoria-nav-margin"></div>

View File

@ -8,6 +8,8 @@ $buttons = str_split('Graphictoria')
@section('title', 'Maintenance') @section('title', 'Maintenance')
@section('theme', 'dark')
@section('page-specific') @section('page-specific')
<script src="{{ mix('js/pages/maintenance.js') }}"></script> <script src="{{ mix('js/pages/maintenance.js') }}"></script>
@endsection @endsection