]> _ Git - fluidbook-toolbox.git/commitdiff
wip #5851 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 1 May 2023 09:34:02 +0000 (11:34 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 1 May 2023 09:34:02 +0000 (11:34 +0200)
.env.dev
.env.prod
resources/views/vendor/backpack/base/inc/head.blade.php [new file with mode: 0644]
resources/views/vendor/backpack/base/layouts/plain.blade.php [new file with mode: 0644]
resources/views/vendor/backpack/base/layouts/top_left.blade.php

index 3fe99665939c7ccaaf1e209b3205b9795fac1635..36f6aa77196534ffea32ed06b3ec0cd7d8ce2183 100644 (file)
--- a/.env.dev
+++ b/.env.dev
@@ -5,6 +5,7 @@ APP_DEBUG=true
 DEBUGBAR_ENABLED=false
 
 APP_URL=https://dev.toolbox.fluidbook.com
+HEADER_COLOR="#8C0025"
 
 LOG_CHANNEL=stack
 APP_LOG=daily
index 10f269c9cd78242add565d39ba4e130f0561217e..0d9e336ce979e8a3af82240d7c38d576e9b214a7 100644 (file)
--- a/.env.prod
+++ b/.env.prod
@@ -5,6 +5,7 @@ APP_DEBUG=true
 DEBUGBAR_ENABLED=false
 
 APP_URL=https://toolbox.fluidbook.com
+HEADER_COLOR="#263340"
 
 LOG_CHANNEL=stack
 APP_LOG=daily
diff --git a/resources/views/vendor/backpack/base/inc/head.blade.php b/resources/views/vendor/backpack/base/inc/head.blade.php
new file mode 100644 (file)
index 0000000..b9e975c
--- /dev/null
@@ -0,0 +1,33 @@
+    <meta charset="utf-8">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
+    @if (config('backpack.base.meta_robots_content'))<meta name="robots" content="{{ config('backpack.base.meta_robots_content', 'noindex, nofollow') }}"> @endif
+
+    <meta name="csrf-token" content="{{ csrf_token() }}" /> {{-- Encrypted CSRF token for Laravel, in order for Ajax requests to work --}}
+    <title>{{ isset($title) ? $title.' :: '.config('backpack.base.project_name') : config('backpack.base.project_name') }}</title>
+    <style>.app-header{background-color: {{env('HEADER_COLOR')}} !important;}</style>
+
+    @yield('before_styles')
+    @stack('before_styles')
+
+    @foreach(config('backpack.base.styles', []) as $path)
+        <link rel="stylesheet" type="text/css" href="{{ asset($path).'?v='.config('backpack.base.cachebusting_string') }}">
+    @endforeach
+
+    @foreach(config('backpack.base.mix_styles', []) as $path => $manifest)
+        <link rel="stylesheet" type="text/css" href="{{ mix($path, $manifest) }}">
+    @endforeach
+
+    @if(!empty(config('backpack.base.vite_styles', [])))
+        @vite(config('backpack.base.vite_styles', []))
+    @endif
+
+    @yield('after_styles')
+    @stack('after_styles')
+
+    {{-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --}}
+    {{-- WARNING: Respond.js doesn't work if you view the page via file:// --}}
+    <!--[if lt IE 9]>
+    <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
+    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
+    <![endif]-->
diff --git a/resources/views/vendor/backpack/base/layouts/plain.blade.php b/resources/views/vendor/backpack/base/layouts/plain.blade.php
new file mode 100644 (file)
index 0000000..f05906d
--- /dev/null
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<html lang="{{ app()->getLocale() }}" dir="{{ config('backpack.base.html_direction') }}">
+<head>
+    @include(backpack_view('inc.head'))
+</head>
+<body class="app flex-row align-items-center">
+
+  @yield('header')
+
+  <div class="container">
+  @yield('content')
+  </div>
+
+  <footer class="app-footer sticky-footer">
+    @include('backpack::inc.footer')
+  </footer>
+
+  @yield('before_scripts')
+  @stack('before_scripts')
+
+  @include(backpack_view('inc.scripts'))
+
+  @yield('after_scripts')
+  @stack('after_scripts')
+
+</body>
+</html>
index da40adad388b157ba681951fa06c70e8ca786430..9675163bcd001af550037798dc98810c21ac8cf5 100644 (file)
@@ -37,7 +37,7 @@
 
     </main>
 
-</div><!-- ./app-body -->
+  </div>{{-- ./app-body --}}
 
 <footer class="{{ config('backpack.base.footer_class') }}">
     @include(backpack_view('inc.footer'))