support articles

This commit is contained in:
jude 2022-03-20 21:04:24 +00:00
parent af9d8bea62
commit 9e6a387f82
13 changed files with 202 additions and 64 deletions

View File

@ -81,9 +81,16 @@ pub async fn initialize(
routes::cookies, routes::cookies,
routes::privacy, routes::privacy,
routes::terms, routes::terms,
routes::return_to_same_site
],
)
.mount(
"/help",
routes![
routes::help, routes::help,
routes::help_timezone, routes::help_timezone,
routes::return_to_same_site routes::help_create_reminder,
routes::help_delete_reminder
], ],
) )
.mount("/login", routes![routes::login::discord_login, routes::login::discord_callback]) .mount("/login", routes![routes::login::discord_login, routes::login::discord_callback])

View File

@ -45,14 +45,26 @@ pub async fn terms() -> Template {
Template::render("terms", &map) Template::render("terms", &map)
} }
#[get("/help")] #[get("/")]
pub async fn help() -> Template { pub async fn help() -> Template {
let map: HashMap<&str, String> = HashMap::new(); let map: HashMap<&str, String> = HashMap::new();
Template::render("help", &map) Template::render("help", &map)
} }
#[get("/help/timezone")] #[get("/timezone")]
pub async fn help_timezone() -> Template { pub async fn help_timezone() -> Template {
let map: HashMap<&str, String> = HashMap::new(); let map: HashMap<&str, String> = HashMap::new();
Template::render("help_timezone", &map) Template::render("support/timezone", &map)
}
#[get("/create_reminder")]
pub async fn help_create_reminder() -> Template {
let map: HashMap<&str, String> = HashMap::new();
Template::render("support/create_reminder", &map)
}
#[get("/delete_reminder")]
pub async fn help_delete_reminder() -> Template {
let map: HashMap<&str, String> = HashMap::new();
Template::render("support/delete_reminder", &map)
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

View File

@ -24,7 +24,6 @@
<link rel="stylesheet" href="/static/css/fa.css"> <link rel="stylesheet" href="/static/css/fa.css">
<link rel="stylesheet" href="/static/css/font.css"> <link rel="stylesheet" href="/static/css/font.css">
<link rel="stylesheet" href="/static/css/style.css"> <link rel="stylesheet" href="/static/css/style.css">
</head> </head>
<body> <body>
{% if flashed_message %} {% if flashed_message %}
@ -49,15 +48,18 @@
</div> </div>
<div class="navbar-menu"> <div class="navbar-menu">
<div class="navbar-start"> <div class="navbar-start">
<a class="navbar-item"> <a class="navbar-item" href="https://invite.reminder-bot.com">
<i class="fas fa-plus"></i> <i class="fas fa-plus"></i>
</a> </a>
<a class="navbar-item"> <a class="navbar-item" href="https://github.com/jellywx">
<i class="fab fa-github"></i> <i class="fab fa-github"></i>
</a> </a>
<a class="navbar-item"> <a class="navbar-item" href="https://discord.jellywx.com">
<i class="fab fa-discord"></i> <i class="fab fa-discord"></i>
</a> </a>
<a class="navbar-item" href="/help">
<i class="fas fa-book"></i>
</a>
</div> </div>
<div class="navbar-end"> <div class="navbar-end">
@ -72,15 +74,18 @@
</div> </div>
<div class="navbar-menu is-hidden-desktop" id="pageNavbar"> <div class="navbar-menu is-hidden-desktop" id="pageNavbar">
<a class="navbar-item"> <a class="navbar-item" href="https://invite.reminder-bot.com">
<i class="fas fa-plus"></i> <i class="fas fa-plus"></i>
</a> </a>
<a class="navbar-item"> <a class="navbar-item" href="https://github.com/jellywx">
<i class="fab fa-github"></i> <i class="fab fa-github"></i>
</a> </a>
<a class="navbar-item"> <a class="navbar-item" href="https://discord.jellywx.com">
<i class="fab fa-discord"></i> <i class="fab fa-discord"></i>
</a> </a>
<a class="navbar-item" href="/help">
<i class="fab fa-book"></i>
</a>
<div class="navbar-item"> <div class="navbar-item">
<a href="/dashboard"> <a href="/dashboard">

View File

@ -3,63 +3,75 @@
{% block init %} {% block init %}
{% set title = "Support" %} {% set title = "Support" %}
{% set page_title = "Reminder Bot" %} {% set page_title = "Support Articles" %}
{% set page_subtitle = "Command Support" %} {% set page_subtitle = "Can't find what you're looking for? Join our Discord!" %}
{% set page_emoji = "fa-life-ring" %} {% set show_contact = true %}
{% set show_invite = true %}
{% endblock %} {% endblock %}
{% block content %} {% block content %}
<section class="hero is-small"> <div class="inset-content" >
<div class="hero-body"> <div class="tile is-ancestor">
<div class="container has-text-centered"> <div class="tile is-parent">
<p class="title">First things first...</p> <article class="tile is-child notification">
<p class="content"> <p class="title">Timezone</p>
Use the link below to add the bot. <p class="subtitle">Learn how to configure your timezone</p>
</p> <div class="content has-text-centered">
<a class="button is-size-4 is-rounded is-light" href="/help/timezone">
<p class="is-size-4">
Read <span class="icon"><i class="fas fa-chevron-right"></i></span>
</p>
</a>
</div>
</article>
</div>
<div class="tile is-parent">
<article class="tile is-child notification">
<p class="title">Creating reminders</p>
<p class="subtitle">Learn to create reminders for your server</p>
<div class="content has-text-centered">
<a class="button is-size-4 is-rounded is-light" href="/help/create_reminder">
<p class="is-size-4">
Read <span class="icon"><i class="fas fa-chevron-right"></i></span>
</p>
</a>
</div>
</article>
</div>
<div class="tile is-parent is-vertical">
<article class="tile is-child notification">
<p class="title">Delete reminders</p>
<p class="subtitle">Learn to delete reminders that you've created</p>
<div class="content has-text-centered">
<a class="button is-size-4 is-rounded is-light" href="/help/delete_reminder">
<p class="is-size-4">
Read <span class="icon"><i class="fas fa-chevron-right"></i></span>
</p>
</a>
</div>
</article>
</div> </div>
</div> </div>
<div class="hero-foot has-text-centered"> <div class="tile is-ancestor">
<a class="button is-size-6 is-rounded is-success" href="https://invite.reminder-bot.com"> <div class="tile is-parent">
<p class="is-size-6"> <article class="tile is-child notification">
Add Now <span class="icon"><i class="fas fa-chevron-right"></i></span> <p class="title">Timers</p>
</p> <p class="subtitle">Learn to manage timers</p>
</a> </article>
</div> </div>
</section> <div class="tile is-parent">
<article class="tile is-child notification">
<section class="hero"> <p class="title">Todo Lists</p>
<div class="hero-body"> <p class="subtitle">Learn to manage various todo lists</p>
<div class="container has-text-centered"> </article>
<p class="title">Choose Your Timezone</p> </div>
<p class="content"> <div class="tile is-parent is-vertical">
Select your timezone with <code>/timezone</code>, to ensure times are correct. <article class="tile is-child notification">
</p> <p class="title">Macros</p>
<p class="subtitle">Learn how to create combination commands called macros, to suit advanced use cases</p>
</article>
</div> </div>
</div> </div>
</section> </div>
<section class="hero">
<div class="hero-body">
<div class="container has-text-centered">
<p class="title">Create a Reminder</p>
<p class="content">
Create reminders with <code>/remind</code>!
</p>
</div>
</div>
</section>
<section class="hero">
<div class="hero-body">
<div class="container has-text-centered">
<p class="title">Delete a Reminder</p>
<p class="content">
Made a mistake? Delete reminders with <code>/del</code>.
</p>
</div>
</div>
</section>
{% endblock %} {% endblock %}

View File

@ -27,7 +27,7 @@
<p class="title">Advanced Options <span class="icon"><i class="fad fa-palette"></i></span></p> <p class="title">Advanced Options <span class="icon"><i class="fad fa-palette"></i></span></p>
<p class="subtitle">Decorate your announcements with our web dashboard</p> <p class="subtitle">Decorate your announcements with our web dashboard</p>
<figure class="image"> <figure class="image">
<img class="rounded-corners" src="/static/img/tournament-demo.png" alt="Discord slash commands demonstration"> <img class="rounded-corners" src="/static/img/tournament-demo.png" alt="Advanced options demonstration">
</figure> </figure>
</article> </article>
</div> </div>

View File

@ -0,0 +1,38 @@
{% extends "base" %}
{% block init %}
{% set title = "Support" %}
{% set page_title = "Timezone Help" %}
{% set page_subtitle = "Timezones are tricky. Read on for help" %}
{% set show_invite = false %}
{% endblock %}
{% block content %}
<section class="hero is-small">
<div class="hero-body">
<div class="container">
<p class="title">Create reminders via commands</p>
<p class="content">
You can create reminders with the <code>/remind</code> command.
<br>
Fill out the "time" and "content" fields. If you wish, press on "Optional" to view other options
for the reminder.
</p>
</div>
</div>
</section>
<section class="hero is-small">
<div class="hero-body">
<div class="container">
<p class="title">Create reminders via the dashboard</p>
<p class="content">
Reminders can also be created on the dashboard.
</p>
</div>
</div>
</section>
{% endblock %}

View File

@ -0,0 +1,64 @@
{% extends "base" %}
{% block init %}
{% set title = "Support" %}
{% set page_title = "Timezone Help" %}
{% set page_subtitle = "Timezones are tricky. Read on for help" %}
{% set show_invite = false %}
{% endblock %}
{% block content %}
<section class="hero is-small">
<div class="hero-body">
<div class="container">
<p class="title">Deleting reminders via commands</p>
<p class="content">
Deleting reminders is as easy as typing <code>/del</code>.
<br>
</p>
<figure>
<img src="/static/img/support/delete_reminder/cmd-1.png" alt="/del">
</figure>
<figure>
<img src="/static/img/support/delete_reminder/cmd-2.png" alt="Reminder deleted">
</figure>
<p class="content">
Note that you cannot delete reminders that were set for another user's direct messages. To delete
reminders in your direct messages, use <code>/del</code> in the direct message channel with
Reminder Bot.
</p>
</div>
</div>
</section>
<section class="hero is-small">
<div class="hero-body">
<div class="container">
<p class="title">Deleting reminders via the dashboard</p>
<p class="content">
Reminders in servers can be deleted via the dashboard. First, select your server from the menu.
</p>
<figure>
<img src="/static/img/support/delete_reminder/1.png" alt="Selecting server">
</figure>
<br>
<p class="content">
Then, find the reminder you wish to delete.
</p>
<figure>
<img src="/static/img/support/delete_reminder/2.png" alt="Finding reminder">
</figure>
<br>
<p class="content">
Finally, press the 'Delete' button under the reminder.
</p>
<figure>
<img src="/static/img/support/delete_reminder/3.png" alt="Delete button">
</figure>
</div>
</div>
</section>
{% endblock %}

View File

@ -12,7 +12,7 @@
<section class="hero is-small"> <section class="hero is-small">
<div class="hero-body"> <div class="hero-body">
<div class="container has-text-centered"> <div class="container">
<p class="title">Selecting your timezone manually</p> <p class="title">Selecting your timezone manually</p>
<p class="content"> <p class="content">
To select your timezone manually, use <code>/timezone</code>. This will set your timezone To select your timezone manually, use <code>/timezone</code>. This will set your timezone
@ -28,7 +28,7 @@
<section class="hero is-small"> <section class="hero is-small">
<div class="hero-body"> <div class="hero-body">
<div class="container has-text-centered"> <div class="container">
<p class="title">Selecting your timezone automatically</p> <p class="title">Selecting your timezone automatically</p>
<p class="content"> <p class="content">
A new feature we offer is the ability to configure Reminder Bot's timezone from your browser. To do A new feature we offer is the ability to configure Reminder Bot's timezone from your browser. To do