announcement v3

This commit is contained in:
tamakyi
2026-10-22 15:28:04 +08:00
parent 33fa643465
commit 2981731d4f
4 changed files with 15 additions and 3 deletions
+1 -1
View File
@@ -374,7 +374,7 @@ document.addEventListener("DOMContentLoaded", function() {
{{ with announcement }}
<!-- 站内公告:内容与展示时间窗来自 conf/app.ini 的 [announcement] 段。
由服务端按当前时间判定,窗口外整块不渲染,不留空白占位。 -->
<div class="uk-container uk-container-xsmall">
<div class="uk-container uk-container-xsmall tb-announce-wrap">
<div class="tb-announce" role="status">
<span class="tb-announce-icon" aria-hidden="true"><svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" focusable="false"><path d="M3 11v2a1 1 0 0 0 1 1h2l5 4V6L6 10H4a1 1 0 0 0-1 1z"/><path d="M16 8.5a5 5 0 0 1 0 7"/><path d="M19 6a9 9 0 0 1 0 12"/></svg></span>
<div class="tb-announce-body">{{ . }}</div>