forge/resources/views/layouts/app.blade.php
Refringe a1504fe622
Global Search Structure
Reconfigured the global search to include more than one model. Refactored the search front-end to work inline instead of inside a model/popup.
2024-07-03 17:47:02 -04:00

60 lines
1.7 KiB
PHP

<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>{{ config('app.name', 'The Forge') }}</title>
<link rel="icon" href="data:image/x-icon;base64,AA">
<link href="//fonts.bunny.net" rel="preconnect">
<link href="//fonts.bunny.net/css?family=figtree:400,500,600&display=swap" rel="stylesheet">
<link href="{{ config('app.asset_url') }}" rel="dns-prefetch">
<script>
// Immediately set the theme to prevent a flash of the default theme when another is set.
// Must be located inline, in the head, and before any CSS is loaded.
(function () {
let theme = localStorage.getItem('forge-theme');
if (!theme) {
theme = window.matchMedia('(prefers-color-scheme: light)').matches ? 'light' : 'dark';
localStorage.setItem('forge-theme', theme);
}
document.documentElement.classList.add(theme);
})();
</script>
@vite(['resources/css/app.css', 'resources/js/app.js'])
@livewireStyles
</head>
<body class="font-sans antialiased">
<x-warning/>
<x-banner/>
<div class="min-h-screen bg-gray-100 dark:bg-gray-800">
@livewire('navigation-menu')
@if (isset($header))
<header class="bg-gray-50 dark:bg-gray-900 shadow dark:shadow-gray-950">
<div class="max-w-7xl mx-auto py-6 px-4 sm:px-6 lg:px-8">
{{ $header }}
</div>
</header>
@endif
<main class="pb-6 sm:py-12">
{{ $slot }}
</main>
</div>
<x-footer/>
@stack('modals')
@livewireScriptConfig
</body>
</html>