From 2cc45c7efcc2ca15297edfa7ac2e125c5c810d55 Mon Sep 17 00:00:00 2001 From: ArtemB Date: Tue, 3 Oct 2023 13:41:01 +0300 Subject: [PATCH] 0.0.164 add article news --- static/css/styles.css | 19 +++++++++++++++++- templates/pages/p_article.html | 36 ++++++++++++++++++++++++++++++---- 2 files changed, 50 insertions(+), 5 deletions(-) diff --git a/static/css/styles.css b/static/css/styles.css index 9806732..665c41d 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -2525,8 +2525,25 @@ details[open] summary ~ *{ font-weight: 600; line-height: 26px; } +.self_news_header{ + font-size: 24px; + font-style: normal; + font-weight: 700; + line-height: 36px; + margin-bottom: 40px; +} +.self_news_description{ + margin-bottom: 40px; +} +.self_news_text>p>img{ + margin: 40px 3%; +} - +.self_news_img{ + float: right; + width: 30%; + margin-left: 20px; +} diff --git a/templates/pages/p_article.html b/templates/pages/p_article.html index 30337cb..e1a5397 100644 --- a/templates/pages/p_article.html +++ b/templates/pages/p_article.html @@ -1,8 +1,36 @@ {% extends "tb_base.html" %} {% block content %} -
-
{{ art.name }}
-
{{ art.description }}
-
{{ art.text|safe }}
+ + +
+
+
{{ art.name }}
+
{{ art.description }}
+
{{ art.text|safe }}
+
+
+ {% for art in articles %} +
+
+
+
{{ art.name }}
+
+ {{ art.description|truncatechars:400 }} +{#
#} +
+
+
+ +
+ {#
{{ art.text|safe }}
#} + {% endfor %} +
+ + + {% endblock %} \ No newline at end of file