From 5df0653b95e5abbc4124c37bad7ac096aca304bf Mon Sep 17 00:00:00 2001 From: metamuffin Date: Wed, 15 Feb 2023 18:50:56 +0100 Subject: add stuff --- assets/style.css | 2 +- src/layout.rs | 3 ++- src/main.rs | 1 + src/pages.rs | 21 +++++++++++++++++++++ 4 files changed, 25 insertions(+), 2 deletions(-) diff --git a/assets/style.css b/assets/style.css index 3f688a1..658ca43 100644 --- a/assets/style.css +++ b/assets/style.css @@ -40,7 +40,7 @@ nav a { background-position: 100% 100%, 0 100%; background-repeat: no-repeat; transition: background-size 0.15s linear; - font-style: italic; + font-style: normal; } nav a:hover { color: #dfe5f3; diff --git a/src/layout.rs b/src/layout.rs index efab6b8..28aaddb 100644 --- a/src/layout.rs +++ b/src/layout.rs @@ -7,7 +7,7 @@ Copyright (C) 2023 metamuffin use crate::blog::rocket_uri_macro_r_blog; use crate::pages::{ rocket_uri_macro_r_about, rocket_uri_macro_r_contact, rocket_uri_macro_r_pgp_key, - rocket_uri_macro_r_projects, rocket_uri_macro_r_toggle_css, + rocket_uri_macro_r_projects, rocket_uri_macro_r_stuff, rocket_uri_macro_r_toggle_css, }; use crate::source::rocket_uri_macro_r_source; use crate::uri; @@ -41,6 +41,7 @@ markup::define! { a[href=uri!(r_blog())] { "Blog" } " " a[href=uri!(r_projects())] { "Projects" } " " a[href=uri!(r_contact())] { "Contact" } " " + a[href=uri!(r_stuff())] { "Stuff" } " " a[href="https://codeberg.org/metamuffin"] { "Codeberg" } " " a[href=uri!(r_pgp_key())] { "PGP-Key" } " " } diff --git a/src/main.rs b/src/main.rs index e59fd0b..72bd891 100644 --- a/src/main.rs +++ b/src/main.rs @@ -36,6 +36,7 @@ async fn main() { r_pgp_key, r_source, r_blog, + r_stuff, r_favicon, r_blog_index, r_blog_article, diff --git a/src/pages.rs b/src/pages.rs index 347d2d4..a181380 100644 --- a/src/pages.rs +++ b/src/pages.rs @@ -97,6 +97,27 @@ pub fn r_contact() -> DynScaffold<'static> { } } +#[get("/stuff")] +pub fn r_stuff() -> DynScaffold<'static> { + Scaffold { + title: "stuff".to_string(), + content: markup::new! { + h1 { "Stuff" } + p { "I use arch btw." } + p { "The server uses arch btw." } + p { "My raspberry pi uses arch btw." } + p { "My router uses arch btw." } + p { "One of my smartphones uses arch btw." } + h2 { "Funny People" } + ul { + li { a[href="https://potatoxel.org"] { "Potatoxel" } } + li { a[href="https://pixificial.xyz"] { "Pixificial" } } + li { a[href="https://ruststriber.dev"] { "Rustystriker" } } + } + }, + } +} + #[get("/favicon.ico")] pub fn r_favicon() {} -- cgit v1.2.3-70-g09d2