[a69d48c] | 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 |
|
---|
[633b371] | 12 | display: contents;
|
---|
| 13 | margin: 5%;
|
---|
[a69d48c] | 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;
|
---|
[633b371] | 182 | flex-wrap: wrap;
|
---|
[a69d48c] | 183 | align-items: flex-start;
|
---|
[633b371] | 184 | justify-content: space-around;
|
---|
[a69d48c] | 185 | }
|
---|
| 186 | .button {
|
---|
| 187 | top:250px;
|
---|
[0ba5d1a] | 188 | background-color: #ff5019;
|
---|
[a69d48c] | 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 | }
|
---|
[90317ea] | 198 | .form-group{
|
---|
| 199 | width: 200px;
|
---|
| 200 | }
|
---|
[a69d48c] | 201 | </style>
|
---|
[90317ea] | 202 | <div>
|
---|
[633b371] | 203 | <form style="margin-left: 20px" th:action="@{'/home/events'}"
|
---|
[90317ea] | 204 | th:method="GET">
|
---|
| 205 |
|
---|
| 206 | <div class="form-group">
|
---|
[633b371] | 207 | <label style="color: white;font-size: 20px;font-weight: bold">Избери Кино:</label>
|
---|
[90317ea] | 208 | <select name="id_cinema" class="form-control" id="id_cinema">
|
---|
| 209 | <option
|
---|
| 210 | th:selected="${cinemas.get(1)}"
|
---|
| 211 | th:each="cinema : ${cinemas}"
|
---|
| 212 | th:value="${cinema.getId_cinema()}"
|
---|
| 213 | th:text="${cinema.getName()}">
|
---|
| 214 | </option>
|
---|
| 215 | </select>
|
---|
| 216 |
|
---|
| 217 | </div>
|
---|
| 218 | <button class="button" type="submit">Filter</button>
|
---|
| 219 | </form>
|
---|
| 220 |
|
---|
[a69d48c] | 221 | <div xmlns:th="http://www.thymeleaf.org">
|
---|
[90317ea] | 222 | <h1 style="color: white">Настани</h1>
|
---|
[a69d48c] | 223 | <div class="main">
|
---|
| 224 | <div th:each="event : ${events}" class="container">
|
---|
| 225 | <div class="card">
|
---|
[d09caa7] | 226 | <div class="imgBx">
|
---|
| 227 | <img th:src="@{${event.img_url}}"/>
|
---|
| 228 | </div>
|
---|
[a69d48c] | 229 | <div class="contentBx">
|
---|
[d09caa7] | 230 | <h2 th:text="${event.theme}"></h2>
|
---|
[a69d48c] | 231 | <div class="size">
|
---|
| 232 | <h3>Duration :</h3>
|
---|
| 233 | <span th:text="${event.getDuration()}"></span>
|
---|
| 234 | </div>
|
---|
[90317ea] | 235 | <form th:action="@{'/home/getEvent/{id}' (id=${event.getId_event()})}"
|
---|
[d09caa7] | 236 | th:method="GET">
|
---|
[39a45e6] | 237 | <button class="button" type="submit">Датали</button>
|
---|
[d09caa7] | 238 | </form>
|
---|
[a69d48c] | 239 | </div>
|
---|
[d09caa7] | 240 |
|
---|
[a69d48c] | 241 | </div>
|
---|
| 242 | </div>
|
---|
| 243 | </div>
|
---|
[90317ea] | 244 | </div>
|
---|
[a69d48c] | 245 | </div> |
---|