blob: 80b4a9544206c29b333aebfe5b4c92c32aaeca45 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
package templates
import "git.thomasvoss.com/euro-cash.eu/i18n"
templ Root(head, body templ.Component) {
{{ p := ctx.Value("printer").(i18n.Printer) }}
<!DOCTYPE html>
<html lang={ p.Locale.Code } data-theme={ ctx.Value("theme").(string) }>
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<link rel="stylesheet" type="text/css" href="/style.css"/>
<title>Euro Cash</title>
if head != nil {
@head
}
</head>
<body>
if body != nil {
@body
}
<footer>
<p>
<small>
{ p.T("Found a mistake or want to contribute missing information?") }
<a href="/">{ p.T("Feel free to contact us!") }</a>
</small>
</p>
</footer>
</body>
</html>
}
templ Index() {
{{ p := ctx.Value("printer").(i18n.Printer) }}
<header>
@navbar()
<hgroup>
<h1>{ p.T("The Euro Cash Compendium") }</h1>
<p>
{ p.T("United in") }
<del>{ p.T("diversity") }</del>
<ins>{ p.T("cash") }</ins>
</p>
</hgroup>
</header>
<main>
<p>
{ p.T("Welcome to the Euro Cash Compendium. This sites aims to be a resource for you to discover everything there is to know about the coins and banknotes of the Euro, a currency that spans 26 countries and 350 million people. We also have dedicated sections of the site for collectors.") }
</p>
</main>
}
|