blob: 9f8b6a614e96a9ebd44f86ce26bccb8f937e83a5 (
plain)
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
49
50
51
52
53
|
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="description" content="Belthelzioquor website, a friendly server">
<meta name="keywords" content="HTML, CSS, JavaScript">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="Thomas Grothe">
<meta name="robots" content="index, follow">
<link rel="stylesheet" href="/css/style.css">
<!--<link rel="stylesheet" type="text/css" href="static/reset.css">-->
<meta name="htmx-config" content='{"selfRequestsOnly":false}'>
<script src="https://unpkg.com/htmx.org@2.0.1"></script>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script src = "https://code.jquery.com/jquery-3.7.1.min.js"></script>
<script type = "text/javascript">
//let env = {{ Js::from(App\Http\Controllers\SiteController::env()) }};
</script>
<!--<base href = "http://192.168.4.32:9002/">-->
<!--<base href = "http://localhost:9002/">-->
<title>Belthelziquor</title>
@yield('head')
</head>
<header>
<a href = "/" class = "form-button" style = "marin-right: auto; margin-left: 1rem;">
Home
</a>
@yield('nav')
<a href = "/settings" /><small>Settings, Info</small></a><!-- auth-agnostic settings -->
<div id = "database-info">Checking connection to database...</div>
@if (Auth::user() == null)
<a href="{{ route('login') }}" class = "form-button" style="margin-left: auto; margin-right: 1rem;">
{{ __('Log In') }}
</a>
@else
<small style = "margin-left: auto; margin-right: 1rem;">User: {{ Auth::user()->name }}</small>
<form method="POST" action="{{ route('logout') }}" style="margin-left: auto;">
@csrf
<button type="submit" class = "form-button">
{{ __('Log Out') }}
</button>
</form>
@endif
</header>
<body>
@yield('body')
</body>
<footer>
<p>© 2024 Thomas Grothe</p>
</footer>
</html>
|