mirror of
https://github.com/perstarkse/minne.git
synced 2026-04-21 08:21:25 +02:00
feat signout and reactivity
This commit is contained in:
@@ -15,8 +15,7 @@
|
||||
<label class="label">
|
||||
<span class="label-text">Email</span>
|
||||
</label>
|
||||
<input type="email" name="email" placeholder="Enter your email" class="input input-bordered w-full" required
|
||||
pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,}$" />
|
||||
<input type="email" name="email" placeholder="Enter your email" class="input input-bordered w-full" required />
|
||||
</div>
|
||||
|
||||
<div class="form-control">
|
||||
|
||||
@@ -5,21 +5,17 @@
|
||||
<body class="min-h-screen">
|
||||
<nav class="navbar bg-base-200">
|
||||
<div class="flex-1">
|
||||
<a class="btn text-xl border-transparent btn-outline btn-primary" href="/">minnet</a>
|
||||
<a class="btn text-xl border-transparent btn-outline btn-primary" href="/">Minne</a>
|
||||
</div>
|
||||
<div class="flex-none">
|
||||
<ul class="menu menu-horizontal px-1">
|
||||
{% if user %}
|
||||
<li><a hx-boost="true" href="/account">Account</a></li>
|
||||
<li><a hx-boost="true" href="/signout">Sign out</a></li>
|
||||
{% else %}
|
||||
<li><a hx-boost="true" href="/signin">Login</a></li>
|
||||
<li><a hx-boost="true" href="/signup">Sign up</a></li>
|
||||
<li>
|
||||
<details>
|
||||
<summary>Parent</summary>
|
||||
<ul class="bg-base-100 rounded-t-none p-2">
|
||||
<li><a>Link 1</a></li>
|
||||
<li><a>Link 2</a></li>
|
||||
</ul>
|
||||
</details>
|
||||
</li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
@@ -4,10 +4,11 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{% block title %}minnet{% endblock %}</title>
|
||||
<title>{% block title %}Minne{% endblock %}</title>
|
||||
<script src="assets/htmx.min.js"></script>
|
||||
<link rel="stylesheet" href="assets/style.css">
|
||||
<link rel="manifest" href="/assets/manifest.json">
|
||||
|
||||
<!-- Optional but recommended for iOS support -->
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<link rel="apple-touch-icon" href="/assets/icons/icon-192x192.png">
|
||||
|
||||
Reference in New Issue
Block a user