diff --git a/static/css/styles.css b/static/css/styles.css index ba132a3..9806732 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -2477,6 +2477,64 @@ details[open] summary ~ *{ } /*END_user_articles*/ +/*news articles all*/ +.advertisement_block_news{ + height: 200px; + text-align: center; + border-radius: 10px; + background: #FFF; + box-shadow: -1px 4px 10px 0px rgba(198, 199, 203, 0.20), 0px -1px 10px 0px rgba(198, 199, 203, 0.20); + margin-bottom: 40px; +} + +.three_pinned_news{ + display: flex; + margin: 0 80px 0 80px; + justify-content: space-between; + flex-wrap: wrap; +} + + +.news_item_pagination{ + width: 90%; + background: white; + margin: 0 auto 10px; + border-radius: 15px; +} +.pag_news_img { + width: 20%; + +} +.pag_news_item_text{ + width: 76%; +} + +.news_item_pagination:nth-child(odd) .pag_news_img, +.news_item_pagination:nth-child(odd) .pag_news_item_text{ + float: left; + margin: 10px; +} +.news_item_pagination:nth-child(even) .pag_news_img, +.news_item_pagination:nth-child(even) .pag_news_item_text{ + float: right; + margin: 10px +} +.news_header{ + font-size: 17px; + font-style: normal; + font-weight: 600; + line-height: 26px; +} + + + + + + + + +/*END news articles all*/ + diff --git a/templates/pages/p_articles.html b/templates/pages/p_articles.html index b2de6c5..9381a45 100644 --- a/templates/pages/p_articles.html +++ b/templates/pages/p_articles.html @@ -2,10 +2,46 @@ {% load static %} {% block content %} - {% for art in articles %} -
-
{{ art.name }}
-
{{ art.description }}
-{#
{{ art.text|safe }}
#} - {% endfor %} + + + +
+ {% for art in articles %} +
+
+
{{ art.name }}
+
+ {{ art.description|truncatechars:100 }} +
+
+
+ {#
{{ art.text|safe }}
#} + {% endfor %} + +
+ +
+ {% for art in articles %} +
+
+
+
{{ art.name }}
+
+ {{ art.description|truncatechars:400 }} +{#
#} +
+
+
+ +
+ {#
{{ art.text|safe }}
#} + {% endfor %} +
+ + + {% endblock %} \ No newline at end of file diff --git a/templates/pages/p_main.html b/templates/pages/p_main.html index bafa0a4..6edc671 100644 --- a/templates/pages/p_main.html +++ b/templates/pages/p_main.html @@ -290,8 +290,6 @@ {{ art.description|truncatechars:100 }}
- - {% endfor %}