訪客功能、Yuzumi主頁導向

This commit is contained in:
Sahik committed 2026-11-22 19:45:40 +08:00
1 parent 2c69114f9e
commit f24d6fe0f9
22 files changed
+563 -87

No files matched your search

+7 -3
View File
@@ -38,13 +38,16 @@ PAGE = """<!DOCTYPE html>
justify-content: center; gap: 24px; background: #1a0f06; color: #fff6ea;
font-family: system-ui, "Noto Sans CJK TC", sans-serif; padding: 24px; box-sizing: border-box; }}
img {{ width: min(540px, 100%); border-radius: 16px; box-shadow: 0 12px 40px #0008; }}
a {{ background: #ff8a1f; color: #2a1400; padding: 12px 28px; border-radius: 999px;
text-decoration: none; font-weight: 700; }}
a.open {{ background: #ff8a1f; color: #2a1400; padding: 12px 28px; border-radius: 999px;
text-decoration: none; font-weight: 700; }}
footer {{ font-size: 13px; color: #d9b993; text-align: center; line-height: 1.7; }}
footer a {{ color: #ff8a1f; }}
</style>
</head>
<body>
<img src="{image_path}" alt="{title}">
<a href="/">{open}</a>
<a class="open" href="/">{open}</a>
<footer>{about}<br><a href="https://official-website.meridianproject.tw/talents/yuzumi" target="_blank" rel="noopener noreferrer">official-website.meridianproject.tw/talents/yuzumi</a></footer>
</body>
</html>"""
@@ -70,4 +73,5 @@ def share_page(uid: int, day: str, conn: sqlite3.Connection = Depends(get_db)):
image_path=image_path,
url=escape(f"{config.PUBLIC_URL}/c/{fmt_uid(uid)}/{day}"),
open=escape(t(lang, "share.open")),
about=escape(t(lang, "about.yuzumi")),
)