feat(ui): add source and license footer links

This commit is contained in:
Aethersailor
2026-06-02 09:04:37 +08:00
parent 71c295474a
commit 9694d199d5
2 changed files with 21 additions and 2 deletions

View File

@@ -712,6 +712,21 @@ std::string page(Request &, Response &response) {
padding: 14px; padding: 14px;
text-align: left; text-align: left;
} }
.page-footer {
margin-top: 22px;
padding-top: 18px;
border-top: 1px solid var(--surface-border);
color: var(--text-muted);
font-size: 0.84rem;
line-height: 1.55;
text-align: center;
}
.page-footer a {
color: var(--accent);
text-decoration: none;
font-weight: 700;
}
.page-footer a:hover { color: var(--accent-2); }
@media (prefers-reduced-motion: reduce) { @media (prefers-reduced-motion: reduce) {
*, *::before, *::after { *, *::before, *::after {
animation-duration: 0.01ms !important; animation-duration: 0.01ms !important;
@@ -934,6 +949,10 @@ std::string page(Request &, Response &response) {
</section> </section>
</div> </div>
</section> </section>
<footer class="page-footer">
<span data-lang="en">Source Code: <a href="https://github.com/Aethersailor/SubConverter-Extended" target="_blank" rel="noopener noreferrer">GitHub</a> License: <a href="https://www.gnu.org/licenses/gpl-3.0.html" target="_blank" rel="noopener noreferrer">GPL-3.0</a></span>
<span data-lang="zh"><a href="https://github.com/Aethersailor/SubConverter-Extended" target="_blank" rel="noopener noreferrer">GitHub</a> <a href="https://www.gnu.org/licenses/gpl-3.0.html" target="_blank" rel="noopener noreferrer">GPL-3.0</a></span>
</footer>
</main> </main>
<div class="tooltip" id="tooltip"></div> <div class="tooltip" id="tooltip"></div>

View File

@@ -1030,10 +1030,10 @@ std::string page(Request &request, Response &response) {
<footer> <footer>
<span data-lang="en">SubConverter-Extended )html" + <span data-lang="en">SubConverter-Extended )html" +
std::string(VERSION) + std::string(VERSION) +
R"html( · <a href="/version">Version</a></span> R"html( · <a href="/version">Version</a> · Source Code: <a href="https://github.com/Aethersailor/SubConverter-Extended" target="_blank" rel="noopener noreferrer">GitHub</a> · License: <a href="https://www.gnu.org/licenses/gpl-3.0.html" target="_blank" rel="noopener noreferrer">GPL-3.0</a></span>
<span data-lang="zh">SubConverter-Extended )html" + <span data-lang="zh">SubConverter-Extended )html" +
std::string(VERSION) + std::string(VERSION) +
R"html( · <a href="/version">版本信息</a></span> R"html( · <a href="/version">版本信息</a> · 源代码:<a href="https://github.com/Aethersailor/SubConverter-Extended" target="_blank" rel="noopener noreferrer">GitHub</a> · 许可证:<a href="https://www.gnu.org/licenses/gpl-3.0.html" target="_blank" rel="noopener noreferrer">GPL-3.0</a></span>
</footer> </footer>
</main> </main>