Skip to content

Commit 2c3ca79

Browse files
committed
Add /thanks page to credit contributors
1 parent 250364e commit 2c3ca79

3 files changed

Lines changed: 35 additions & 0 deletions

File tree

server/src/http_server/pages/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ pub mod login;
99
pub mod projects;
1010
pub mod til;
1111
pub mod videos;
12+
pub mod thanks;
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
use maud::{html, Markup};
2+
3+
use crate::http_server::templates::{base_constrained, header::OpenGraph};
4+
5+
pub(crate) async fn thanks() -> Markup {
6+
base_constrained(
7+
html! {
8+
h1 class="my-4 text-2xl" { "Thanks & Credits" }
9+
10+
p class="my-4" {
11+
"This site wouldn't be possible without the help of some awesome people!"
12+
}
13+
14+
h2 class="my-2 text-xl" { "Profile Picture" }
15+
p class="my-2" {
16+
"Photo by "
17+
a class="underline" href="https://misnina.com/" target="_blank" { "Nina" }
18+
"."
19+
}
20+
21+
h2 class="my-2 text-xl" { "Design and Logo" }
22+
p class="my-2" {
23+
"Design and logo by Brandi."
24+
}
25+
},
26+
OpenGraph {
27+
title: "Thanks & Credits - coreyja.com".to_owned(),
28+
description: Some("Credits for those who helped with coreyja.com".to_owned()),
29+
url: "https://coreyja.com/thanks".to_owned(),
30+
..OpenGraph::default()
31+
},
32+
)
33+
}

server/src/http_server/routes.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ pub(crate) fn make_router(syntax_css: String) -> Router<AppState> {
6666
get(pages::bytes::single_leaderboard),
6767
)
6868
.route("/bytes_leaderboard", get(pages::bytes::overall_leaderboard))
69+
.route("/thanks", get(pages::thanks::thanks))
6970
.fallback(fallback)
7071
}
7172

0 commit comments

Comments
 (0)