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, "", "") cards := Cards("", query.Set, query.Sort, query.Name, "", "")
sets := Sets("release") sets := Sets("release")
c.HTML(http.StatusOK, "index.tmpl", gin.H{ c.HTML(http.StatusOK, "index.tmpl", gin.H{
"title": "Serraaaa", "title": "Serra",
"cards": cards, "cards": cards,
"sets": sets, "sets": sets,
"version": Version,
}) })
} }
} }

View File

@ -38,18 +38,18 @@
<body> <body>
<!-- Site Title --> <!-- Site Title -->
<section class="section">
<div class="container"> <div class="container">
<div class="block"> <section class="hero is-primary">
<h1 class="title is-1"> <div class="hero-body">
Serra <p class="title">
</h1> {{ .title }}
</p>
<p class="subtitle"> <p class="subtitle">
<i>Magic: The Gathering</i> Collection <i>Magic: The Gathering</i> Collection
</p> </p>
</div> </div>
</div>
</section> </section>
</div>
<!-- Nav Bar --> <!-- Nav Bar -->
<section class="section"> <section class="section">
@ -183,4 +183,14 @@
document.getElementById("sort").value = selectedSortVal; document.getElementById("sort").value = selectedSortVal;
</script> </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> </html>