From 646ff35b645d8b89c27159a329fe450fbc01f01e Mon Sep 17 00:00:00 2001 From: Ivan Kaziev Date: Fri, 19 Apr 2024 20:18:42 +0300 Subject: [PATCH] Extract styles to style.css --- CineSync/static/css/style.css | 41 ++++++++++++++++++++++- CineSync/templates/timetable/session.html | 20 +++++------ 2 files changed, 48 insertions(+), 13 deletions(-) diff --git a/CineSync/static/css/style.css b/CineSync/static/css/style.css index ba70c33..4102d8b 100644 --- a/CineSync/static/css/style.css +++ b/CineSync/static/css/style.css @@ -18,6 +18,21 @@ position: absolute; top: 70%; border-radius: 3vw; + margin-left: 5%; + margin-top: 150px; +} +h6 { + text-align: center; + margin-top: 4px; +} +.seat_number { + width: 20px; + height: 18px; + text-align: center; +} +.buy_btn { + float: bottom; + margin-top: 40px; } .ticket_film_image { object-fit: cover; @@ -58,7 +73,31 @@ padding-bottom: 2vw; flex-direction: column; } -.film_card, .seats_card { +.seats_card { + width: 100%; + background-color: #eaeaea; + margin-top: 1vw; + margin-bottom: 1vw; + border-radius: 3vw; + display: flex; + flex-direction: row; + flex-wrap: nowrap; + align-items: center; + justify-content: flex-start; + + width: 50%; + margin: 0 auto; + margin-top: 20px; +} +.card_body { + width: 80%; + margin-top: 180px; + margin: 0 auto; +} +.rows { + margin-top: 30%; +} +.film_card { width: 100%; background-color: #eaeaea; margin-top: 1vw; diff --git a/CineSync/templates/timetable/session.html b/CineSync/templates/timetable/session.html index f98b5e1..f057cb3 100644 --- a/CineSync/templates/timetable/session.html +++ b/CineSync/templates/timetable/session.html @@ -10,25 +10,21 @@ Фотография фильма не найдена -
-
+
+

{{ session.film.name }}

{{ session.auditorium.number }}
{{ session.start_datetime }} -
-
-
Экран
+
+
+
Экран
{% for row in session.auditorium.row_count|get_range %}
{% for seat in seats %} -
+ {% endfor %} @@ -37,7 +33,7 @@ {% endfor %}
- +