diff options
| author | mo khan <mo@mokhan.ca> | 2025-04-21 22:40:14 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-04-21 22:40:14 -0600 |
| commit | 04120f5bfe0934f82745ea6783f0c785bbcd1050 (patch) | |
| tree | 89b7946f120bb91444c204c71cbd5923a67a357a /app/views/dashboard | |
| parent | d674365b49f94b7d8f50411350287113a13509c1 (diff) | |
refactor: extract views package to render html templates
Diffstat (limited to 'app/views/dashboard')
| -rw-r--r-- | app/views/dashboard/show.html.tmpl | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/app/views/dashboard/show.html.tmpl b/app/views/dashboard/show.html.tmpl new file mode 100644 index 0000000..5293117 --- /dev/null +++ b/app/views/dashboard/show.html.tmpl @@ -0,0 +1,27 @@ +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <meta name="color-scheme" content="light dark"> + <title>SparkleLab</title> + <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.min.css"> + </head> + <body> + <main class="container"> + <nav> + <ul> + <li><strong>SparkleLab</strong></li> + </ul> + <ul> + <li><a href="/session/new">Login</a></li> + </ul> + </nav> + {{range .Sparkles}} + <div>{{ . }}</div> + {{else}} + <div><strong>No Sparkles</strong></div> + {{end}} + </main> + </body> +</html> |
