34 lines
1.3 KiB
PHP
34 lines
1.3 KiB
PHP
<!DOCTYPE html>
|
|
<html x-cloak lang="{{ str_replace('_', '-', app()->getLocale()) }}"
|
|
x-data="{
|
|
darkMode: localStorage.getItem('darkMode') ||
|
|
localStorage.setItem('darkMode', 'system')
|
|
}"
|
|
x-init="$watch('darkMode', val => localStorage.setItem('darkMode', val))"
|
|
x-bind:class="{'dark': darkMode === 'dark' || (darkMode === 'system' && window.matchMedia('(prefers-color-scheme: dark)').matches)}"
|
|
>
|
|
<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', 'Laravel') }}</title>
|
|
|
|
<!-- Scripts -->
|
|
@vite(['resources/css/app.css', 'resources/js/app.js'])
|
|
</head>
|
|
<body class="antialiased bg-nexi-primary dark:bg-nexi-primary-dark font-sans text-nexi-black transition-colors duration-300">
|
|
<div class="min-h-screen flex flex-col sm:justify-center items-center pt-6 sm:pt-0 ">
|
|
<a href="{{ route('home') }}" class="mt-24" wire:navigate>
|
|
<img class="h-24 w-auto rounded" src="{{ asset('images/PriceyBot.webp') }}" alt="all hail pricey bot">
|
|
</a>
|
|
|
|
@if (Route::has('login'))
|
|
<livewire:guest.navigation />
|
|
@endif
|
|
|
|
{{ $slot }}
|
|
</div>
|
|
</body>
|
|
</html>
|