diff --git a/.cache/mastodon.json b/.cache/mastodon.json index e461037..73aa7d8 100644 --- a/.cache/mastodon.json +++ b/.cache/mastodon.json @@ -1,5 +1,5 @@ { - "lastFetched": "2026-07-05T16:45:30.248Z", + "lastFetched": "2026-07-05T17:32:28.976Z", "posts": [ { "date": "2026-07-03T01:51:37.604Z", diff --git a/site/_data/i18n.cjs b/site/_data/i18n.cjs index c02f89a..e7a4566 100644 --- a/site/_data/i18n.cjs +++ b/site/_data/i18n.cjs @@ -100,7 +100,19 @@ module.exports = { mastodonPageDescription: "This is an archive of all my Mastodon posts.", addMe: "Add me", socialContentNotRated: "Social content is not rated and may mention topics not appropriate for all ages.", - clickHereToContinue: "Click here to continue" + clickHereToContinue: "Click here to continue", + windsArtAlt: "First Winds album artwork", + velkommenArtAlt: "Velkommen song artwork", + pgArtAlt: "Frugal APE song artwork", + bearAlt: "Background image. White bear swimming in water that reverberates around it.", + gearsAlt: "Gears", + soundOffAlt: "Audio disabled", + soundOnAlt: "Audio enabled", + volumeSliderAlt: "Volume", + backgroundCheckAlt: "Background image", + sfxCheckboxAlt: "Sound effects", + videoArtworkAlt: "Video artwork", + songSelectAlt: "Song selector" }, pt: { language: "português", @@ -176,6 +188,18 @@ module.exports = { mastodonPageDescription: "Essa página lista todas as minhas postagens do Mastodon.", addMe: "Me adicionar", socialContentNotRated: "Conteúdo das redes sociais não é monitorado e pode conter tópicos não apropriados para todas as idades.", - clickHereToContinue: "Clique aqui para continuar" + clickHereToContinue: "Clique aqui para continuar", + windsArtAlt: "Capa do album First Winds", + velkommenArtAlt: "Capa da música Velkommen", + pgArtAlt: "Capa da música Frugal APE", + bearAlt: "Imagem de fundo. Urso branco nadando na água que reverbera ao seu redor.", + gearsAlt: "Engrenagens", + soundOffAlt: "Áudio desligado", + soundOnAlt: "Áudio ligado", + volumeSliderAlt: "Volume", + backgroundCheckAlt: "Imagem de fundo", + sfxCheckboxAlt: "Efeitos sonoros", + videoArtworkAlt: "Capa do vídeo", + songSelectAlt: "Seletor de música" } }; \ No newline at end of file diff --git a/site/_includes/base.njk b/site/_includes/base.njk index 02e943b..27cee06 100644 --- a/site/_includes/base.njk +++ b/site/_includes/base.njk @@ -51,7 +51,7 @@
- + {{ i18n[langKey].bearAlt }} {% include "header.njk" %} diff --git a/site/_includes/header.njk b/site/_includes/header.njk index c33b34b..047b2fa 100644 --- a/site/_includes/header.njk +++ b/site/_includes/header.njk @@ -12,7 +12,17 @@ permissionIssue: "{{ i18n[langKey].permissionIssue | safe }}", permissionIssueNotificationContent: "{{ i18n[langKey].permissionIssueNotificationContent | safe }}", notificationDefaultHint: "{{ i18n[langKey].notificationDefaultHint | safe }}", - disableSoundEffects: "{{ i18n[langKey].disableSoundEffects | safe }}" + disableSoundEffects: "{{ i18n[langKey].disableSoundEffects | safe }}", + windsArtAlt: "{{ i18n[langKey].windsArtAlt | safe }}", + velkommenArtAlt: "{{ i18n[langKey].velkommenArtAlt | safe }}", + pgArtAlt: "{{ i18n[langKey].pgArtAlt | safe }}", + gearsAlt: "{{ i18n[langKey].gearsAlt | safe }}", + soundOffAlt: "{{ i18n[langKey].soundOffAlt | safe }}", + soundOnAlt: "{{ i18n[langKey].soundOnAlt | safe }}", + volumeSliderAlt: "{{ i18n[langKey].volumeSliderAlt | safe }}", + backgroundCheckAlt: "{{ i18n[langKey].backgroundCheckAlt | safe }}", + sfxCheckboxAlt: "{{ i18n[langKey].sfxCheckboxAlt | safe }}", + songSelectAlt: "{{ i18n[langKey].songSelectAlt | safe }}", }
diff --git a/site/_includes/macros.njk b/site/_includes/macros.njk index 908de05..72dee07 100644 --- a/site/_includes/macros.njk +++ b/site/_includes/macros.njk @@ -12,12 +12,12 @@ > {% endmacro %} -{% macro videoCard(videoLink, videoTitle, videoImage, videoWebsite, videoDuration, videoAccent) %} +{% macro videoCard(videoLink, videoTitle, videoImage, videoWebsite, videoDuration, videoAccent, imageAlt = i18n[langKey].videoArtworkAlt) %}
- + {{ imageAlt }}
{#

{{ i18n[langKey].alsoAvailableAsVideo }}:

#}

diff --git a/site/_includes/widgets/droidring.html b/site/_includes/widgets/droidring.html index d1e4545..b97f080 100644 --- a/site/_includes/widgets/droidring.html +++ b/site/_includes/widgets/droidring.html @@ -1,6 +1,6 @@
-
+ Droidring
diff --git a/site/_includes/widgets/internetometer-aside.html b/site/_includes/widgets/internetometer-aside.html index dc2a8ea..a11c75e 100644 --- a/site/_includes/widgets/internetometer-aside.html +++ b/site/_includes/widgets/internetometer-aside.html @@ -3,5 +3,5 @@

{{ i18n[langKey].liked | smartTitle }}?


- + Internetometer
\ No newline at end of file diff --git a/site/index.njk b/site/index.njk index 2217aaf..2c913db 100644 --- a/site/index.njk +++ b/site/index.njk @@ -87,7 +87,8 @@ headerLink: home i18n["global"].homeSongImage, i18n["global"].homeSongWebsite, i18n["global"].homeSongDuration, - i18n["global"].homeSongAccent + i18n["global"].homeSongAccent, + i18n[langKey].velkommenArtAlt ) }}

