40 lines
1.5 KiB
PHP
40 lines
1.5 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}" @class(['dark' => ($appearance ?? 'system') == 'dark'])>
|
|
|
|
<head>
|
|
<script>
|
|
(function() {
|
|
const appearance = @json($appearance ?? 'system');
|
|
|
|
if (appearance === 'dark' || (appearance === 'system' && window.matchMedia('(prefers-color-scheme: dark)')
|
|
.matches)) {
|
|
document.documentElement.classList.add('dark');
|
|
} else {
|
|
document.documentElement.classList.remove('dark');
|
|
}
|
|
})();
|
|
</script>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta name="description" content="{{ config('app.name', 'Laravel') }} - Progressive Web App">
|
|
<meta name="theme-color" content="#171717">
|
|
|
|
<link rel="icon" href="/favicon.ico" sizes="any">
|
|
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
|
|
<link rel="apple-touch-icon" href="/assets/apple-touch-icon-180x180.png" sizes="180x180">
|
|
<link rel="manifest" href="/build/manifest.webmanifest">
|
|
|
|
@fonts
|
|
|
|
@vite(['resources/css/app.css', 'resources/js/app.ts', "resources/js/pages/{$page['component']}.vue"])
|
|
<x-inertia::head>
|
|
<title>{{ config('app.name', 'Laravel') }}</title>
|
|
</x-inertia::head>
|
|
</head>
|
|
|
|
<body class="font-sans antialiased">
|
|
<x-inertia::app />
|
|
</body>
|
|
|
|
</html>
|