1
0
Fork 0
forked from goffee/cup

start cookie session

This commit is contained in:
Zeni Kim 2024-09-30 09:17:24 -05:00
parent 017ef4c066
commit 1b6f3e6103
6 changed files with 299 additions and 55 deletions

View file

@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
{{template "head" "Goffee"}}
<body>
<main>
{{template "title" .TheTitle}}
</main>
<script src="/public/app.js"></script>
</body>
</html>

View file

@ -1,10 +1,14 @@
<!DOCTYPE html>
<html lang="en">
{{template "head" "Goffee"}}
<body>
{{template "title" .TheTitle}}
<div class="section">
Welcome to Goffee
</div>
</body>
{{template "head" "Goffee"}}
<body>
<main>
{{template "title" .TheTitle}}
<div class="section">
Welcome to Goffee
</div>
<img class="goffeelogo"src="/public/img/goffee.png" alt="Goffee logo" />
</main>
<script src="/public/app.js"></script>
</body>
</html>

View file

@ -0,0 +1,25 @@
<!DOCTYPE html>
<html lang="en">
{{template "head" "Goffee"}}
<body>
<main>
{{template "title" .TheTitle}}
<form method="POST" action="/signin">
<div>
<label for="email">Email:</label>
<input type="text" id="email" name="email" required>
</div>
<div>
<label for="password">Password:</label>
<input type="password" id="password" name="password" required>
</div>
<div>
<button type="submit" name="login">Login</button>
</div>
</form>
</main>
<script src="/public/app.js"></script>
</body>
</html>