diff options
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/admin.html | 22 | ||||
| -rw-r--r-- | templates/base.html | 18 |
2 files changed, 40 insertions, 0 deletions
diff --git a/templates/admin.html b/templates/admin.html new file mode 100644 index 0000000..c0ebeaa --- /dev/null +++ b/templates/admin.html @@ -0,0 +1,22 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <title>Admin — {{.Title}}</title> + <link rel="stylesheet" href="/styles/main.css"> + <link rel="stylesheet" href="/styles/admin.css"> + {{.ImportMapTag}} + {{- range .ComponentScripts}} + <script type="module" src="{{.}}"></script> + {{- end}} +</head> +<body class="admin"> + <nav class="admin-nav"> + <a href="/admin/">Dashboard</a> + </nav> + <main> + {{.Content}} + </main> +</body> +</html> diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..9128b2e --- /dev/null +++ b/templates/base.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <title>{{.Title}}</title> + <link rel="stylesheet" href="/styles/main.css"> + {{.ImportMapTag}} + {{- range .ComponentScripts}} + <script type="module" src="{{.}}"></script> + {{- end}} +</head> +<body> + <main> + {{.Content}} + </main> +</body> +</html> |