diff --git a/static/scripts/music.js b/static/scripts/music.js index c8d0f6e..6fb787e 100644 --- a/static/scripts/music.js +++ b/static/scripts/music.js @@ -4,18 +4,18 @@ const body = document.querySelector("body"); const musicdiv = document.getElementById("music"); musicdiv.innerHTML = ` - - - +${headeri18n.gearsAlt} +${headeri18n.soundOnAlt} + ` const linksHelper = document.getElementById("linksHelper"); linksHelper.insertBefore(document.createElement("hs"), document.getElementById("headerLinks")); const songs = [ - { file: "Velkommen.mp3", name: 'Velkommen', artwork: "velkommen.jpg" }, - { file: "PG2.mp3", name: 'Frugal APE', artwork: "pg.jpg" }, - { file: "dreamscape.mp3", name: 'Dreamscape', artwork: "winds.png" }, - { file: "skychat.mp3", name: 'Skychat', artwork: "winds.png" } + { file: "Velkommen.mp3", name: 'Velkommen', artwork: "velkommen.jpg", alt: headeri18n.velkommenArtAlt }, + { file: "PG2.mp3", name: 'Frugal APE', artwork: "pg.jpg" , alt: headeri18n.pgArtAlt }, + { file: "dreamscape.mp3", name: 'Dreamscape', artwork: "winds.png" , alt: headeri18n.windsArtAlt }, + { file: "skychat.mp3", name: 'Skychat', artwork: "winds.png" , alt: headeri18n.windsArtAlt } ]; // Options page @@ -43,15 +43,15 @@ optionsAside.classList.add("metromenu");

Volume

- +

${headeri18n.hideBackground}

- +

${headeri18n.disableSoundEffects}

- +
` @@ -99,6 +99,7 @@ songs.forEach(song => { songElement.classList.add("drawerSong"); songElement.dataset.song = song.file; const songImage = document.createElement("img"); + songImage.alt = song.alt; songImage.src = `${rootPrefix}static/images/songs/${song.artwork}`; songElement.appendChild(songImage); songElement.addEventListener('click', () => { @@ -177,6 +178,7 @@ function play() { });; localStorage.setItem("audioPlaying", "true") toggleIMG.src = `${rootPrefix}static/images/sound-on.png` + toggleIMG.alt = headeri18n.soundOnAlt; console.log(`[Music Player] playing ${audioSelect.value}`) } @@ -184,6 +186,7 @@ function stop() { audio.pause(); localStorage.setItem("audioPlaying", "false") toggleIMG.src = `${rootPrefix}static/images/sound-off.png` + toggleIMG.alt = headeri18n.soundOffAlt; } function setVolume(volume) {