feat(title): add footer

This commit is contained in:
thek4n 2026-03-21 01:03:22 +03:00
parent 4121f3481c
commit 40b877a4d9
4 changed files with 12 additions and 3 deletions

2
Cargo.lock generated
View File

@ -687,7 +687,7 @@ checksum = "0e7465ac9959cc2b1404e8e2367b43684a6d13790fe23056cc8c6c5a6b7bcb94"
[[package]] [[package]]
name = "mdpreview" name = "mdpreview"
version = "0.1.1" version = "0.1.2"
dependencies = [ dependencies = [
"axum", "axum",
"clap", "clap",

View File

@ -1,6 +1,6 @@
[package] [package]
name = "mdpreview" name = "mdpreview"
version = "0.1.1" version = "0.1.2"
edition = "2024" edition = "2024"
authors = ["Vladislav Kan <thek4n@yandex.ru>"] authors = ["Vladislav Kan <thek4n@yandex.ru>"]

View File

@ -41,7 +41,7 @@ struct Args {
host: String, host: String,
/// Port to listen /// Port to listen
#[arg(short, long, default_value_t = 8000)] #[arg(short, long, default_value_t = 8080)]
port: u16, port: u16,
/// Markdown documents directory root /// Markdown documents directory root

View File

@ -34,6 +34,9 @@
.disconnected { background-color: #e74c3c; color: #fff; } .disconnected { background-color: #e74c3c; color: #fff; }
.reconnecting { background-color: #f1c40f; color: #000; } .reconnecting { background-color: #f1c40f; color: #000; }
.footer { margin-top: 30px; color: #666; font-size: 0.9em; border-top: 1px solid #333; padding-top: 15px; }
.footer a { color: #757575; }
img { img {
max-width: 100%; max-width: 100%;
height: auto; height: auto;
@ -53,7 +56,13 @@
</a> </a>
</div> </div>
{{CONTENT}} {{CONTENT}}
<div class="footer">
<a href="/">На главную</a>
<a href="/random">🎲 Случайный файл</a>
</div> </div>
</div>
<script> <script>
const sseUrl = "{{SSE_URL}}"; const sseUrl = "{{SSE_URL}}";