support articles
This commit is contained in:
parent
af9d8bea62
commit
9e6a387f82
@ -81,9 +81,16 @@ pub async fn initialize(
|
||||
routes::cookies,
|
||||
routes::privacy,
|
||||
routes::terms,
|
||||
routes::return_to_same_site
|
||||
],
|
||||
)
|
||||
.mount(
|
||||
"/help",
|
||||
routes![
|
||||
routes::help,
|
||||
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])
|
||||
|
@ -45,14 +45,26 @@ pub async fn terms() -> Template {
|
||||
Template::render("terms", &map)
|
||||
}
|
||||
|
||||
#[get("/help")]
|
||||
#[get("/")]
|
||||
pub async fn help() -> Template {
|
||||
let map: HashMap<&str, String> = HashMap::new();
|
||||
Template::render("help", &map)
|
||||
}
|
||||
|
||||
#[get("/help/timezone")]
|
||||
#[get("/timezone")]
|
||||
pub async fn help_timezone() -> Template {
|
||||
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)
|
||||
}
|
||||
|
BIN
web/static/img/support/delete_reminder/1.png
Normal file
BIN
web/static/img/support/delete_reminder/1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 35 KiB |
BIN
web/static/img/support/delete_reminder/2.png
Normal file
BIN
web/static/img/support/delete_reminder/2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 55 KiB |
BIN
web/static/img/support/delete_reminder/3.png
Normal file
BIN
web/static/img/support/delete_reminder/3.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.6 KiB |
BIN
web/static/img/support/delete_reminder/cmd-1.png
Normal file
BIN
web/static/img/support/delete_reminder/cmd-1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 24 KiB |
BIN
web/static/img/support/delete_reminder/cmd-2.png
Normal file
BIN
web/static/img/support/delete_reminder/cmd-2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 17 KiB |
@ -24,7 +24,6 @@
|
||||
<link rel="stylesheet" href="/static/css/fa.css">
|
||||
<link rel="stylesheet" href="/static/css/font.css">
|
||||
<link rel="stylesheet" href="/static/css/style.css">
|
||||
|
||||
</head>
|
||||
<body>
|
||||
{% if flashed_message %}
|
||||
@ -49,15 +48,18 @@
|
||||
</div>
|
||||
<div class="navbar-menu">
|
||||
<div class="navbar-start">
|
||||
<a class="navbar-item">
|
||||
<a class="navbar-item" href="https://invite.reminder-bot.com">
|
||||
<i class="fas fa-plus"></i>
|
||||
</a>
|
||||
<a class="navbar-item">
|
||||
<a class="navbar-item" href="https://github.com/jellywx">
|
||||
<i class="fab fa-github"></i>
|
||||
</a>
|
||||
<a class="navbar-item">
|
||||
<a class="navbar-item" href="https://discord.jellywx.com">
|
||||
<i class="fab fa-discord"></i>
|
||||
</a>
|
||||
<a class="navbar-item" href="/help">
|
||||
<i class="fas fa-book"></i>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="navbar-end">
|
||||
@ -72,15 +74,18 @@
|
||||
</div>
|
||||
|
||||
<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>
|
||||
</a>
|
||||
<a class="navbar-item">
|
||||
<a class="navbar-item" href="https://github.com/jellywx">
|
||||
<i class="fab fa-github"></i>
|
||||
</a>
|
||||
<a class="navbar-item">
|
||||
<a class="navbar-item" href="https://discord.jellywx.com">
|
||||
<i class="fab fa-discord"></i>
|
||||
</a>
|
||||
<a class="navbar-item" href="/help">
|
||||
<i class="fab fa-book"></i>
|
||||
</a>
|
||||
|
||||
<div class="navbar-item">
|
||||
<a href="/dashboard">
|
||||
|
@ -3,63 +3,75 @@
|
||||
{% block init %}
|
||||
{% set title = "Support" %}
|
||||
|
||||
{% set page_title = "Reminder Bot" %}
|
||||
{% set page_subtitle = "Command Support" %}
|
||||
{% set page_emoji = "fa-life-ring" %}
|
||||
{% set show_invite = true %}
|
||||
{% set page_title = "Support Articles" %}
|
||||
{% set page_subtitle = "Can't find what you're looking for? Join our Discord!" %}
|
||||
{% set show_contact = true %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<section class="hero is-small">
|
||||
<div class="hero-body">
|
||||
<div class="container has-text-centered">
|
||||
<p class="title">First things first...</p>
|
||||
<p class="content">
|
||||
Use the link below to add the bot.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="hero-foot has-text-centered">
|
||||
<a class="button is-size-6 is-rounded is-success" href="https://invite.reminder-bot.com">
|
||||
<p class="is-size-6">
|
||||
Add Now <span class="icon"><i class="fas fa-chevron-right"></i></span>
|
||||
<div class="inset-content" >
|
||||
<div class="tile is-ancestor">
|
||||
<div class="tile is-parent">
|
||||
<article class="tile is-child notification">
|
||||
<p class="title">Timezone</p>
|
||||
<p class="subtitle">Learn how to configure your timezone</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>
|
||||
</section>
|
||||
|
||||
<section class="hero">
|
||||
<div class="hero-body">
|
||||
<div class="container has-text-centered">
|
||||
<p class="title">Choose Your Timezone</p>
|
||||
<p class="content">
|
||||
Select your timezone with <code>/timezone</code>, to ensure times are correct.
|
||||
</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>
|
||||
</section>
|
||||
|
||||
<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>!
|
||||
<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>
|
||||
</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 class="tile is-ancestor">
|
||||
<div class="tile is-parent">
|
||||
<article class="tile is-child notification">
|
||||
<p class="title">Timers</p>
|
||||
<p class="subtitle">Learn to manage timers</p>
|
||||
</article>
|
||||
</div>
|
||||
<div class="tile is-parent">
|
||||
<article class="tile is-child notification">
|
||||
<p class="title">Todo Lists</p>
|
||||
<p class="subtitle">Learn to manage various todo lists</p>
|
||||
</article>
|
||||
</div>
|
||||
<div class="tile is-parent is-vertical">
|
||||
<article class="tile is-child notification">
|
||||
<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>
|
||||
</section>
|
||||
|
||||
{% endblock %}
|
||||
|
@ -27,7 +27,7 @@
|
||||
<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>
|
||||
<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>
|
||||
</article>
|
||||
</div>
|
||||
|
38
web/templates/support/create_reminder.html.tera
Normal file
38
web/templates/support/create_reminder.html.tera
Normal 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 %}
|
64
web/templates/support/delete_reminder.html.tera
Normal file
64
web/templates/support/delete_reminder.html.tera
Normal 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 %}
|
@ -12,7 +12,7 @@
|
||||
|
||||
<section class="hero is-small">
|
||||
<div class="hero-body">
|
||||
<div class="container has-text-centered">
|
||||
<div class="container">
|
||||
<p class="title">Selecting your timezone manually</p>
|
||||
<p class="content">
|
||||
To select your timezone manually, use <code>/timezone</code>. This will set your timezone
|
||||
@ -28,7 +28,7 @@
|
||||
|
||||
<section class="hero is-small">
|
||||
<div class="hero-body">
|
||||
<div class="container has-text-centered">
|
||||
<div class="container">
|
||||
<p class="title">Selecting your timezone automatically</p>
|
||||
<p class="content">
|
||||
A new feature we offer is the ability to configure Reminder Bot's timezone from your browser. To do
|
Loading…
Reference in New Issue
Block a user