diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/coins_designs_nl.templ | 48 | ||||
-rw-r--r-- | templates/coins_designs_nl_templ.go | 137 |
2 files changed, 185 insertions, 0 deletions
diff --git a/templates/coins_designs_nl.templ b/templates/coins_designs_nl.templ new file mode 100644 index 0000000..6689e15 --- /dev/null +++ b/templates/coins_designs_nl.templ @@ -0,0 +1,48 @@ +package templates + +import "git.thomasvoss.com/euro-cash.eu/i18n" + +templ CoinsDesignsNl() { + {{ p := ctx.Value("printer").(i18n.Printer) }} + <header> + @navbar() + <h1>{ p.T("Dutch Euro Coin Designs") }</h1> + </header> + <main> + <p> + { p.T("From 1999 to 2013, all Dutch denominations bore a portrait of Queen Beatrix of the Netherlands. Beginning in 2014 following her abdication, the coins began to bear the portrait of her son King Willem-Alexander.") } + </p> + <h2>{ p.T("1-, 2-, 5-, 10-, 20- and 50 Euro Cent Coins") }</h2> + <div class="design-container"> + <img + src="/designs/nl-050-beatrix.png" + alt="Netherlands Queen Beatrix 50 Euro Cent Coin" + /> + <img + src="/designs/nl-050-willem-alexander.png" + alt="Netherlands King Willem-Alexander 50 Euro Cent Coin" + /> + </div> + <p> + { p.T("All the denominations under a euro bear the same design. The coins featuring Queen Beatrix have a small portrait surrounded by various dots and the 12 stars of Europe. In the coins featuring King Willem-Alexander the stars were moved farther out and the dots removed to allow for a larger and more detailed portrait. The coins featuring King Willem-Alexander also feature the text ‘Willem-Alexander — Koning der Nederlanden’ (‘Willem-Alexander — King of the Netherlands’).") } + </p> + <h2>{ p.T("1- and 2 Euro Coins") }</h2> + <div class="design-container"> + <img + src="/designs/nl-100-beatrix.png" + alt="Netherlands Queen Beatrix 1 Euro Coin" + /> + <img + src="/designs/nl-100-willem-alexander.png" + alt="Netherlands King Willem-Alexander 1 Euro Coin" + /> + </div> + <p> + { p.T("The 1- and 2 Euro designs have more detailed portraits than the cent coins but follow the same general theme. The coins featuring King Willem-Alexander includes the same text as the cent coins while the coins featuring Queen Beatrix now feature the text ‘BEATRIX — KONINGIN DER NEDERLANDEN’ (‘BEATRIX — QUEEN OF THE NETHERLANDS’).") } + </p> + <p> + <!-- TODO: Link to ‘relief’ in the Jargon page! --> + { p.T("The coins featuring King Willem-Alexander are minted with very low-relief in comparison to the coins featuring Queen Beatrix. As a result these coins often look very worn after little time in circulation.") } + </p> + </main> +} diff --git a/templates/coins_designs_nl_templ.go b/templates/coins_designs_nl_templ.go new file mode 100644 index 0000000..de5961f --- /dev/null +++ b/templates/coins_designs_nl_templ.go @@ -0,0 +1,137 @@ +// Code generated by templ - DO NOT EDIT. + +// templ: version: v0.2.747 +package templates + +//lint:file-ignore SA4006 This context is only used if a nested component is present. + +import "github.com/a-h/templ" +import templruntime "github.com/a-h/templ/runtime" + +import "git.thomasvoss.com/euro-cash.eu/i18n" + +func CoinsDesignsNl() templ.Component { + return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { + templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) + if !templ_7745c5c3_IsBuffer { + defer func() { + templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer) + if templ_7745c5c3_Err == nil { + templ_7745c5c3_Err = templ_7745c5c3_BufErr + } + }() + } + ctx = templ.InitializeContext(ctx) + templ_7745c5c3_Var1 := templ.GetChildren(ctx) + if templ_7745c5c3_Var1 == nil { + templ_7745c5c3_Var1 = templ.NopComponent + } + ctx = templ.ClearChildren(ctx) + p := ctx.Value("printer").(i18n.Printer) + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<header>") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + templ_7745c5c3_Err = navbar().Render(ctx, templ_7745c5c3_Buffer) + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<h1>") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + var templ_7745c5c3_Var2 string + templ_7745c5c3_Var2, templ_7745c5c3_Err = templ.JoinStringErrs(p.T("Dutch Euro Coin Designs")) + if templ_7745c5c3_Err != nil { + return templ.Error{Err: templ_7745c5c3_Err, FileName: `coins_designs_nl.templ`, Line: 9, Col: 38} + } + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var2)) + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</h1></header><main><p>") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + var templ_7745c5c3_Var3 string + templ_7745c5c3_Var3, templ_7745c5c3_Err = templ.JoinStringErrs(p.T("From 1999 to 2013, all Dutch denominations bore a portrait of Queen Beatrix of the Netherlands. Beginning in 2014 following her abdication, the coins began to bear the portrait of her son King Willem-Alexander.")) + if templ_7745c5c3_Err != nil { + return templ.Error{Err: templ_7745c5c3_Err, FileName: `coins_designs_nl.templ`, Line: 13, Col: 222} + } + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var3)) + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</p><h2>") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + var templ_7745c5c3_Var4 string + templ_7745c5c3_Var4, templ_7745c5c3_Err = templ.JoinStringErrs(p.T("1-, 2-, 5-, 10-, 20- and 50 Euro Cent Coins")) + if templ_7745c5c3_Err != nil { + return templ.Error{Err: templ_7745c5c3_Err, FileName: `coins_designs_nl.templ`, Line: 15, Col: 58} + } + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var4)) + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</h2><div class=\"design-container\"><img src=\"/designs/nl-050-beatrix.png\" alt=\"Netherlands Queen Beatrix 50 Euro Cent Coin\"> <img src=\"/designs/nl-050-willem-alexander.png\" alt=\"Netherlands King Willem-Alexander 50 Euro Cent Coin\"></div><p>") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + var templ_7745c5c3_Var5 string + templ_7745c5c3_Var5, templ_7745c5c3_Err = templ.JoinStringErrs(p.T("All the denominations under a euro bear the same design. The coins featuring Queen Beatrix have a small portrait surrounded by various dots and the 12 stars of Europe. In the coins featuring King Willem-Alexander the stars were moved farther out and the dots removed to allow for a larger and more detailed portrait. The coins featuring King Willem-Alexander also feature the text ‘Willem-Alexander — Koning der Nederlanden’ (‘Willem-Alexander — King of the Netherlands’).")) + if templ_7745c5c3_Err != nil { + return templ.Error{Err: templ_7745c5c3_Err, FileName: `coins_designs_nl.templ`, Line: 27, Col: 498} + } + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var5)) + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</p><h2>") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + var templ_7745c5c3_Var6 string + templ_7745c5c3_Var6, templ_7745c5c3_Err = templ.JoinStringErrs(p.T("1- and 2 Euro Coins")) + if templ_7745c5c3_Err != nil { + return templ.Error{Err: templ_7745c5c3_Err, FileName: `coins_designs_nl.templ`, Line: 29, Col: 34} + } + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var6)) + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</h2><div class=\"design-container\"><img src=\"/designs/nl-100-beatrix.png\" alt=\"Netherlands Queen Beatrix 1 Euro Coin\"> <img src=\"/designs/nl-100-willem-alexander.png\" alt=\"Netherlands King Willem-Alexander 1 Euro Coin\"></div><p>") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + var templ_7745c5c3_Var7 string + templ_7745c5c3_Var7, templ_7745c5c3_Err = templ.JoinStringErrs(p.T("The 1- and 2 Euro designs have more detailed portraits than the cent coins but follow the same general theme. The coins featuring King Willem-Alexander includes the same text as the cent coins while the coins featuring Queen Beatrix now feature the text ‘BEATRIX — KONINGIN DER NEDERLANDEN’ (‘BEATRIX — QUEEN OF THE NETHERLANDS’).")) + if templ_7745c5c3_Err != nil { + return templ.Error{Err: templ_7745c5c3_Err, FileName: `coins_designs_nl.templ`, Line: 41, Col: 355} + } + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var7)) + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</p><p><!-- TODO: Link to ‘relief’ in the Jargon page! -->") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + var templ_7745c5c3_Var8 string + templ_7745c5c3_Var8, templ_7745c5c3_Err = templ.JoinStringErrs(p.T("The coins featuring King Willem-Alexander are minted with very low-relief in comparison to the coins featuring Queen Beatrix. As a result these coins often look very worn after little time in circulation.")) + if templ_7745c5c3_Err != nil { + return templ.Error{Err: templ_7745c5c3_Err, FileName: `coins_designs_nl.templ`, Line: 45, Col: 216} + } + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var8)) + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</p></main>") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + return templ_7745c5c3_Err + }) +} |