header+footer

This commit is contained in:
Florian Baumann 2023-02-27 16:28:34 +01:00
parent 04d5f20b46
commit dfaa79d12a
2 changed files with 21 additions and 10 deletions

View File

@ -49,9 +49,10 @@ func landingPage(c *gin.Context) {
cards := Cards("", query.Set, query.Sort, query.Name, "", "")
sets := Sets("release")
c.HTML(http.StatusOK, "index.tmpl", gin.H{
"title": "Serraaaa",
"cards": cards,
"sets": sets,
"title": "Serra",
"cards": cards,
"sets": sets,
"version": Version,
})
}
}

View File

@ -38,18 +38,18 @@
<body>
<!-- Site Title -->
<section class="section">
<div class="container">
<div class="block">
<h1 class="title is-1">
Serra
</h1>
<div class="container">
<section class="hero is-primary">
<div class="hero-body">
<p class="title">
{{ .title }}
</p>
<p class="subtitle">
<i>Magic: The Gathering</i> Collection
</p>
</div>
</div>
</section>
</div>
<!-- Nav Bar -->
<section class="section">
@ -183,4 +183,14 @@
document.getElementById("sort").value = selectedSortVal;
</script>
<div class="container">
<footer class="footer">
<div class="content has-text-centered">
<p>
<strong>Serra</strong> Version {{ .version }} by <a href="https://noqqe.de">noqqe</a>.
<a href="http://opensource.org/licenses/mit-license.php">MIT</a>.
</p>
</div>
</footer>
</div>
</html>