diff --git a/web/src/lib.rs b/web/src/lib.rs index 8665ffd..2eab0b6 100644 --- a/web/src/lib.rs +++ b/web/src/lib.rs @@ -90,7 +90,10 @@ pub async fn initialize( routes::help, routes::help_timezone, routes::help_create_reminder, - routes::help_delete_reminder + routes::help_delete_reminder, + routes::help_timers, + routes::help_todo_lists, + routes::help_macros, ], ) .mount("/login", routes![routes::login::discord_login, routes::login::discord_callback]) diff --git a/web/src/routes/mod.rs b/web/src/routes/mod.rs index 01ceb0f..d60fab1 100644 --- a/web/src/routes/mod.rs +++ b/web/src/routes/mod.rs @@ -68,3 +68,21 @@ pub async fn help_delete_reminder() -> Template { let map: HashMap<&str, String> = HashMap::new(); Template::render("support/delete_reminder", &map) } + +#[get("/timers")] +pub async fn help_timers() -> Template { + let map: HashMap<&str, String> = HashMap::new(); + Template::render("support/timers", &map) +} + +#[get("/todo_lists")] +pub async fn help_todo_lists() -> Template { + let map: HashMap<&str, String> = HashMap::new(); + Template::render("support/todo_lists", &map) +} + +#[get("/macros")] +pub async fn help_macros() -> Template { + let map: HashMap<&str, String> = HashMap::new(); + Template::render("support/macros", &map) +} diff --git a/web/templates/help.html.tera b/web/templates/help.html.tera index c268f87..72f20d0 100644 --- a/web/templates/help.html.tera +++ b/web/templates/help.html.tera @@ -57,18 +57,39 @@

Timers

Learn to manage timers

+
+ +

+ Read +

+
+

Todo Lists

Learn to manage various todo lists

+

Macros

Learn how to create combination commands called macros, to suit advanced use cases

+
diff --git a/web/templates/support/create_reminder.html.tera b/web/templates/support/create_reminder.html.tera index 1b20ee9..0c35b42 100644 --- a/web/templates/support/create_reminder.html.tera +++ b/web/templates/support/create_reminder.html.tera @@ -3,9 +3,8 @@ {% block init %} {% set title = "Support" %} - {% set page_title = "Timezone Help" %} - {% set page_subtitle = "Timezones are tricky. Read on for help" %} - {% set show_invite = false %} + {% set page_title = "Create Reminders" %} + {% set page_subtitle = "" %} {% endblock %} {% block content %} diff --git a/web/templates/support/delete_reminder.html.tera b/web/templates/support/delete_reminder.html.tera index c406174..5b403fd 100644 --- a/web/templates/support/delete_reminder.html.tera +++ b/web/templates/support/delete_reminder.html.tera @@ -3,8 +3,8 @@ {% block init %} {% set title = "Support" %} - {% set page_title = "Timezone Help" %} - {% set page_subtitle = "Timezones are tricky. Read on for help" %} + {% set page_title = "Deleting Reminders" %} + {% set page_subtitle = "" %} {% set show_invite = false %} {% endblock %} diff --git a/web/templates/support/macros.html.tera b/web/templates/support/macros.html.tera new file mode 100644 index 0000000..4e2ce24 --- /dev/null +++ b/web/templates/support/macros.html.tera @@ -0,0 +1,23 @@ +{% extends "base" %} + +{% block init %} + {% set title = "Support" %} + + {% set page_title = "Manage Macros" %} + {% set page_subtitle = "For advanced functionality" %} + {% set show_invite = false %} +{% endblock %} + +{% block content %} + +
+
+
+

Create macros via commands

+

+

+
+
+
+ +{% endblock %} diff --git a/web/templates/support/timers.html.tera b/web/templates/support/timers.html.tera new file mode 100644 index 0000000..54253d9 --- /dev/null +++ b/web/templates/support/timers.html.tera @@ -0,0 +1,23 @@ +{% extends "base" %} + +{% block init %} + {% set title = "Support" %} + + {% set page_title = "Timers" %} + {% set page_subtitle = "" %} + {% set show_invite = false %} +{% endblock %} + +{% block content %} + +
+
+
+

Create timers via commands

+

+

+
+
+
+ +{% endblock %} diff --git a/web/templates/support/todo_lists.html.tera b/web/templates/support/todo_lists.html.tera new file mode 100644 index 0000000..7bb516b --- /dev/null +++ b/web/templates/support/todo_lists.html.tera @@ -0,0 +1,23 @@ +{% extends "base" %} + +{% block init %} + {% set title = "Support" %} + + {% set page_title = "Todo lists" %} + {% set page_subtitle = "" %} + {% set show_invite = false %} +{% endblock %} + +{% block content %} + +
+
+
+

Add to todo lists via commands

+

+

+
+
+
+ +{% endblock %}