summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2023-02-15 18:50:56 +0100
committermetamuffin <metamuffin@disroot.org>2023-02-15 18:50:56 +0100
commit5df0653b95e5abbc4124c37bad7ac096aca304bf (patch)
tree9a011cd21044944d19906f72ca8db79387b4a385
parent023c2e9cbb55a967d6b9797162e0d9b620f93bdb (diff)
downloadmetamuffin-website-5df0653b95e5abbc4124c37bad7ac096aca304bf.tar
metamuffin-website-5df0653b95e5abbc4124c37bad7ac096aca304bf.tar.bz2
metamuffin-website-5df0653b95e5abbc4124c37bad7ac096aca304bf.tar.zst
add stuff
-rw-r--r--assets/style.css2
-rw-r--r--src/layout.rs3
-rw-r--r--src/main.rs1
-rw-r--r--src/pages.rs21
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 <metamuffin.org>
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() {}