Added register page, email field, finished login + register UI, reduced the number of templates generated.

This commit is contained in:
2025-12-06 14:45:23 +01:00
parent e749ec772e
commit 5732fe17de
27 changed files with 889 additions and 284 deletions

View File

@@ -3,25 +3,25 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="/static/styles/stylesheet.css" rel="stylesheet">
<link rel="stylesheet" href="https://rsms.me/inter/inter.css">
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
<link rel="manifest" href="/static/site.webmanifest" />
{{ template "meta" . }}
{{ template "meta.tmpl" . }}
</head>
<body class="bg-gray-100">
{{ template "navbar" . }}
<body>
<header>
{{ template "navbar.tmpl" . }}
</header>
<main>
{{ if eq .Page "login" }}
{{ template "login" . }}
{{ template "login.tmpl" . }}
{{ else if eq .Page "home" }}
{{ template "home" . }}
{{ template "home.tmpl" . }}
{{ else if eq .Page "register" }}
{{ template "register.tmpl" . }}
{{ end }}
</main>
<footer>
{{ template "footer" . }}
{{ template "footer.tmpl" . }}
</footer>
</body>
</html>