diff --git a/static/css/styles.css b/static/css/styles.css index 9f2a6f3..ba49ca6 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -1684,7 +1684,7 @@ button.cancel_remove{ /*Static_pages*/ -h2#title_static{ +#title_static{ text-align: center; font-family: Inter; font-size: 44px; @@ -1696,7 +1696,7 @@ h2#title_static{ .title_static_wrapper{ text-align: center; } -.title_static_wrapper>h2#title_static{ +.title_static_wrapper>#title_static{ display: inline-block; } span#sub_title_static{ @@ -2311,6 +2311,47 @@ summary:focus { /*END faq_main_page*/ +/*news_block_main_page*/ +.news_block_main { + display: flex; + margin: 0 80px 0 80px; + justify-content: space-between; + flex-wrap: wrap; + +} + +.news_item { + width: 30%; + margin-bottom: 2%; + background-color: white; + filter: drop-shadow(-1px 4px 10px rgba(198, 199, 203, 0.20)) drop-shadow(0px -1px 10px rgba(198, 199, 203, 0.20)); + border-radius: 20px; +} + +.news_item>div{ + margin: 10px; +} + +.news_img>img{ + object-fit: cover; + width: 100%; + +} + + +.news_gradient{ + width: 100%; + height: 46px; + border-radius: 10px; + background: linear-gradient(0deg, #FFF 50%, rgba(255, 255, 255, 0.00) 100%); + margin: 0 !important; + position: absolute; + bottom: -2%; + right: 0; + +} +/*END news_block_main_page*/ + /*end_static_pages*/ diff --git a/templates/blocks/b_user_profile.html b/templates/blocks/b_user_profile.html index b2acc72..fd7c993 100644 --- a/templates/blocks/b_user_profile.html +++ b/templates/blocks/b_user_profile.html @@ -74,9 +74,9 @@ Мой профиль -{#
#} -{# Выйти из профиля#} -{#
#} +
+ Выйти из профиля +
{% if not page_html %} diff --git a/templates/pages/p_main.html b/templates/pages/p_main.html index efeb1ac..dd22b54 100644 --- a/templates/pages/p_main.html +++ b/templates/pages/p_main.html @@ -13,10 +13,7 @@
-

{% translate "Отправляй" %}

- {% translate "посылку" %} -

{% translate "в любую точку мира" %}

-

!

+
{% blocktrans %}Отправляй посылку в любую точку мира!{% endblocktrans %}

@@ -249,10 +246,23 @@

+

{% translate "Последние новости" %}

-
-

{% translate "Последние новости" %}

+
+ {% for art in articles %} +
+
+
{{ art.name }}
+
+ {{ art.description|truncatechars:100 }} +
+
+ + +
+ + {% endfor %}