diff --git a/axum_server/styles/output.css b/axum_server/styles/output.css index 7ff7bb5..e28dcce 100644 --- a/axum_server/styles/output.css +++ b/axum_server/styles/output.css @@ -722,6 +722,11 @@ video { margin-bottom: 1.25rem; } +.my-auto { + margin-top: auto; + margin-bottom: auto; +} + .mb-1 { margin-bottom: 0.25rem; } @@ -871,6 +876,14 @@ video { max-width: 36rem; } +.max-w-\[440px\] { + max-width: 440px; +} + +.flex-1 { + flex: 1 1 0%; +} + .flex-grow { flex-grow: 1; } @@ -885,6 +898,10 @@ video { break-inside: avoid; } +.grid-flow-row { + grid-auto-flow: row; +} + .grid-flow-col { grid-auto-flow: column; } @@ -909,6 +926,10 @@ video { place-content: center; } +.content-center { + align-content: center; +} + .content-end { align-content: flex-end; } @@ -917,6 +938,10 @@ video { align-items: center; } +.items-stretch { + align-items: stretch; +} + .justify-end { justify-content: flex-end; } @@ -1897,6 +1922,10 @@ article a:visited { display: grid; } + .md\:hidden { + display: none; + } + .md\:h-16 { height: 4rem; } @@ -2046,6 +2075,10 @@ article a:visited { grid-row-start: auto; } + .xl\:block { + display: block; + } + .xl\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } diff --git a/axum_server/templates/components/social_card.html b/axum_server/templates/components/social_card.html index 5c89769..fecd6c8 100644 --- a/axum_server/templates/components/social_card.html +++ b/axum_server/templates/components/social_card.html @@ -1,6 +1,6 @@ {% macro social_card_start(svg, heading, img) %} -
+
{% let alt_text = format!("{svg} thumbnail") %} - {{ crate::picture_generator::picture_markup_generator::generate_picture_markup(img, 420, 200, alt_text, Some("h-auto"), true).unwrap_or("thumbnail not found".to_string())|safe }} + {{ crate::picture_generator::picture_markup_generator::generate_picture_markup(img, 394, 160, alt_text, Some("h-auto mx-auto"), true).unwrap_or("thumbnail not found".to_string())|safe }}
{% endmacro %} diff --git a/axum_server/templates/sections/social.html b/axum_server/templates/sections/social.html index 097fcde..642af76 100644 --- a/axum_server/templates/sections/social.html +++ b/axum_server/templates/sections/social.html @@ -1,12 +1,14 @@

Socials

-
+
{% call sc::social_card_start("twitch", "I stream (almost) regularly on twitch.tv", "images/social/instagram_plain.png") %} {% call sc::social_card_start("tiktok", "Highlights can be found on TikTok", "images/social/instagram_plain.png") %} {% call sc::social_card_start("youtube", "Vlogs and highlights can be found on YouTube", "images/social/instagram_plain.png") %} +
{% call sc::social_card_start("instagram", "Photos and stories shared on Instagram", "images/social/instagram_plain.png") %} +