source: src/main/resources/templates/Home.html@ a51a591

Last change on this file since a51a591 was a51a591, checked in by colovik <j.colovik@…>, 14 months ago

final

  • Property mode set to 100644
File size: 9.0 KB
Line 
1<!DOCTYPE html>
2<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
3<head>
4 <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
5 <style>
6 .navbar {
7 background: darkkhaki;
8 }
9
10 span {
11 color: #b2d7ff;
12 text-decoration: none;
13 background: transparent;
14 }
15
16 ul {
17 text-align: justify;
18 margin-left: 50px;
19 margin-right: 50px;
20
21 }
22
23 body {
24 background-image: url("https://images.unsplash.com/photo-1511795409834-ef04bbd61622?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=869&q=80");
25 background-size: 100%;
26 background-repeat: no-repeat;
27 background-position: center top -150px; /* Adjust the background position to move the image up */
28 }
29
30 .navbar-brand {
31 color: #343a40;
32 font-weight: bold;
33 }
34
35 .nav-link {
36 color: #343a40;
37 font-weight: bold;
38
39 }
40
41 footer {
42 position: fixed;
43 bottom: 0;
44 left: 0;
45 right: 0;
46 background: #111;
47 height: auto;
48 width: 100vw;
49 padding-top: 40px;
50 color: #fff;
51 }
52
53 .footer-content {
54 display: flex;
55 align-items: center;
56 justify-content: center;
57 flex-direction: column;
58 text-align: center;
59 height: 80px;
60 }
61
62 .footer-content h3 {
63 font-size: 2.1rem;
64 font-weight: 500;
65 text-transform: capitalize;
66 line-height: 3rem;
67 margin-top: 20px;
68 }
69
70 .footer-content p {
71 max-width: 500px;
72 margin: 10px auto;
73 line-height: 28px;
74 font-size: 14px;
75 color: #cacdd2;
76 }
77
78 .socials {
79 list-style: none;
80 display: flex;
81 align-items: center;
82 justify-content: center;
83 margin: 1rem 0 3rem 0;
84 }
85
86 .socials li {
87 margin: 0 10px;
88 }
89
90 .socials a {
91 text-decoration: none;
92 color: #fff;
93 border: 1.1px solid white;
94 padding: 5px;
95 border-radius: 50%;
96 }
97
98 .socials a i {
99 font-size: 1.1rem;
100 width: 20px;
101 transition: color .4s ease;
102 }
103
104 .socials a:hover i {
105 color: aqua;
106 }
107
108 .footer-bottom p {
109 float: left;
110 font-size: 14px;
111 word-spacing: 2px;
112 text-transform: capitalize;
113 }
114
115 .footer-bottom p a {
116 color: #44bae8;
117 font-size: 16px;
118 text-decoration: none;
119 }
120
121 .footer-bottom span {
122 text-transform: uppercase;
123 opacity: .4;
124 font-weight: 200;
125 }
126
127 .footer-menu ul {
128 display: flex;
129 }
130
131 .footer-menu ul li {
132 padding-right: 10px;
133 display: block;
134 }
135
136 .footer-menu ul li a {
137 color: #cfd2d6;
138 text-decoration: none;
139 }
140
141 .footer-menu ul li a:hover {
142 color: #27bcda;
143 }
144
145 @media (max-width: 500px) {
146 .footer-menu ul {
147 display: flex;
148 margin-top: 10px;
149 margin-bottom: 20px;
150 }
151 }
152
153 .kopce {
154 background-color: mediumslateblue;
155 border: none;
156 color: white;
157 padding: 15px 32px;
158 text-align: center;
159 text-decoration: none;
160 display: inline-block;
161 font-size: 16px;
162 margin-left: 20px;
163 }
164
165 /*#logo{*/
166 /* width:160px;*/
167 /* height: 60px*/
168 /*}*/
169 h1 {
170 color: black;
171 font-size: 60px;
172 font-weight: 700;
173 letter-spacing: 8px;
174 margin-bottom: 20px;
175 margin-left: auto;
176 margin-right: auto;
177 margin-top: 50px;
178 position: relative;
179 animation: text 3s 1;
180 }
181
182 @keyframes text {
183 0% {
184 color: black;
185 margin-bottom: -40px;
186 }
187 30% {
188 letter-spacing: 25px;
189 margin-bottom: -40px;
190 }
191 85% {
192 letter-spacing: 8px;
193 margin-bottom: -40px;
194 }
195 }
196
197 footer {
198 width: 100%;
199 padding: 20px;
200 box-sizing: border-box;
201 }
202 </style>
203 <meta name="viewport" content="width=device-width, initial-scale=1">
204 <meta charset="UTF-8"/>
205 <title>Home - Eventrra</title>
206 <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
207 integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
208 <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
209 integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
210 crossorigin="anonymous"></script>
211 <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
212 integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1"
213 crossorigin="anonymous"></script>
214 <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
215 integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
216 crossorigin="anonymous"></script>
217</head>
218<body>
219<div>
220 <nav class="navbar navbar-expand-md ">
221 <div class="container">
222 <!-- <img class="u-image u-image-default u-image-1" src="../static/logoeventra.png" alt="" data-image-width="648" data-image-height="292">-->
223 <!-- <a class="navbar-brand" href="/home"></a>-->
224 <a class="navbar-brand"> Eventrra</a>
225 <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExampleDefault"
226 aria-controls="navbarsExampleDefault" aria-expanded="false" aria-label="Toggle navigation">
227 <span class="navbar-toggler-icon"></span>
228 </button>
229
230 <div class="collapse navbar-collapse justify-content-end" id="navbarsExampleDefault">
231 <ul class="navbar-nav m-auto">
232
233 <li th:if="${session.user!=null}" class="nav-item m-auto">
234 <a class="nav-link active" href="/">Home</a>
235 </li>
236
237 <li th:if="${session.user!=null and session.role == 'ROLE_CLIENT'}"
238 class="nav-item m-auto">
239 <a class="kopce" href="/host_event">Host an event</a>
240 </li>
241 <li th:if="${session.user!=null}" class="nav-item m-auto">
242 <a class="nav-link active" href="/my_events">Scheduled events</a>
243 </li>
244 </ul>
245
246 <form class="form-inline my-2 my-lg-0">
247
248 <div th:if="${session.user==null}">
249 <a class="btn btn-light btn-sm ml-3" href="/login">
250 Login
251 </a>
252
253 <a class="btn btn-light btn-sm ml-3" href="/register">
254 Sign up
255 </a>
256 </div>
257 <div style="text-align: center" th:if="${session.user!=null}" class="nav-item m-auto">
258 <a th:text="${session.user.username}" style="color:white; font-size: 20px;"
259 class="nav-link active" href="/login/profile"></a>
260 </div>
261
262 <div th:if="${session.user!=null}">
263 <a class="btn btn-light btn-sm ml-3" href="/logout">
264 Log out
265 </a>
266 </div>
267 </form>
268 </div>
269 </div>
270 </nav>
271</div>
272<!-- <div class="ml-5">-->
273<!-- <img class="img-fluid" src="https://images.unsplash.com/photo-1511795409834-ef04bbd61622?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=869&q=80" alt="Image">-->
274<!-- </div>-->
275<footer>
276 <div class="footer-content">
277 <br>
278 <h3>Contact us</h3>
279
280 <ul class="socials">
281 <li><a href="#"><i class="fa fa-facebook"></i></a></li>
282 <li><a href="#"><i class="fa fa-twitter"></i></a></li>
283 <li><a href="#"><i class="fa fa-google-plus"></i></a></li>
284 <li><a href="#"><i class="fa fa-youtube"></i></a></li>
285 <li><a href="#"><i class="fa fa-linkedin-square"></i></a></li>
286 </ul>
287 </div>
288</footer>
289</body>
290</html>
Note: See TracBrowser for help on using the repository browser.