diff --git a/server/src/http_server/pages/mod.rs b/server/src/http_server/pages/mod.rs index cb277435..60eb3bfb 100644 --- a/server/src/http_server/pages/mod.rs +++ b/server/src/http_server/pages/mod.rs @@ -9,3 +9,4 @@ pub mod login; pub mod projects; pub mod til; pub mod videos; +pub mod thanks; diff --git a/server/src/http_server/pages/thanks.rs b/server/src/http_server/pages/thanks.rs new file mode 100644 index 00000000..faa26d2b --- /dev/null +++ b/server/src/http_server/pages/thanks.rs @@ -0,0 +1,33 @@ +use maud::{html, Markup}; + +use crate::http_server::templates::{base_constrained, header::OpenGraph}; + +pub(crate) async fn thanks() -> Markup { + base_constrained( + html! { + h1 class="my-4 text-2xl" { "Thanks & Credits" } + + p class="my-4" { + "This site wouldn't be possible without the help of some awesome people!" + } + + h2 class="my-2 text-xl" { "Profile Picture" } + p class="my-2" { + "Photo by " + a class="underline" href="https://misnina.com/" target="_blank" { "Nina" } + "." + } + + h2 class="my-2 text-xl" { "Design and Logo" } + p class="my-2" { + "Design and logo by Brandi." + } + }, + OpenGraph { + title: "Thanks & Credits - coreyja.com".to_owned(), + description: Some("Credits for those who helped with coreyja.com".to_owned()), + url: "https://coreyja.com/thanks".to_owned(), + ..OpenGraph::default() + }, + ) +} diff --git a/server/src/http_server/routes.rs b/server/src/http_server/routes.rs index 31aae364..9a21113e 100644 --- a/server/src/http_server/routes.rs +++ b/server/src/http_server/routes.rs @@ -68,6 +68,7 @@ pub(crate) fn make_router(syntax_css: String) -> Router { get(pages::bytes::single_leaderboard), ) .route("/bytes_leaderboard", get(pages::bytes::overall_leaderboard)) + .route("/thanks", get(pages::thanks::thanks)) .fallback(fallback) }