From 5d395d4ed73061b247c32dc63db6ddfa2dd62d39 Mon Sep 17 00:00:00 2001 From: cel 🌸 Date: Wed, 4 Oct 2023 19:55:17 +0100 Subject: initial commit --- templates/base.rs.html | 26 ++++++++++++++++++++++++++ templates/error.rs.html | 24 ++++++++++++++++++++++++ templates/login.rs.html | 15 +++++++++++++++ templates/signup.rs.html | 13 +++++++++++++ templates/users.rs.html | 12 ++++++++++++ 5 files changed, 90 insertions(+) create mode 100644 templates/base.rs.html create mode 100644 templates/error.rs.html create mode 100644 templates/login.rs.html create mode 100644 templates/signup.rs.html create mode 100644 templates/users.rs.html (limited to 'templates') diff --git a/templates/base.rs.html b/templates/base.rs.html new file mode 100644 index 0000000..5b1a324 --- /dev/null +++ b/templates/base.rs.html @@ -0,0 +1,26 @@ +@use super::statics::*; + +@(authenticated: bool, body: Content) + + + + + + + + + pinussy + + + + + @:body() + + + \ No newline at end of file diff --git a/templates/error.rs.html b/templates/error.rs.html new file mode 100644 index 0000000..cebb935 --- /dev/null +++ b/templates/error.rs.html @@ -0,0 +1,24 @@ +@use super::statics::*; +@use actix_web::http::StatusCode; + +@(code: StatusCode, message: &str) + + + + + + Error @code.as_u16(): @code.canonical_reason().unwrap_or("error") + + + + + +
+

@code.canonical_reason().unwrap_or("error")

+ +

@message

+

oopsie!

+
+ + + \ No newline at end of file diff --git a/templates/login.rs.html b/templates/login.rs.html new file mode 100644 index 0000000..349263c --- /dev/null +++ b/templates/login.rs.html @@ -0,0 +1,15 @@ +@use super::base_html; + +@() + +@:base_html(false, { +
+ + + + + + + +
+}) \ No newline at end of file diff --git a/templates/signup.rs.html b/templates/signup.rs.html new file mode 100644 index 0000000..354dae6 --- /dev/null +++ b/templates/signup.rs.html @@ -0,0 +1,13 @@ +@use super::base_html; + +@() + +@:base_html(false, { +
+ + + + + +
+}) \ No newline at end of file diff --git a/templates/users.rs.html b/templates/users.rs.html new file mode 100644 index 0000000..9b9be30 --- /dev/null +++ b/templates/users.rs.html @@ -0,0 +1,12 @@ +@use super::base_html; +@use crate::User; + +@(users: Vec) + +@:base_html(false, { + +}) \ No newline at end of file -- cgit