source: src/main/resources/templates/login.html@ f02aea4

Last change on this file since f02aea4 was 0e4d807, checked in by Ivona <ivonatapshanovska@…>, 10 months ago

Initial commit

  • Property mode set to 100644
File size: 3.0 KB
Line 
1<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
2<head>
3 <title>Login form</title>
4 <link href="/main.css" rel="stylesheet"/>
5 <title>Login</title>
6 <meta charset="UTF-8">
7 <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
8 <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
9 <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
10 <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
11</head>
12<body style="background-color: #226781 ">
13
14
15<form th:method="POST" th:action="@{/login}" style="padding-top: 150px">
16 <div class="container" >
17 <form class="form-signin mt-xl-5" method="post" action="/login">
18 <h2 class="form-signin-heading">Најави се</h2>
19 <p>
20 <label for="username" class="sr-only">Корисничко име</label>
21 <input type="text" id="username" name="username" class="form-control" placeholder="Korisnicko ime" required="" autofocus="">
22 </p>
23 <p>
24 <label for="password" class="sr-only">Password</label>
25 <input type="password" id="password" name="password" class="form-control" placeholder="Lozinka" required="">
26 </p>
27
28
29 <br/>
30
31 </form>
32 <div th:if="${hasError}" >
33 <div th:text="${error}" class="text-danger"></div>
34 </div>
35
36 <button class="btn btn-lg btn-primary btn-block" type="submit" style="background-color: black">Најави се</button>
37 </div>
38
39</form>
40</body>
41</html>
42<style>
43 body {
44 background-color: #226781;
45 }
46
47 .container {
48 max-width: 400px;
49 margin: 0 auto;
50 text-align: center;
51 zoom:150%;
52 }
53
54 form {
55 padding-top: 150px;
56
57 }
58
59 .form-signin {
60 background-color: #fff;
61 border: 1px solid #ccc;
62 border-radius: 5px;
63 padding: 20px;
64 }
65
66 h2 {
67 font-size: 24px;
68 margin-top: 0;
69 padding-bottom: 10px;
70 }
71
72 input[type="text"],
73 input[type="password"] {
74 width: 100%;
75 height: 40px;
76 margin-bottom: 20px;
77 padding: 10px;
78 font-size: 16px;
79 border-radius: 5px;
80 border: 1px solid #ccc;
81 }
82
83 .btn-primary {
84 background-color: black;
85 border-color: black;
86 }
87
88 .text-danger {
89 color: red;
90 font-size: 14px;
91 margin-top: 10px;
92 }
93</style>
Note: See TracBrowser for help on using the repository browser.