summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorLibravatar cel 🌸 <cel@blos.sm>2024-11-14 17:59:21 +0000
committerLibravatar cel 🌸 <cel@blos.sm>2024-11-14 17:59:21 +0000
commit469a3ad33914f7eff6edc9ca7fabb12f2950da84 (patch)
tree2712ba2e927fb820b6aa58443c9227d1da24a03f /templates
parentb7a2265e9b29d8fa09f84f5213ef7f8ed3045ca6 (diff)
downloadcritch-469a3ad33914f7eff6edc9ca7fabb12f2950da84.tar.gz
critch-469a3ad33914f7eff6edc9ca7fabb12f2950da84.tar.bz2
critch-469a3ad33914f7eff6edc9ca7fabb12f2950da84.zip
database work
Diffstat (limited to 'templates')
-rw-r--r--templates/admin_dashboard.rs.html10
-rw-r--r--templates/admin_login.rs.html12
-rw-r--r--templates/base.rs.html19
-rw-r--r--templates/error.rs.html9
4 files changed, 50 insertions, 0 deletions
diff --git a/templates/admin_dashboard.rs.html b/templates/admin_dashboard.rs.html
new file mode 100644
index 0000000..cf7d27c
--- /dev/null
+++ b/templates/admin_dashboard.rs.html
@@ -0,0 +1,10 @@
+@use super::base_html;
+
+@()
+
+@:base_html({
+<form action="/admin/logout" method="post">
+ <button type="logout">log out</button>
+</form>
+})
+
diff --git a/templates/admin_login.rs.html b/templates/admin_login.rs.html
new file mode 100644
index 0000000..de31c44
--- /dev/null
+++ b/templates/admin_login.rs.html
@@ -0,0 +1,12 @@
+@use super::base_html;
+
+@()
+
+@:base_html({
+<form action="/admin/login" method="post">
+ <label for="password">admin password:</label>
+ <input type="text" id="password" name="password" required="true" />
+ <button type="submit">log in</button>
+</form>
+})
+
diff --git a/templates/base.rs.html b/templates/base.rs.html
new file mode 100644
index 0000000..1b8e63b
--- /dev/null
+++ b/templates/base.rs.html
@@ -0,0 +1,19 @@
+@use super::statics::*;
+
+@(body: Content)
+
+<!DOCTYPE html>
+<html>
+
+<head>
+ <meta charset="UTF-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
+ <link rel="stylesheet" type="text/css" href="/static/style.css" />
+ <title>pinussy</title>
+</head>
+
+<body>
+ @:body()
+</body>
+
+</html>
diff --git a/templates/error.rs.html b/templates/error.rs.html
new file mode 100644
index 0000000..66b6861
--- /dev/null
+++ b/templates/error.rs.html
@@ -0,0 +1,9 @@
+@use super::base_html;
+@use poem::http::StatusCode;
+
+@(status: &str, message: &str)
+
+@:base_html({
+<h1>error @status</h1>
+<h2>@message</h2>
+})