From 7bb3a08a6a069baf1c7015ec533bf298bc557888 Mon Sep 17 00:00:00 2001 From: SBD Date: Sun, 10 Dec 2023 14:17:35 +0300 Subject: [PATCH] 0.0.110 --- static/aerbimCSS.css | 80 ++++++++++++++++++++++++++++ templates/pages/p_contacts.html | 34 ++++-------- templates/widgets/w_card_office.html | 30 +++++++++++ 3 files changed, 121 insertions(+), 23 deletions(-) create mode 100644 templates/widgets/w_card_office.html diff --git a/static/aerbimCSS.css b/static/aerbimCSS.css index 61fcbb9..0665d8d 100644 --- a/static/aerbimCSS.css +++ b/static/aerbimCSS.css @@ -1295,4 +1295,84 @@ body.n_scroll{ height: 100%; font-size: 36px; padding: 26px 0; +} + +/* contacts */ + +/*.b_contacts{*/ +/* margin: 100px 0;*/ +/*}*/ + +.title_of_the_page_contacts{ + font-size: 36px; + font-weight: 600; + text-transform: uppercase; + text-align: left; + width: 100%; +} + +.cards_contacts_container { + padding: 80px 70px; + display: flex; + flex-direction: row; + flex-wrap: wrap; +} + +.card_contacts{ + width: 45%; + margin: 0 2.5%; +} + +.container_img_card_contacts{ + width: 100%; + height: 300px; +} + +.img_card_contacts{ + width: 100%; + height: 100%; + border-radius: 5px 5px 0 0; +} + +.description_contact{ + width: 90.5%; + padding: 25px; + border-radius: 0 0 5px 5px; + background: #FFF; + box-shadow: 1px 1px 11.3px 0 rgba(16, 33, 43, 0.12); +} + +.name_contact{ + font-size: 30px; + font-weight: 600; + padding-bottom: 10px; +} + +.description_office_contact{ + font-size: 20px; + font-weight: 400; + padding-bottom: 20px; +} + +.label_work_time{ + font-size: 20px; + font-weight: 600; +} + +.work_time_office{ + font-weight: 400; + font-size: 20px; + padding-bottom: 20px; +} + +.label_contact{ + display: inline-block; + font-size: 20px; + font-weight: 600; +} + +.text_contact{ + display: inline-block; + font-size: 20px; + font-weight: 400; } \ No newline at end of file diff --git a/templates/pages/p_contacts.html b/templates/pages/p_contacts.html index 42c8f10..ccf47b7 100644 --- a/templates/pages/p_contacts.html +++ b/templates/pages/p_contacts.html @@ -1,29 +1,17 @@ {% extends 'tb_base.html' %} +{% load static %} +{% load i18n %} {% block CONTENT %} - -
- Контакты -
- {% for office in offices %} -
- {% if office.picture %} - {{ office.city }} - {% endif %} -
{{ office.city }}
-
{{ office.address }}
- Часы работы: -
{{ office.work_time_from }} - {{ office.work_time_to }}
-
{{ office.work_time }}
-
- {% for contact in office.contacts %} -
- {% if contact.contact_label %}{{ contact.contact_label }}: {% endif %}{{ contact.get_prefix_w_data }} -
- {% endfor %} -
+
+
+
+
{% translate 'Контакты' %}
+
+ {% for office in offices %} + {% include "widgets/w_card_office.html" %} + {% endfor %}
- {% endfor %} +
- {% endblock %} \ No newline at end of file diff --git a/templates/widgets/w_card_office.html b/templates/widgets/w_card_office.html new file mode 100644 index 0000000..1d29361 --- /dev/null +++ b/templates/widgets/w_card_office.html @@ -0,0 +1,30 @@ +{% load static %} +{% load i18n %} + +
+
+ +
+
+
+ {{ office.name }} +
+
+ {{ office.address }} +
+
+ Часы работы: +
+
+
{{ office.work_time_from }} - {{ office.work_time_to }}
+ {% if office.work_time %}
{{ office.work_time }}
{% endif %} +
+ {% for contact in office.contacts %} +
+ {% if contact.contact_label %}
{{ contact.contact_label }}:
{% endif %} +
{{ contact.get_prefix_w_data }}
+
+{#
{{ office.phone }}
#} + {% endfor %} +
+
\ No newline at end of file