feat: Begins views, login is currently not working.
This commit is contained in:
@@ -2,11 +2,17 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<script src="https://unpkg.com/htmx.org@2.0.4"></script>
|
||||
<link rel="stylesheet" href="css/main.css">
|
||||
<title>#(title)</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>#(title)</h1>
|
||||
<div id="body"
|
||||
hx-get="/body"
|
||||
hx-trigger="load"
|
||||
hx-swap="outerHTML">
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
||||
3
Resources/Views/logged-in.leaf
Normal file
3
Resources/Views/logged-in.leaf
Normal file
@@ -0,0 +1,3 @@
|
||||
<div id="body">
|
||||
<p>We're in!</p>
|
||||
</div>
|
||||
15
Resources/Views/login.leaf
Normal file
15
Resources/Views/login.leaf
Normal file
@@ -0,0 +1,15 @@
|
||||
<div id="body" class="container">
|
||||
<form class="login-form">
|
||||
<label for="email">Email</label>
|
||||
<input type="text" id="email" placeholder="Email" name="email" autocomplete="email" required autofocus>
|
||||
<br>
|
||||
<label for="password">Password</label>
|
||||
<input type="password" id="password" placeholder="Password" name="password" autocomplete="current-password" required>
|
||||
<br>
|
||||
<button hx-post="/login"
|
||||
hx-target="#body"
|
||||
hx-trigger="click">
|
||||
Sign In
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
Reference in New Issue
Block a user