From 25a39146ed49b4ae22a5cead6642d055da7ded81 Mon Sep 17 00:00:00 2001 From: cel 🌸 Date: Sat, 16 Sep 2023 21:06:42 +0100 Subject: small fixes --- src/main.rs | 6 +++++- static/badges/pleroma.png | Bin 0 -> 2165 bytes static/style.css | 18 ++++++++++++++++-- templates/base.html.tera | 2 +- templates/contact.html.tera | 11 ++++------- 5 files changed, 26 insertions(+), 11 deletions(-) create mode 100644 static/badges/pleroma.png diff --git a/src/main.rs b/src/main.rs index e538f84..ed768b4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -6,6 +6,7 @@ mod skweets; use std::borrow::Cow; use std::collections::HashSet; +use std::time::Duration; use atom_syndication::Feed; use rocket::fs::{relative, FileServer}; @@ -136,7 +137,10 @@ async fn main() -> std::result::Result<(), rocket::Error> { .manage(Clients { listenbrainz: listenbrainz::raw::Client::new(), skinnyverse: mastodon_async::Mastodon::from(skinny_data), - reqwest: reqwest::Client::new(), + reqwest: reqwest::Client::builder() + .connect_timeout(Duration::from_secs(1)) + .build() + .unwrap(), }) .attach(Template::custom(|engines| { engines.tera.autoescape_on(vec![]); diff --git a/static/badges/pleroma.png b/static/badges/pleroma.png new file mode 100644 index 0000000..099c4f9 Binary files /dev/null and b/static/badges/pleroma.png differ diff --git a/static/style.css b/static/style.css index 2cefd4a..7645b53 100644 --- a/static/style.css +++ b/static/style.css @@ -279,7 +279,7 @@ iframe { } .post-entry { - height: 1.4em; + min-height: 1.3em; display: flex; justify-content: space-between; background-color: #0000; @@ -289,6 +289,10 @@ iframe { font-size: 1.1rem; } +.post-date { + min-width: 10ch; +} + .post-entry:hover { font-family: 'Steps-Mono'; } @@ -447,7 +451,8 @@ iframe { float: right; width: auto; top: 2vw; - margin: 2vw; + right: -2vw; + margin: 2vw 0 2vw 2vw; } .checklist ul { @@ -461,6 +466,15 @@ code { font-family: 'Go Mono'; } +pre { + background-color: #e8cdcf; + border: 1px solid #311f20; +} + +pre code { + border: none; +} + /* branches */ .branch { diff --git a/templates/base.html.tera b/templates/base.html.tera index 1bbab76..9884964 100644 --- a/templates/base.html.tera +++ b/templates/base.html.tera @@ -35,7 +35,7 @@
  • home
  • kontakt
  • poesia
  • -
  • girlblog
  • +
  • weblog
  • projetos
  • écoute
  • diff --git a/templates/contact.html.tera b/templates/contact.html.tera index dc78959..28ec6e6 100644 --- a/templates/contact.html.tera +++ b/templates/contact.html.tera @@ -19,16 +19,13 @@ -- cgit