From 8cbc7c9a0ce543db48f80a743c4168ca847ca500 Mon Sep 17 00:00:00 2001 From: lisinan <1299311192@qq.com> Date: Fri, 24 May 2024 22:00:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BF=AB=E9=80=9F=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E4=B8=8B=E4=B8=80=E9=A1=B5=E6=8C=89=E9=92=AE=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E9=A2=91=E7=8E=87=E8=BF=87=E5=BF=AB=E6=97=B6=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E8=B7=B3=E8=BD=AC=E5=88=B0=E6=9C=AA=E7=9F=A5=E5=90=8D?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/templates/userpage_get.html | 211 ++++++++++++++++++++++++-------- app/test/test_next_article.py | 85 +++++++++++++ requirements.txt | 5 +- 3 files changed, 252 insertions(+), 49 deletions(-) create mode 100644 app/test/test_next_article.py diff --git a/app/templates/userpage_get.html b/app/templates/userpage_get.html index 68997ef..0488aea 100644 --- a/app/templates/userpage_get.html +++ b/app/templates/userpage_get.html @@ -5,6 +5,8 @@ + + {{ yml['header'] | safe }} {% if yml['css']['item'] %} @@ -26,12 +28,40 @@ } @keyframes shakes { - 10%, 90% { transform: translate3d(-1px, 0, 0); } - 20%, 50% { transform: translate3d(+2px, 0, 0); } - 30%, 70% { transform: translate3d(-4px, 0, 0); } - 40%, 60% { transform: translate3d(+4px, 0, 0); } - 50% { transform: translate3d(-4px, 0, 0); } + 10%, 90% { + transform: translate3d(-1px, 0, 0); + } + 20%, 50% { + transform: translate3d(+2px, 0, 0); + } + 30%, 70% { + transform: translate3d(-4px, 0, 0); + } + 40%, 60% { + transform: translate3d(+4px, 0, 0); + } + 50% { + transform: translate3d(-4px, 0, 0); + } } + + .lead { + font-size: 22px; + font-family: Helvetica, sans-serif; + white-space: pre-wrap; + } + + .arrow { + padding: 0; + font-size: 20px; + line-height: 21px; + display: inline-block; + } + + .arrow:hover { + cursor: pointer; + } +
@@ -39,53 +69,70 @@English Pal for {{ username }} {% if username == admin_name %} - 管理 + 管理 {% endif %} 退出 重设密码
-{# {% for message in flashed_messages %}#} {# 根据user_service.userpage,取消了参数flashed_messages,因此注释了这段代码 #} -{#阅读文章并回答问题
Article added on: {{ today_article["date"] }}
{{ today_article["article_title"] }}
{{ today_article["article_body"] }}
{{ today_article['source'] }}
{{ today_article['question'] }}
Article added on: {{ today_article["date"] }}
{{ today_article["article_title"] }}
{{ today_article["article_body"] }}
{{ today_article['source'] }}
{{ today_article['question'] }}