source: src/main/resources/templates/films.html

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

Changes in html

  • Property mode set to 100644
File size: 6.8 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 display: contents;
12 margin: 10%;
13 }
14
15 .container .card{
16 position: relative;
17 width: 250px;
18 height: 300px;
19 background: #232323;
20 border-radius: 20px;
21 overflow: hidden;
22 }
23
24 .container .card:before{
25 content: '';
26 position: absolute;
27 top: 0;
28 left: 0;
29 width: 100%;
30 height: 100%;
31 background: black;
32 transition: 0.5s ease-in-out;
33 }
34
35
36 .container .card:after{
37 position: absolute;
38
39 font-size: 6em;
40 font-weight: 600;
41 font-style: italic;
42 color: rgba(255,255,25,0.05)
43 }
44
45 .container .card .imgBx{
46 position: absolute;
47 width: 100%;
48 height: 300px;
49 transition: 0.5s;
50 }
51
52 .container .card:hover .imgBx{
53 top: 0%;
54
55 }
56
57 .container .card .imgBx img{
58 position: absolute;
59 width: 100%;
60 }
61
62 .container .card .contentBx{
63 position: absolute;
64 bottom: 0;
65 width: 100%;
66 height: 300px;
67 text-align: center;
68 transition: 1s;
69 z-index: 10;
70 }
71
72 .container .card:hover .contentBx{
73 height: 300px;
74 }
75
76 .container .card .contentBx h2{
77 position: relative;
78 font-weight: 300;
79 letter-spacing: 1px;
80 color: #fff;
81 margin: 0;
82 }
83
84 .container .card .contentBx .size, .container .card .contentBx .color, .container .card .contentBx .button {
85 display: flex;
86 justify-content: start;
87 align-items: start;
88 padding: 8px 20px;
89 transition: 0.5s;opacity: 0;
90 visibility: hidden;
91 padding-top: 0;
92 padding-bottom: 0;
93 }
94
95 .container .card .contentBx .button {
96 display: flex;
97 justify-content: center;
98 align-items: center;
99 padding: 8px 20px;
100 transition: 0.5s;opacity: 0;
101 visibility: hidden;
102 padding-top: 0;
103 padding-bottom: 0;
104 }
105 .container .card:hover .contentBx .size{
106 opacity: 1;
107 visibility: visible;
108 transition-delay: 0.5s;
109 }
110 .container .card:hover .contentBx .button{
111 opacity: 1;
112 visibility: visible;
113 transition-delay: 0.5s;
114 }
115
116 .container .card:hover .contentBx .color{
117 opacity: 1;
118 visibility: visible;
119 transition-delay: 0.6s;
120 }
121
122 .container .card .contentBx .size h3, .container .card .contentBx .color h3{
123 color: #fff;
124 font-weight: 600;
125 font-size: 8px;
126 text-transform: uppercase;
127 letter-spacing: 2px;
128 margin-right: 10px;
129 }
130
131 .container .card .contentBx .size span{
132 width: 26px;
133 height: 26px;
134 text-align: center;
135 line-height: 26px;
136 font-size: 8px;
137 display: inline-block;
138 color: #111;
139 background: #fff;
140 margin: 0 5px;
141 transition: 0.5s;
142 color: #111;
143 border-radius: 4px;
144 cursor: pointer;
145 }
146
147
148
149 .container .card .contentBx .color span{
150 width: 100%;
151 height: 20px;
152 color: white;
153 margin: 0 5px;
154 cursor: pointer;
155 }
156
157
158 .container .card .contentBx a{
159 display: inline-block;
160 padding: 10px 20px;
161 background: #fff;
162 border-radius: 4px;
163 margin-top: 10px;
164 text-decoration: none;
165 font-weight: 600;
166 color: #111;
167 opacity: 0;
168 transform: translateY(50px);
169 transition: 0.5s;
170 margin-top: 0;
171 }
172
173 .container .card:hover .contentBx a{
174 opacity: 1;
175 transition-delay: 0.75s;
176
177 }
178 .main{
179 margin-top: 100px;
180 display: flex;
181 flex-wrap: wrap;
182 align-items: flex-start;
183 justify-content: space-around;
184 }
185 .button {
186 top:250px;
187 background-color: #ff5019;
188 border: none;
189 color: black;
190 padding: 10px 20px;
191 text-align: center;
192 text-decoration: none;
193 display: inline-block;
194 font-size: 16px;
195 border-radius: 20px;
196 }
197 .form-group{
198 width: 200px;
199 }
200
201</style>
202<div>
203 <form style="margin-left: 20px" th:action="@{'/home/films'}"
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 </div>
219 <div class="form-group col-2">
220 <label style="color: white;font-size: 20px;font-weight: bold">Избери Жанр:</label>
221 <select name="id_genre" class="form-control" id="id_genre">
222 <option th:value="${null}" text="Please Select"></option>
223 <option
224 th:each="genre : ${genres}"
225 th:value="${genre.ordinal}"
226 th:text="${genre.name}">
227 </option>
228 </select>
229
230 </div>
231 <div class="col-8 mt-4">
232 <button class="button" type="submit">Филтрирај</button>
233
234 </div>
235</div>
236 </form>
237
238<div xmlns:th="http://www.thymeleaf.org">
239 <div class="main" style="width: available;height: available;padding: 5%">
240 <div th:if="${films.isEmpty()} == false"
241 th:each="film : ${films}" class="container">
242 <div class="card" style="margin-left: 2%;margin-bottom: 2%">
243 <div class="imgBx">
244 <img th:src="@{${film.getUrl()}}"/>
245 </div>
246 <div class="contentBx">
247 <h2 th:if="${films.isEmpty()} == false"
248 th:text="${film.getName()}"></h2>
249 <div class="color">
250 <h3>Start Date:</h3>
251 <span th:if="${films.isEmpty()} == false"
252 th:text="${film.getStart_date()}"></span>
253 </div>
254 <form th:if="${films.isEmpty()} == false"
255 th:action="@{'/home/getFilm/{id}' (id=${film.getId_film()})}"
256 th:method="GET">
257 <button class="button" type="submit">Детали</button>
258 </form>
259
260
261 </div>
262 </div>
263 </div>
264 </div>
265</div>
266</div>
Note: See TracBrowser for help on using the repository browser.