diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/admin_dashboard.rs.html | 10 | ||||
-rw-r--r-- | templates/admin_login.rs.html | 12 | ||||
-rw-r--r-- | templates/base.rs.html | 19 | ||||
-rw-r--r-- | templates/error.rs.html | 9 |
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> +}) |