summaryrefslogtreecommitdiffhomepage
path: root/templates/coins.templ
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-08-08 21:32:28 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-08-08 21:32:28 +0200
commit0f3b1051228328718798fe0b40d02fdb72e3481f (patch)
tree2e3035d10e2ce7dcae2461615e6f428d7ab1a2cd /templates/coins.templ
parentd02494343cbf2d77fa16e2c3ee56426c73654135 (diff)
Rename some components
Diffstat (limited to 'templates/coins.templ')
-rw-r--r--templates/coins.templ53
1 files changed, 53 insertions, 0 deletions
diff --git a/templates/coins.templ b/templates/coins.templ
new file mode 100644
index 0000000..050d7e8
--- /dev/null
+++ b/templates/coins.templ
@@ -0,0 +1,53 @@
+package templates
+
+import "git.thomasvoss.com/euro-cash.eu/i18n"
+
+const newsLinkStart = `<a href="/news">`
+
+templ Coins() {
+ {{ p := ctx.Value("printer").(i18n.Printer) }}
+ <header>
+ @navbar()
+ <h1>{ p.T("Euro Coins") }</h1>
+ </header>
+ <main>
+ <p>
+ @templ.Raw(p.T("On this section of the site you can find everything there is to know about the coins of the Eurozone. For the latest news on coin- and design releases, check out the %snews%s tab!", newsLinkStart, linkEnd))
+ </p>
+ <hr/>
+ <section>
+ <div class="grid">
+ <a class="no-deco" href="/coins/designs">
+ <article>
+ <header>
+ <h3>{ p.T("Designs") }</h3>
+ </header>
+ <main>
+ { p.T("View the 600+ different Euro-coin designs!") }
+ </main>
+ </article>
+ </a>
+ <a class="no-deco" href="#TODO">
+ <article>
+ <header>
+ <h3>{ p.T("Mintages") }</h3>
+ </header>
+ <main>
+ { p.T("View the mintage figures of all the Euro coins!") }
+ </main>
+ </article>
+ </a>
+ <a class="no-deco" href="#TODO">
+ <article>
+ <header>
+ <h3>{ p.T("Varieties") }</h3>
+ </header>
+ <main>
+ { p.T("View all the known Euro varieties!") }
+ </main>
+ </article>
+ </a>
+ </div>
+ </section>
+ </main>
+}