[204464d] | 1 | <!DOCTYPE html>
|
---|
| 2 | <html lang="en">
|
---|
| 3 | <head>
|
---|
| 4 | <meta charset="UTF-8">
|
---|
[8bcd64c] | 5 | <title>Login</title>
|
---|
[204464d] | 6 |
|
---|
| 7 | <!-- Font Awesome -->
|
---|
| 8 | <link
|
---|
| 9 | href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css"
|
---|
| 10 | rel="stylesheet"
|
---|
| 11 | />
|
---|
| 12 | <!-- Google Fonts -->
|
---|
| 13 | <link
|
---|
| 14 | href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap"
|
---|
| 15 | rel="stylesheet"
|
---|
| 16 | />
|
---|
| 17 | <!-- MDB -->
|
---|
| 18 | <link
|
---|
| 19 | href="https://cdnjs.cloudflare.com/ajax/libs/mdb-ui-kit/5.0.0/mdb.min.css"
|
---|
| 20 | rel="stylesheet"
|
---|
| 21 | />
|
---|
| 22 | <link rel="stylesheet" href="css/login.css">
|
---|
| 23 |
|
---|
| 24 | </head>
|
---|
| 25 | <div class="px-4 py-5 px-md-5 text-center text-lg-start" style="background-color: hsl(0, 0%, 96%); height: 100vh;">
|
---|
| 26 | <div class="container">
|
---|
| 27 | <div class="row gx-lg-5 align-items-center">
|
---|
| 28 | <div class="col-lg-6 mb-5 mb-lg-0">
|
---|
| 29 | <h1 class="my-5 display-3 fw-bold ls-tight">
|
---|
| 30 | This city's best offers <br/>
|
---|
| 31 | <span class="text-primary">available to you</span>
|
---|
| 32 | </h1>
|
---|
| 33 | <p style="color: hsl(217, 10%, 50.8%)">
|
---|
| 34 | If you are looking for the best deals for the lowest price,
|
---|
| 35 | then Schedlr is the platform for you.
|
---|
| 36 | </p>
|
---|
| 37 | </div>
|
---|
| 38 |
|
---|
| 39 | <div class="col-lg-6 mb-5 mb-lg-0">
|
---|
| 40 | <div class="card">
|
---|
| 41 | <div class="card-body py-5 px-md-5">
|
---|
[763289e] | 42 | <form action="#" th:action="@{/login}" th:object="${stakeholder}" method="post">
|
---|
[204464d] | 43 | <!-- Email input -->
|
---|
| 44 | <div class="form-outline mb-4">
|
---|
[763289e] | 45 | <input type="text" id="username" class="form-control" required th:field="*{username}" />
|
---|
| 46 | <label class="form-label" for="username">Username</label>
|
---|
[204464d] | 47 | </div>
|
---|
| 48 |
|
---|
| 49 | <!-- Password input -->
|
---|
| 50 | <div class="form-outline mb-4">
|
---|
[763289e] | 51 | <input type="password" id="password" class="form-control" th:field="*{password}" />
|
---|
[204464d] | 52 | <label class="form-label" for="password">Password</label>
|
---|
| 53 | </div>
|
---|
| 54 |
|
---|
| 55 | <!-- Submit button -->
|
---|
[8bcd64c] | 56 | <button id="login" type="submit" class="btn btn-primary btn-block mb-4">
|
---|
[204464d] | 57 | Login
|
---|
| 58 | </button>
|
---|
[8bcd64c] | 59 | <div th:if="${param.error}">
|
---|
| 60 | <div th:if="${param.error.contains('notApproved')}" class="alert alert-danger">
|
---|
| 61 | Account not approved yet.
|
---|
| 62 | </div>
|
---|
| 63 |
|
---|
| 64 | <div th:if="${param.error.contains('badCredentials')}" class="alert alert-danger">
|
---|
| 65 | Invalid username or password.
|
---|
| 66 | </div>
|
---|
| 67 | </div>
|
---|
[204464d] | 68 | </form>
|
---|
| 69 |
|
---|
| 70 | <div class="text-center">
|
---|
[a436340] | 71 | <p>No account? <a href="/register_customer" class="link-primary">Register customer</a></p>
|
---|
| 72 | </div>
|
---|
| 73 | <div class="text-center">
|
---|
| 74 | <p>Offering services? <a href="/register_business" class="link-primary">Register company</a></p>
|
---|
[204464d] | 75 | </div>
|
---|
| 76 | <!-- Register buttons -->
|
---|
| 77 | <div class="text-center">
|
---|
| 78 | <p>or register with:</p>
|
---|
| 79 | <button type="button" class="btn btn-link btn-floating mx-1">
|
---|
| 80 | <i class="fab fa-facebook-f"></i>
|
---|
| 81 | </button>
|
---|
| 82 |
|
---|
| 83 | <button type="button" class="btn btn-link btn-floating mx-1">
|
---|
| 84 | <i class="fab fa-google"></i>
|
---|
| 85 | </button>
|
---|
| 86 |
|
---|
| 87 | <button type="button" class="btn btn-link btn-floating mx-1">
|
---|
| 88 | <i class="fab fa-twitter"></i>
|
---|
| 89 | </button>
|
---|
| 90 |
|
---|
| 91 | <button type="button" class="btn btn-link btn-floating mx-1">
|
---|
| 92 | <i class="fab fa-github"></i>
|
---|
| 93 | </button>
|
---|
| 94 | </div>
|
---|
| 95 | </div>
|
---|
| 96 | </div>
|
---|
| 97 | </div>
|
---|
| 98 | </div>
|
---|
| 99 | </div>
|
---|
| 100 | </div>
|
---|
| 101 | <script>
|
---|
| 102 | </script>
|
---|
| 103 | <!-- Jumbotron -->
|
---|
| 104 | <!-- MDB -->
|
---|
| 105 | <script
|
---|
| 106 | type="text/javascript"
|
---|
| 107 | src="https://cdnjs.cloudflare.com/ajax/libs/mdb-ui-kit/5.0.0/mdb.min.js"
|
---|
| 108 | ></script>
|
---|
| 109 | </body>
|
---|
| 110 | </html> |
---|