summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-09-21 10:09:37 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-09-21 10:09:37 +0200
commit492f2df4e93fa151e7809203bca7b92379694665 (patch)
treee9445154ab357d44c1bdf9d708fc64056a4aae25
parent33542dac57469b1b988de86be10dcc2c4abc8166 (diff)
Migrate /coins to Go templates
-rw-r--r--src/templates.go1
-rw-r--r--src/templates/coins.html.tmpl46
2 files changed, 47 insertions, 0 deletions
diff --git a/src/templates.go b/src/templates.go
index 3e34f47..6649b28 100644
--- a/src/templates.go
+++ b/src/templates.go
@@ -23,6 +23,7 @@ var (
templates = map[string]*template.Template{
"/": buildTemplate("index"),
"/about": buildTemplate("about"),
+ "/coins": buildTemplate("coins"),
"/jargon": buildTemplate("jargon"),
"/language": buildTemplate("language"),
}
diff --git a/src/templates/coins.html.tmpl b/src/templates/coins.html.tmpl
new file mode 100644
index 0000000..d231ed5
--- /dev/null
+++ b/src/templates/coins.html.tmpl
@@ -0,0 +1,46 @@
+{{ define "content" }}
+<header>
+ {{ template "navbar" . }}
+ <h1>{{ .T "Euro Coins" }}</h1>
+</header>
+<main>
+ <p>
+ {{ .T "On this section of the site you can find everything there is to know about the coins of the Eurozone." }}
+ </p>
+ <hr />
+ <section>
+ <div class="grid">
+ <a class="no-deco" href="/coins/designs">
+ <article>
+ <header>
+ <h3>{{ .T "Designs" }}</h3>
+ </header>
+ <main>
+ {{ .T "View the 600+ different Euro-coin designs!" }}
+ </main>
+ </article>
+ </a>
+ <a class="no-deco" href="/coins/mintages">
+ <article>
+ <header>
+ <h3>{{ .T "Mintages" }}</h3>
+ </header>
+ <main>
+ {{ .T "View the mintage figures of all the Euro coins!" }}
+ </main>
+ </article>
+ </a>
+ <a class="no-deco" href="/coins/varieties">
+ <article>
+ <header>
+ <h3>{{ .T "Varieties" }}</h3>
+ </header>
+ <main>
+ {{ .T "View all the known Euro varieties!" }}
+ </main>
+ </article>
+ </a>
+ </div>
+ </section>
+</main>
+{{ end }}