started working on user profiles

This commit is contained in:
2026-01-29 20:20:36 -08:00
parent 91c6bea0c6
commit 4fa797d36a
5 changed files with 198 additions and 9 deletions

View File

@@ -0,0 +1,20 @@
<!doctype html>
<html>
<head>
<link rel="stylesheet" href="static/style.css" type="text/css">
<title>
muzi | Create Account
</title>
</head>
<body>
<div class=login-form>
<form action="/createaccountsubmit" method="POST">
<label for="uname">Username:</label>
<input type="text" id="uname" name="uname"> <br> <br>
<label for="pass">Password:</label>
<input type="text" id="pass" name="pass"> <br> <br>
<input type="submit" value="Create Account">
</form>
</div>
</body>
</html>

View File

@@ -3,7 +3,7 @@
<head>
<link rel="stylesheet" href="static/style.css" type="text/css">
<title>
muzi | history
muzi | History
</title>
</head>
<body>

20
templates/login.gohtml Normal file
View File

@@ -0,0 +1,20 @@
<!doctype html>
<html>
<head>
<link rel="stylesheet" href="static/style.css" type="text/css">
<title>
muzi | Login
</title>
</head>
<body>
<div class=login-form>
<form action="/loginsubmit" method="POST">
<label for="uname">Username:</label>
<input type="text" id="uname" name="uname"> <br> <br>
<label for="pass">Password:</label>
<input type="text" id="pass" name="pass"> <br> <br>
<input type="submit" value="Login">
</form>
</div>
</body>
</html>

12
templates/profile.gohtml Normal file
View File

@@ -0,0 +1,12 @@
<!doctype html>
<html>
<head>
<link rel="stylesheet" href="static/style.css" type="text/css">
<title>
muzi | {{.Username}}'s Profile
</title>
</head>
<body>
{{.Bio}}
</body>
</html>