Created
April 23, 2022 07:45
-
-
Save khannedy/24e581549bd902fc397e6962ea653ded to your computer and use it in GitHub Desktop.
Laravel Login & Todolist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Login Management</title> | |
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" | |
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous"> | |
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" | |
integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" | |
crossorigin="anonymous"></script> | |
</head> | |
<body> | |
<div class="container col-xl-10 col-xxl-8 px-4 py-5"> | |
<div class="row"> | |
<div class="alert alert-danger" role="alert"> | |
A simple primary alert—check it out! | |
</div> | |
</div> | |
<div class="row align-items-center g-lg-5 py-5"> | |
<div class="col-lg-7 text-center text-lg-start"> | |
<h1 class="display-4 fw-bold lh-1 mb-3">Login</h1> | |
<p class="col-lg-10 fs-4">by <a target="_blank" href="https://www.programmerzamannow.com/">Programmer Zaman | |
Now</a></p> | |
</div> | |
<div class="col-md-10 mx-auto col-lg-5"> | |
<form class="p-4 p-md-5 border rounded-3 bg-light" method="post" action="/login"> | |
<div class="form-floating mb-3"> | |
<input name="user" type="text" class="form-control" id="user" placeholder="id"> | |
<label for="user">User</label> | |
</div> | |
<div class="form-floating mb-3"> | |
<input name="password" type="password" class="form-control" id="password" placeholder="password"> | |
<label for="password">Password</label> | |
</div> | |
<button class="w-100 btn btn-lg btn-primary" type="submit">Sign In</button> | |
</form> | |
</div> | |
</div> | |
</div> | |
<div class="container col-xl-10 col-xxl-8 px-4 py-5"> | |
<div class="row"> | |
<div class="alert alert-danger" role="alert"> | |
A simple primary alert—check it out! | |
</div> | |
</div> | |
<div class="row"> | |
<form method="post" action="/logout"> | |
<button class="w-15 btn btn-lg btn-danger" type="submit">Sign Out</button> | |
</form> | |
</div> | |
<div class="row align-items-center g-lg-5 py-5"> | |
<div class="col-lg-7 text-center text-lg-start"> | |
<h1 class="display-4 fw-bold lh-1 mb-3">Todolist</h1> | |
<p class="col-lg-10 fs-4">by <a target="_blank" href="https://www.programmerzamannow.com/">Programmer Zaman | |
Now</a></p> | |
</div> | |
<div class="col-md-10 mx-auto col-lg-5"> | |
<form class="p-4 p-md-5 border rounded-3 bg-light" method="post" action="/todolist"> | |
<div class="form-floating mb-3"> | |
<input type="text" class="form-control" name="todo" placeholder="todo"> | |
<label for="todo">Todo</label> | |
</div> | |
<button class="w-100 btn btn-lg btn-primary" type="submit">Add Todo</button> | |
</form> | |
</div> | |
</div> | |
<div class="row align-items-right g-lg-5 py-5"> | |
<div class="mx-auto"> | |
<form id="deleteForm" method="post" style="display: none"> | |
</form> | |
<table class="table table-striped"> | |
<thead> | |
<tr> | |
<th scope="col">#</th> | |
<th scope="col">Todo</th> | |
<th scope="col"></th> | |
</tr> | |
</thead> | |
<tbody> | |
<tr> | |
<th scope="row">1</th> | |
<td>Belajar Laravel Dasar</td> | |
<td> | |
<button class="w-100 btn btn-lg btn-danger" type="submit">Remove</button> | |
</td> | |
</tr> | |
</tbody> | |
</table> | |
</div> | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment