show commit on main page

This commit is contained in:
Laptop
2024-12-29 22:44:26 +02:00
parent 5ee5805a62
commit d7fe4d95de
2 changed files with 12 additions and 8 deletions

View File

@@ -17,7 +17,7 @@
padding-bottom: 1rem;
}
footer {
footer > div {
margin-top: 5rem;
gap: 1rem;
display: grid;

View File

@@ -51,13 +51,17 @@ templ MainPage(p cfg.Preferences) {
</div>
<input type="submit" value="Search" class="btn" style="width: 100%; margin-top: .5rem;"/>
</form>
<footer>
<a class="btn" href="/_/featured">Featured Tracks</a>
<a class="btn" href="/discover">Discover Playlists</a>
<a class="btn" href="/_/preferences">Preferences</a>
<a class="btn" href="https://git.maid.zone/stuff/soundcloak">Source code</a>
<a class="btn" href="/_/static/notice.txt">Legal notice</a>
<div>
<a class="btn" href="/_/featured">Featured Tracks</a>
<a class="btn" href="/discover">Discover Playlists</a>
<a class="btn" href="/_/preferences">Preferences</a>
<a class="btn" href="https://git.maid.zone/stuff/soundcloak">Source code</a>
<a class="btn" href="/_/static/notice.txt">Legal notice</a>
</div>
if cfg.Commit != "unknown" {
<p style="text-align: center;">Build <a class="link" href={cfg.CommitURL}>{cfg.Commit}</a></p>
}
</footer>
}