feat: overhaul UI styling, improve templates, enhance services and tests
This commit is contained in:
@@ -1,8 +1,5 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}{{ page_title }} — HF Daily Papers{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% extends "base.html" %} {% block title %}{{ page_title }} — HF Daily Papers{%
|
||||
endblock %} {% block content %}
|
||||
<div class="date-nav">
|
||||
{% if prev_day %}
|
||||
<a href="/day/{{ prev_day }}" class="date-nav-btn">← 前一天</a>
|
||||
@@ -16,9 +13,8 @@
|
||||
|
||||
{% if papers %}
|
||||
<div class="paper-list">
|
||||
{% for paper in papers %}
|
||||
{% include "partials/paper_card.html" %}
|
||||
{% endfor %}
|
||||
{% for paper in papers %} {% include "partials/paper_card.html" %} {% endfor
|
||||
%}
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="empty-state">
|
||||
@@ -30,7 +26,11 @@
|
||||
<div class="date-quick-nav">
|
||||
<span>有数据的日期:</span>
|
||||
{% for d in available_dates[:10] %}
|
||||
<a href="/day/{{ d }}" class="date-chip {% if d == current_date %}active{% endif %}">{{ d }}</a>
|
||||
<a
|
||||
href="/day/{{ d }}"
|
||||
class="date-chip {% if d == current_date %}active{% endif %}"
|
||||
>{{ d }}</a
|
||||
>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user