source: src/main/resources/templates/events.html@ 4158cac

Last change on this file since 4158cac was 4158cac, checked in by milamihajlovska <mila.mihajlovska01@…>, 16 months ago

Changes in html

  • Property mode set to 100644
File size: 6.1 KB
Line 
1<style xmlns:sec="http://www.w3.org/1999/xhtml">
2 @import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
3
4
5 *{
6 font-family: 'Poppins', sans-serif;
7 }
8
9
10 .container{
11
12 display: contents;
13 margin: 5%;
14 }
15
16 .container .card{
17 position: relative;
18 width: 250px;
19 height: 300px;
20 background: #232323;
21 border-radius: 20px;
22 overflow: hidden;
23 }
24
25 .container .card:before{
26 content: '';
27 position: absolute;
28 top: 0;
29 left: 0;
30 width: 100%;
31 height: 100%;
32 background: black;
33 transition: 0.5s ease-in-out;
34 }
35
36
37 .container .card:after{
38 position: absolute;
39
40 font-size: 6em;
41 font-weight: 600;
42 font-style: italic;
43 color: rgba(255,255,25,0.05)
44 }
45
46 .container .card .imgBx{
47 position: absolute;
48 width: 100%;
49 height: 300px;
50 transition: 0.5s;
51 }
52
53 .container .card:hover .imgBx{
54 top: 0%;
55
56 }
57
58 .container .card .imgBx img{
59 position: absolute;
60 width: 100%;
61 }
62
63 .container .card .contentBx{
64 position: absolute;
65 bottom: 0;
66 width: 100%;
67 height: 300px;
68 text-align: center;
69 transition: 1s;
70 z-index: 10;
71 }
72
73 .container .card:hover .contentBx{
74 height: 300px;
75 }
76
77 .container .card .contentBx h2{
78 position: relative;
79 font-weight: 300;
80 letter-spacing: 1px;
81 color: #fff;
82 margin: 0;
83 }
84
85 .container .card .contentBx .size, .container .card .contentBx .color, .container .card .contentBx .button {
86 display: flex;
87 justify-content: start;
88 align-items: start;
89 padding: 8px 20px;
90 transition: 0.5s;opacity: 0;
91 visibility: hidden;
92 padding-top: 0;
93 padding-bottom: 0;
94 }
95
96 .container .card .contentBx .button {
97 display: flex;
98 justify-content: center;
99 align-items: center;
100 padding: 8px 20px;
101 transition: 0.5s;opacity: 0;
102 visibility: hidden;
103 padding-top: 0;
104 padding-bottom: 0;
105 }
106 .container .card:hover .contentBx .size{
107 opacity: 1;
108 visibility: visible;
109 transition-delay: 0.5s;
110 }
111 .container .card:hover .contentBx .button{
112 opacity: 1;
113 visibility: visible;
114 transition-delay: 0.5s;
115 }
116
117 .container .card:hover .contentBx .color{
118 opacity: 1;
119 visibility: visible;
120 transition-delay: 0.6s;
121 }
122
123 .container .card .contentBx .size h3, .container .card .contentBx .color h3{
124 color: #fff;
125 font-weight: 600;
126 font-size: 8px;
127 text-transform: uppercase;
128 letter-spacing: 2px;
129 margin-right: 10px;
130 }
131
132 .container .card .contentBx .size span{
133 width: 26px;
134 height: 26px;
135 text-align: center;
136 line-height: 26px;
137 font-size: 8px;
138 display: inline-block;
139 color: #111;
140 background: #fff;
141 margin: 0 5px;
142 transition: 0.5s;
143 color: #111;
144 border-radius: 4px;
145 cursor: pointer;
146 }
147
148
149
150 .container .card .contentBx .color span{
151 width: 100%;
152 height: 20px;
153 color: white;
154 margin: 0 5px;
155 cursor: pointer;
156 }
157
158
159 .container .card .contentBx a{
160 display: inline-block;
161 padding: 10px 20px;
162 background: #fff;
163 border-radius: 4px;
164 margin-top: 10px;
165 text-decoration: none;
166 font-weight: 600;
167 color: #111;
168 opacity: 0;
169 transform: translateY(50px);
170 transition: 0.5s;
171 margin-top: 0;
172 }
173
174 .container .card:hover .contentBx a{
175 opacity: 1;
176 transition-delay: 0.75s;
177
178 }
179 .main{
180 margin-top: 100px;
181 display: flex;
182 flex-wrap: wrap;
183 align-items: flex-start;
184 justify-content: space-around;
185 }
186 .button {
187 top:250px;
188 background-color: #ff5019;
189 border: none;
190 color: black;
191 padding: 10px 20px;
192 text-align: center;
193 text-decoration: none;
194 display: inline-block;
195 font-size: 16px;
196 border-radius: 20px;
197 }
198 .form-group{
199 width: 200px;
200 }
201</style>
202<div>
203 <form style="margin-left: 20px" th:action="@{'/home/events'}"
204 th:method="GET">
205 <div class="row">
206
207 <div class="form-group col-2">
208 <label style="color: white;font-size: 20px;font-weight: bold">Избери Кино:</label>
209 <select name="id_cinema" class="form-control" id="id_cinema">
210 <option th:value="${null}" text="Please Select"></option>
211 <option
212 th:each="cinema : ${cinemas}"
213 th:value="${cinema.getId_cinema()}"
214 th:text="${cinema.getName()}">
215 </option>
216 </select>
217
218
219 </div>
220 <div class="col-10 mt-4">
221 <button class="button" type="submit">Филтрирај</button>
222 </div>
223 </div>
224
225 </form>
226
227<div xmlns:th="http://www.thymeleaf.org">
228 <h1 style="color: white">Настани</h1>
229 <div class="main">
230 <div th:each="event : ${events}" class="container">
231 <div class="card">
232 <div class="imgBx">
233 <img th:src="@{${event.img_url}}"/>
234 </div>
235 <div class="contentBx">
236 <h2 th:text="${event.theme}"></h2>
237 <div class="size">
238 <h3>Duration :</h3>
239 <span th:text="${event.getDuration()}"></span>
240 </div>
241 <form th:action="@{'/home/getEvent/{id}' (id=${event.getId_event()})}"
242 th:method="GET">
243 <button class="button" type="submit">Датали</button>
244 </form>
245 </div>
246
247 </div>
248 </div>
249 </div>
250</div>
251</div>
Note: See TracBrowser for help on using the repository browser.