summaryrefslogtreecommitdiffhomepage
path: root/templates/base.templ
blob: 88a9e77527112cf600c82932ec181a61c39b58ef (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
package templates

import "git.thomasvoss.com/euro-cash.eu/i18n"

templ Base(head, body templ.Component) {
	{{ p := ctx.Value("printer").(i18n.Printer) }}
	<!DOCTYPE html>
	<html lang={ p.Locale.Bcp } 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>
}