forked from alexjustesen/speedtest-tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.blade.php
More file actions
48 lines (39 loc) · 1.48 KB
/
app.blade.php
File metadata and controls
48 lines (39 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}" class="min-h-dvh">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ $title }} - {{ config('app.name') }}</title>
<link rel="icon" type="image/x-icon" href="{{ asset('favicon.ico') }}">
{{-- Fonts --}}
<link href="{{ asset('fonts/filament/filament/inter/index.css') }}" rel="stylesheet" />
{{-- Styles --}}
<style>
[x-cloak] {
display: none !important;
}
</style>
@vite('resources/css/app.css')
@filamentStyles
<script>
const theme = localStorage.getItem('theme') ?? 'system'
if (
theme === 'dark' ||
(theme === 'system' &&
window.matchMedia('(prefers-color-scheme: dark)')
.matches)
) {
document.documentElement.classList.add('dark')
}
</script>
</head>
<body class="antialiased min-h-dvh bg-gray-50 dark:bg-gray-950 text-gray-950 dark:text-white">
<main class="p-4 sm:p-6 lg:p-8 mx-auto max-w-{{ config('speedtest.content_width') }} space-y-4 sm:space-y-8">
@include('layouts.partials.header')
{{ $slot }}
@include('layouts.partials.footer')
</main>
{{-- Scripts --}}
@filamentScripts
</body>
</html>