feat: fileserver + logging + styling

This commit is contained in:
2025-05-18 17:00:07 +02:00
parent f382ccc008
commit fa30f66b6b
8 changed files with 160 additions and 31 deletions

View File

@ -4,15 +4,18 @@
<head>
<meta charset="UTF-8" />
<title>{{ .Title }}</title>
<link rel="stylesheet" href="/static/css/styles.css" >
</head>
<body>
<header>
<h1>{{ .Title }}</h1>
</header>
<main>
{{ block "content" . }}{{ end }}
</main>
{{ template "footer" . }}
<!-- <header> -->
<!-- <h1>{{ .Title }}</h1> -->
<!-- </header> -->
<div class="container">
<main class="modal-box">
{{ block "content" . }}{{ end }}
</main>
{{ template "footer" . }}
</div>
</body>
</html>
{{ end }}

View File

@ -1,4 +1,4 @@
{{ define "footer" }}
<footer><p>© 2025 HSP Guard</p></footer>
<footer class="footer"><p>&copy; 2025 HSP Guard</p></footer>
{{ end }}

View File

@ -1,21 +1,31 @@
{{ define "content" }}
<form method="POST" action="/api/v1/register">
<label for="email">
Full Name:
<input type="text" name="full_name" required>
</label>
<label for="email">
Email:
<input type="email" name="email" required>
</label>
<br>
<label for="email">
Password:
<input type="password" name="password" required>
</label>
<br>
<button type="submit">
Register
</button>
</form>
<div class="icon-wrapper">
<img src="/static/icon.png" alt="icon" class="icon">
</div>
<h1 class="modal-title">
Create an account to enter homelab
</h1>
<form method="POST" action="/api/v1/register">
<div class="input-group">
<div class="input-icon">
&copy;
</div>
<input class="input-field" type="text" name="full_name" placeholder="Full Name" required>
</div>
<div class="input-group">
<div class="input-icon">
@
</div>
<input class="input-field" type="email" name="email" placeholder="Email" required>
</div>
<div class="input-group">
<div class="input-icon">
P
</div>
<input class="input-field" type="password" name="password" placeholder="Password" required>
</div>
<button type="submit">
Register
</button>
</form>
{{ end }}