From 29f2ea9817015dda6a056fb030534d47a07f73cc Mon Sep 17 00:00:00 2001 From: Jackz Date: Wed, 16 Apr 2025 17:19:59 -0500 Subject: [PATCH] Add more credits --- src/routes/ui/help.rs | 8 ++++---- static/css/main.css | 4 ++++ templates/about.html.hbs | 6 +++++- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/src/routes/ui/help.rs b/src/routes/ui/help.rs index dd283d5..71a79fc 100644 --- a/src/routes/ui/help.rs +++ b/src/routes/ui/help.rs @@ -1,14 +1,14 @@ -use rocket::{get, Route}; +use rocket::{get, Route, State}; use rocket::serde::json::Json; use rocket_dyn_templates::{context, Template}; use rocket_session_store::{Session, SessionResult}; use serde::Serialize; use crate::models::user::UserModel; -use crate::SessionData; +use crate::{GlobalMetadata, SessionData}; #[get("/help/about")] -pub fn about(route: &Route) -> Template { - Template::render("about", context! { route: route.uri.path() }) +pub fn about(route: &Route, meta: &State) -> Template { + Template::render("about", context! { route: route.uri.path(), meta: meta.inner() }) } diff --git a/static/css/main.css b/static/css/main.css index be4e606..c71c05d 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -2,6 +2,10 @@ --accent-color: rgb(231, 148, 162); } +.navbar { + background-image: linear-gradient(to right, #fbc2eb 0%, #a6c1ee 20%); +} + .sidebar { } diff --git a/templates/about.html.hbs b/templates/about.html.hbs index 86f95a9..fe50df1 100644 --- a/templates/about.html.hbs +++ b/templates/about.html.hbs @@ -1,10 +1,14 @@ {{#> layouts/main }}