summaryrefslogtreecommitdiff
path: root/templates/register.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/register.html')
-rw-r--r--templates/register.html38
1 files changed, 38 insertions, 0 deletions
diff --git a/templates/register.html b/templates/register.html
new file mode 100644
index 0000000..d98ef4d
--- /dev/null
+++ b/templates/register.html
@@ -0,0 +1,38 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>Register</title>
+ <link rel="stylesheet" href="{{.Paths.Assets}}/css/style.css">
+</head>
+<body>
+ <div class="container form-container">
+ <h2>Create Account</h2>
+ <form id="register-form" action="{{.Paths.Register}}" method="post">
+ <div class="form-group">
+ <label for="username">Username</label>
+ <input type="text" id="username" name="username" required>
+ </div>
+ <div class="form-group">
+ <label for="password">Password</label>
+ <input type="password" id="password" name="password" required>
+ </div>
+ <div class="form-group">
+ <label for="confirm_password">Confirm Password</label>
+ <input type="password" id="confirm_password" name="confirm_password" required>
+ </div>
+ <button type="submit" class="btn-success">Register</button>
+ </form>
+ <p class="error">
+ {{if .Error}}
+ {{.Error}}
+ {{end}}
+ </p>
+ <div class="form-link">
+ <a href="{{.Paths.Login}}">Already have an account? Login</a>
+ </div>
+ </div>
+ <script src="{{.Paths.Assets}}/js/auth.js"></script>
+</body>
+</html>