diff --git a/.gitignore b/.gitignore index e60e4a1..965083a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ target/ node_modules/ package_lock.json +mprocs.log diff --git a/src/html/root.rs b/src/html/root.rs index 1c36976..c701e9c 100644 --- a/src/html/root.rs +++ b/src/html/root.rs @@ -30,6 +30,7 @@ pub fn get_router(pool: PgPool) -> Router { .route("/now", get(now)) .route("/about", get(about)) .route("/contact", get(contact)) + .route("/uses", get(uses)) .route( "/robots.txt", get(|| async { Redirect::permanent("/assets/robots.txt") }), @@ -105,3 +106,16 @@ async fn contact() -> impl IntoResponse { struct ContactTemplate { active_navbar: &'static str, } + +async fn uses() -> impl IntoResponse { + let template = UsesTemplate{ + active_navbar: NavBar::ABOUT, + }; + HtmlTemplate(template) +} + +#[derive(Template)] +#[template(path = "uses.html")] +struct UsesTemplate { + active_navbar: &'static str, +} diff --git a/templates/gifts.html b/templates/gifts.html new file mode 100644 index 0000000..b2b51ba --- /dev/null +++ b/templates/gifts.html @@ -0,0 +1,31 @@ + +{% extends "base.html" %} + +{% block content %} +
+

Gifts

+

+ If you are here you are probably thinking of getting me a gift. + I do very deeply appreciate it and thank you for the thought. +

+

+ I am not much of a receiving gift person. + I don't like having a lot of things and am quite particular about what I do get. + I would much rather spend time together. + If you can spare the time to sit down and have a nice conversation or do something together that would be wonderful. +

+

+ There are a few people in my life that I think are an exception to this rule. + If you are one of these people you know it and I say do whatever you see fit. + Otherwise if you feel that you must give me something I would suggest cash. + Not sure what I will use it for but there are always various things that I am eyeing, usually larger purchases. + I will certainly let you know what use it went to. +

+

+ Regardless, thank you so much, I really appreciate it. +

+

+ Awstin +

+
+{% endblock %} diff --git a/templates/uses.html b/templates/uses.html new file mode 100644 index 0000000..96fbe3d --- /dev/null +++ b/templates/uses.html @@ -0,0 +1,166 @@ + +{% extends "base.html" %} + +{% block content %} +
+

Things I use

+

Analog stuff

+ +

Hardware

+ +

Software

+ +

Services

+

+ I try to pay for the services that I use. I find that "free" services don't often respect the user very much and have been getting worse pretty quickly lately. +

+ +
+{% endblock %}