Added creation page and routing to cooking page

This commit is contained in:
Awstin 2024-10-05 16:01:16 -04:00
parent a13ca49fa8
commit cb0e2f376a
4 changed files with 76 additions and 8 deletions

View file

@ -4,14 +4,8 @@ use axum::{
};
use super::templates::{
ArchServerTemplate,
BooksTemplate,
CookingTemplate,
EdgeDetectionTemplate,
GardenTemplate,
HtmlTemplate,
TakTemplate,
TimeTemplate,
ArchServerTemplate, BooksTemplate, CookingTemplate, CreationTemplate, EdgeDetectionTemplate,
GardenTemplate, HtmlTemplate, TakTemplate, TimeTemplate,
};
pub fn get_router() -> Router {
@ -23,6 +17,7 @@ pub fn get_router() -> Router {
.route("/tak", get(tak))
.route("/archserver", get(arch_server))
.route("/cooking", get(cooking))
.route("/creation", get(creation))
}
async fn garden() -> impl IntoResponse {
@ -59,3 +54,8 @@ async fn cooking() -> impl IntoResponse {
let cooking_page = CookingTemplate {};
HtmlTemplate(cooking_page)
}
async fn creation() -> impl IntoResponse {
let creation_page = CreationTemplate {};
HtmlTemplate(creation_page)
}

View file

@ -122,6 +122,10 @@ pub struct AboutTemplate {}
#[template(path = "cooking.html")]
pub struct CookingTemplate {}
#[derive(Template)]
#[template(path = "creation.html")]
pub struct CreationTemplate {}
#[derive(Template)]
#[template(path = "blog_footer.html")]
pub struct BlogFooterTemplate {

50
templates/creation.html Normal file
View file

@ -0,0 +1,50 @@
<!-- prettier-ignore -->
{% extends "base.html" %}
{% block content %}
<h2>Creating Things</h2>
<p>
Creating things is something that my family has always held as something very important.
We tend to operate more on the building fixing side of things but there is something sacred in any act of creation.
I wrote about this feeling in <a href="/blog/mm">Midnight Musings</a> when I was unable to sleep.
</p>
<p>
I dabble.
I know that I won't make a website as beautiful as one that a design studio could.
I can't build furniture as well as a carpenter.
I don't write as beautifully as an author.
But I try to do all these things.
</p>
<p>
The quality of the output is sort of the point.
I certainly want to make anything as well as I possibly good.
If I am going to try and do it I want to try and do it well.
However if it was the only point then I would go to professionals for these sorts of things.
The point is the act of creating itself.
The objects wind up with a story.
And that magical thing that is a human touch.
</p>
<p>
With mechanised creation it is all to easy to make things that are essentially perfect.
No rough edges but also no character.
They fade into the background of life.
I use them and they work perfectly fine but I don't think about them the same way that I do my wallet say.
Which is from <a href="https://www.osleather.com">Open Sea Leather</a>.
Made by one person, I got to pick out the colours of the leather and the thread.
Every time I handle it I feel a small connection to the maker on the other end and and silently thank them for their work.
</p>
<p>
I feel that connection to my past self when I use things that I have made.
The younger Awstin with his excitement, and by definition knowing less than I know now.
I learned from that act of creation and could probably do much better the second time or more.
These things encompass so much more then what they are.
</p>
<p>
The old worn chestnut of journey over destination.
Cliche but does fit.
There is little value in just being somewhere or having something.
I guess what I am trying to say is that life, the depth of life for me is lived in stories.
What was and what could be.
Handmaking something gives it a story and thus a little spark of life.
</p>
{% endblock %}

View file

@ -30,4 +30,18 @@
Some thoughts on <a href="/garden/time">time</a>.
I catch myself coming back to this subject pretty regularly.
</p>
<p>
I have been pondering a lot lately on the act of <a href="/garden/creation">creation</a> and of making things.
Getting more in touch with that as I have been tinkering more and more.
Building out the website for our wedding and other small projects.
</p>
<p>
I love to <a href="/garden/cooking">cook</a>, however very much hate recipe websites.
Too much extra stuff.
I want to build a place to store and share my recipes without any of that.
Will be added to the <a href="/garden/cooking">cooking</a> page when I get it set up.
For now it is just my thoughts on the activity.
</p>
{% endblock %}