From cd0e5d294513a05b7ab9c4897a34c79c440dab5c Mon Sep 17 00:00:00 2001 From: Adrian Victor Date: Sat, 4 Jul 2026 20:56:51 -0300 Subject: [PATCH] Change social page to show post media, change home squares border opacity and change social page styling. --- .cache/mastodon.json | 2 +- site/_data/i18n.cjs | 6 +++-- site/index.njk | 4 ++- site/social.njk | 19 ++++++++++--- static/main.css | 64 +++++++++++++++++++++++++++++++++++++++++--- 5 files changed, 84 insertions(+), 11 deletions(-) diff --git a/.cache/mastodon.json b/.cache/mastodon.json index 8f99b34..e212a59 100644 --- a/.cache/mastodon.json +++ b/.cache/mastodon.json @@ -1,5 +1,5 @@ { - "lastFetched": "2026-07-04T19:57:16.577Z", + "lastFetched": "2026-07-04T23:54:24.869Z", "posts": [ { "date": "2026-07-03T01:51:37.604Z", diff --git a/site/_data/i18n.cjs b/site/_data/i18n.cjs index 24bae61..a32e9e8 100644 --- a/site/_data/i18n.cjs +++ b/site/_data/i18n.cjs @@ -96,7 +96,8 @@ module.exports = { mrnandoChannel: "Mr. Nando's channel", liked: "liked", changes: "changes", - readingTime: "Reading time" + readingTime: "Reading time", + mastodonPageDescription: "This is an archive of all my Mastodon posts." }, pt: { language: "português", @@ -168,6 +169,7 @@ module.exports = { mrnandoChannel: "Canal do Mr. Nando", liked: "curtiu", changes: "mudanças", - readingTime: "Tempo de leitura" + readingTime: "Tempo de leitura", + mastodonPageDescription: "Essa página lista todas as minhas postagens do Mastodon." } }; \ No newline at end of file diff --git a/site/index.njk b/site/index.njk index 61712f1..9bdb129 100644 --- a/site/index.njk +++ b/site/index.njk @@ -193,7 +193,9 @@ layout: base.njk
- {{ i88x31("mrnandokk.gif", i18n[langKey].mrnandoChannel, false) }} +
+ {{ i88x31("mrnandokk.gif", i18n[langKey].mrnandoChannel, false) }} +
diff --git a/site/social.njk b/site/social.njk index 555f89a..ad5a515 100644 --- a/site/social.njk +++ b/site/social.njk @@ -13,19 +13,30 @@ title: Adrian Victor:Social

@tenkuma


-
{% include 'widgets/internetometer-aside.html' %}
+

{{ i18n[langKey].mastodonPageDescription }}

\ No newline at end of file diff --git a/static/main.css b/static/main.css index aaa94b1..6bac5ac 100644 --- a/static/main.css +++ b/static/main.css @@ -355,7 +355,7 @@ li.inlineList { .headerSquare, #defaultSquare { transition: 0.4s; - border: medium solid white; + border: thick solid rgba(255, 255, 255, 0.2); height: 3vw; overflow: hidden; width: 6vw; @@ -382,6 +382,7 @@ li.inlineList { height: 6vw; box-shadow: 2px 7px 5px rgba(0, 0, 0, 0.4), 0px -4px 10px rgba(0, 0, 0, 0.4); background-color: rgba(0, 0, 0, 0.3); + border-color: white; } .youtubeCardHolderHelper { @@ -913,6 +914,12 @@ header div:first-child { color: white; } +.centeredItemsBox { + display: flex; + justify-content: center; + align-items: center; +} + .internetometerAside img { max-width: 100%; } @@ -1071,9 +1078,56 @@ header div:first-child { } .mastodonPost { - background-color: rgba(0, 0, 0, 0.2); - padding: 1em; margin-bottom: 1em; + display: flex; + flex-direction: column; +} + +.mastodonPostContent { + padding: 1em; +} + +.mastodonPostContent, .mastodonLink { + background-color: rgba(0, 0, 0, 0.2); +} + +.mastodonPost p { + margin-bottom: .2em; +} + +.mastodonLink { + width: fit-content; + padding: .4em; + opacity: .8; + margin-left: auto; +} + +.mastodonMedia { + max-height: 5em; + border: medium solid rgba(0, 0, 0, 0.2); +} + +.mastodonMediaBox { + margin-top: 1em; +} + +.mastodonMediaBox div { + display: flex; + overflow: scroll; +} + +.mastodonMediaBox img { + transition: .2s; + opacity: .6; +} + +.mastodonMediaBox img:hover { + opacity: 1; +} + +#socialAside img { + border: thick solid rgba(255, 255, 255, 0.1); + border-top: none; } /* Animations */ @@ -1165,6 +1219,10 @@ header div:first-child { max-width: 50%; } + #socialAside h1 { + text-align: end; + } + #homeSquares { flex-direction: row; align-content: center;