feat(title): add footer
This commit is contained in:
parent
4121f3481c
commit
40b877a4d9
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -687,7 +687,7 @@ checksum = "0e7465ac9959cc2b1404e8e2367b43684a6d13790fe23056cc8c6c5a6b7bcb94"
|
||||
|
||||
[[package]]
|
||||
name = "mdpreview"
|
||||
version = "0.1.1"
|
||||
version = "0.1.2"
|
||||
dependencies = [
|
||||
"axum",
|
||||
"clap",
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "mdpreview"
|
||||
version = "0.1.1"
|
||||
version = "0.1.2"
|
||||
edition = "2024"
|
||||
authors = ["Vladislav Kan <thek4n@yandex.ru>"]
|
||||
|
||||
|
||||
@ -41,7 +41,7 @@ struct Args {
|
||||
host: String,
|
||||
|
||||
/// Port to listen
|
||||
#[arg(short, long, default_value_t = 8000)]
|
||||
#[arg(short, long, default_value_t = 8080)]
|
||||
port: u16,
|
||||
|
||||
/// Markdown documents directory root
|
||||
|
||||
@ -34,6 +34,9 @@
|
||||
.disconnected { background-color: #e74c3c; color: #fff; }
|
||||
.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 {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
@ -53,7 +56,13 @@
|
||||
</a>
|
||||
</div>
|
||||
{{CONTENT}}
|
||||
|
||||
<div class="footer">
|
||||
<a href="/">← На главную</a>
|
||||
<a href="/random">🎲 Случайный файл</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<script>
|
||||
const sseUrl = "{{SSE_URL}}";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user