forked from goffee/cup
start cookie session
This commit is contained in:
parent
017ef4c066
commit
1b6f3e6103
6 changed files with 299 additions and 55 deletions
13
storage/templates/app.html
Normal file
13
storage/templates/app.html
Normal 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>
|
||||
|
|
@ -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>
|
||||
25
storage/templates/login.html
Normal file
25
storage/templates/login.html
Normal 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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue