From e0eb2d0477b503793e55ccc7d245d26e93b08679 Mon Sep 17 00:00:00 2001 From: Awstin Date: Tue, 22 Oct 2024 20:30:56 -0400 Subject: [PATCH] Adding work page to my website --- src/html/root.rs | 9 +++++- src/html/templates.rs | 4 +++ templates/home.html | 8 +++++ templates/work.html | 69 +++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 89 insertions(+), 1 deletion(-) create mode 100644 templates/work.html diff --git a/src/html/root.rs b/src/html/root.rs index afe67e5..660acae 100644 --- a/src/html/root.rs +++ b/src/html/root.rs @@ -17,7 +17,9 @@ use super::{ blog::{self, get_articles_date_sorted}, garden, templates::{ - AboutTemplate, AiTemplate, BlogrollTemplate, ContactTemplate, GiftsTemplate, HomeTemplate, HtmlTemplate, InterestsTemplate, LinksPageTemplate, NowTemplate, ResumeTemplate, UsesTemplate + AboutTemplate, AiTemplate, BlogrollTemplate, ContactTemplate, GiftsTemplate, HomeTemplate, + HtmlTemplate, InterestsTemplate, LinksPageTemplate, NowTemplate, ResumeTemplate, + WorkTemplate, UsesTemplate, }, }; @@ -41,6 +43,7 @@ pub fn get_router(pool: PgPool) -> Router { .route("/interests", get(interests)) .route("/resume", get(resume)) .route("/gifts", get(gifts)) + .route("/hire", get(work)) .route( "/robots.txt", get(|| async { Redirect::permanent("/assets/robots.txt") }), @@ -84,6 +87,10 @@ async fn resume() -> impl IntoResponse { HtmlTemplate(ResumeTemplate {}) } +async fn work() -> impl IntoResponse { + HtmlTemplate(WorkTemplate {}) +} + async fn gifts() -> impl IntoResponse { HtmlTemplate(GiftsTemplate {}) } diff --git a/src/html/templates.rs b/src/html/templates.rs index dbc9702..c185fdc 100644 --- a/src/html/templates.rs +++ b/src/html/templates.rs @@ -136,3 +136,7 @@ pub struct BlogFooterTemplate { #[derive(Template)] #[template(path = "resume.html")] pub struct ResumeTemplate {} + +#[derive(Template)] +#[template(path = "work.html")] +pub struct WorkTemplate {} diff --git a/templates/home.html b/templates/home.html index 5936be1..7a0f73b 100644 --- a/templates/home.html +++ b/templates/home.html @@ -90,6 +90,14 @@


+
+

Hire Me

+

+ Currently looking for a new challenge. + My criteria for work and my resume can be found here. +

+

+

Contact Me

diff --git a/templates/work.html b/templates/work.html new file mode 100644 index 0000000..85b6b91 --- /dev/null +++ b/templates/work.html @@ -0,0 +1,69 @@ + +{% extends "base.html" %} + +{% block content %} +

Work

+

+ I am open to new opportunities for work, and currently actively looking. + If you have something that you think that I can contribute to then please reach out. + Here is my resume. +

+

+ I have some musts, and some nice to haves about work. + A compensation of at least $130k CAD (~95k USD) that fits the must haves. + I am willing to forgo some compensation to get some of the nice to haves. + That is something to discuss and come to an agreement on. +

+ +

Must Have/Must Not Have

+ + +

Nice to haves

+ +{% endblock %}