support articles

This commit is contained in:
jude 2022-03-20 21:41:38 +00:00
parent 9e6a387f82
commit 93da746bdc
8 changed files with 116 additions and 6 deletions

View File

@ -90,7 +90,10 @@ pub async fn initialize(
routes::help, routes::help,
routes::help_timezone, routes::help_timezone,
routes::help_create_reminder, 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]) .mount("/login", routes![routes::login::discord_login, routes::login::discord_callback])

View File

@ -68,3 +68,21 @@ pub async fn help_delete_reminder() -> Template {
let map: HashMap<&str, String> = HashMap::new(); let map: HashMap<&str, String> = HashMap::new();
Template::render("support/delete_reminder", &map) 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)
}

View File

@ -57,18 +57,39 @@
<article class="tile is-child notification"> <article class="tile is-child notification">
<p class="title">Timers</p> <p class="title">Timers</p>
<p class="subtitle">Learn to manage timers</p> <p class="subtitle">Learn to manage timers</p>
<div class="content has-text-centered">
<a class="button is-size-4 is-rounded is-light" href="/help/timers">
<p class="is-size-4">
Read <span class="icon"><i class="fas fa-chevron-right"></i></span>
</p>
</a>
</div>
</article> </article>
</div> </div>
<div class="tile is-parent"> <div class="tile is-parent">
<article class="tile is-child notification"> <article class="tile is-child notification">
<p class="title">Todo Lists</p> <p class="title">Todo Lists</p>
<p class="subtitle">Learn to manage various todo lists</p> <p class="subtitle">Learn to manage various todo lists</p>
<div class="content has-text-centered">
<a class="button is-size-4 is-rounded is-light" href="/help/todo_lists">
<p class="is-size-4">
Read <span class="icon"><i class="fas fa-chevron-right"></i></span>
</p>
</a>
</div>
</article> </article>
</div> </div>
<div class="tile is-parent is-vertical"> <div class="tile is-parent is-vertical">
<article class="tile is-child notification"> <article class="tile is-child notification">
<p class="title">Macros</p> <p class="title">Macros</p>
<p class="subtitle">Learn how to create combination commands called macros, to suit advanced use cases</p> <p class="subtitle">Learn how to create combination commands called macros, to suit advanced use cases</p>
<div class="content has-text-centered">
<a class="button is-size-4 is-rounded is-light" href="/help/macros">
<p class="is-size-4">
Read <span class="icon"><i class="fas fa-chevron-right"></i></span>
</p>
</a>
</div>
</article> </article>
</div> </div>
</div> </div>

View File

@ -3,9 +3,8 @@
{% block init %} {% block init %}
{% set title = "Support" %} {% set title = "Support" %}
{% set page_title = "Timezone Help" %} {% set page_title = "Create Reminders" %}
{% set page_subtitle = "Timezones are tricky. Read on for help" %} {% set page_subtitle = "" %}
{% set show_invite = false %}
{% endblock %} {% endblock %}
{% block content %} {% block content %}

View File

@ -3,8 +3,8 @@
{% block init %} {% block init %}
{% set title = "Support" %} {% set title = "Support" %}
{% set page_title = "Timezone Help" %} {% set page_title = "Deleting Reminders" %}
{% set page_subtitle = "Timezones are tricky. Read on for help" %} {% set page_subtitle = "" %}
{% set show_invite = false %} {% set show_invite = false %}
{% endblock %} {% endblock %}

View File

@ -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 %}
<section class="hero is-small">
<div class="hero-body">
<div class="container">
<p class="title">Create macros via commands</p>
<p class="content">
</p>
</div>
</div>
</section>
{% endblock %}

View File

@ -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 %}
<section class="hero is-small">
<div class="hero-body">
<div class="container">
<p class="title">Create timers via commands</p>
<p class="content">
</p>
</div>
</div>
</section>
{% endblock %}

View File

@ -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 %}
<section class="hero is-small">
<div class="hero-body">
<div class="container">
<p class="title">Add to todo lists via commands</p>
<p class="content">
</p>
</div>
</div>
</section>
{% endblock %}