feat: fileserver + logging + styling
This commit is contained in:
@ -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 }}
|
||||
|
@ -1,4 +1,4 @@
|
||||
{{ define "footer" }}
|
||||
<footer><p>© 2025 HSP Guard</p></footer>
|
||||
<footer class="footer"><p>© 2025 HSP Guard</p></footer>
|
||||
{{ end }}
|
||||
|
||||
|
@ -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">
|
||||
©
|
||||
</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 }}
|
||||
|
Reference in New Issue
Block a user