Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions server/src/http_server/pages/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ pub mod login;
pub mod projects;
pub mod til;
pub mod videos;
pub mod thanks;
33 changes: 33 additions & 0 deletions server/src/http_server/pages/thanks.rs
Original file line number Diff line number Diff line change
@@ -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()
},
)
}
1 change: 1 addition & 0 deletions server/src/http_server/routes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ pub(crate) fn make_router(syntax_css: String) -> Router<AppState> {
get(pages::bytes::single_leaderboard),
)
.route("/bytes_leaderboard", get(pages::bytes::overall_leaderboard))
.route("/thanks", get(pages::thanks::thanks))
.fallback(fallback)
}

Expand Down
Loading