source: src/main/resources/templates/login.html@ 77205be

Last change on this file since 77205be was 77205be, checked in by gjoko kostadinov <gjokokostadinov@…>, 11 months ago

Add entire code

  • Property mode set to 100755
File size: 4.9 KB
RevLine 
[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}">
[950fa0d]60 <div th:if="${param.error.contains('notApproved')}" class="alert alert-danger alert-dismissible fade show">
[8bcd64c]61 Account not approved yet.
62 </div>
63
[950fa0d]64 <div th:if="${param.error.contains('badCredentials')}" class="alert alert-danger alert-dismissible fade show">
[8bcd64c]65 Invalid username or password.
66 </div>
67 </div>
[950fa0d]68 <div th:if="${#request.getParameter('logoutSuccessful') != null}"
69 class="alert alert-success alert-dismissible fade show" role="alert">
70 Successful logout
71 </div>
[204464d]72 </form>
73
74 <div class="text-center">
[a436340]75 <p>No account? <a href="/register_customer" class="link-primary">Register customer</a></p>
76 </div>
77 <div class="text-center">
78 <p>Offering services? <a href="/register_business" class="link-primary">Register company</a></p>
[204464d]79 </div>
80 <!-- Register buttons -->
81 <div class="text-center">
82 <p>or register with:</p>
83 <button type="button" class="btn btn-link btn-floating mx-1">
84 <i class="fab fa-facebook-f"></i>
85 </button>
86
87 <button type="button" class="btn btn-link btn-floating mx-1">
88 <i class="fab fa-google"></i>
89 </button>
90
91 <button type="button" class="btn btn-link btn-floating mx-1">
92 <i class="fab fa-twitter"></i>
93 </button>
94
95 <button type="button" class="btn btn-link btn-floating mx-1">
96 <i class="fab fa-github"></i>
97 </button>
98 </div>
99 </div>
100 </div>
101 </div>
102 </div>
103 </div>
104</div>
105<script>
106</script>
107<!-- Jumbotron -->
108<!-- MDB -->
109<script
110 type="text/javascript"
111 src="https://cdnjs.cloudflare.com/ajax/libs/mdb-ui-kit/5.0.0/mdb.min.js"
112></script>
113</body>
114</html>
Note: See TracBrowser for help on using the repository browser.