File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,3 +9,4 @@ pub mod login;
99pub mod projects;
1010pub mod til;
1111pub mod videos;
12+ pub mod thanks;
Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments