Add highlight to current section on header links, add rating warning on social page, add bribribribribri's website to hotlinks.
This commit is contained in:
parent
e29ef5d30b
commit
f4fc14c66d
13 changed files with 58 additions and 11 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"lastFetched": "2026-07-05T15:35:13.105Z",
|
"lastFetched": "2026-07-05T16:45:30.248Z",
|
||||||
"posts": [
|
"posts": [
|
||||||
{
|
{
|
||||||
"date": "2026-07-03T01:51:37.604Z",
|
"date": "2026-07-03T01:51:37.604Z",
|
||||||
|
|
|
||||||
|
|
@ -98,7 +98,9 @@ module.exports = {
|
||||||
changes: "changes",
|
changes: "changes",
|
||||||
readingTime: "Reading time",
|
readingTime: "Reading time",
|
||||||
mastodonPageDescription: "This is an archive of all my Mastodon posts.",
|
mastodonPageDescription: "This is an archive of all my Mastodon posts.",
|
||||||
addMe: "Add me"
|
addMe: "Add me",
|
||||||
|
socialContentNotRated: "Social content is not rated and may mention topics not appropriate for all ages.",
|
||||||
|
clickHereToContinue: "Click here to continue"
|
||||||
},
|
},
|
||||||
pt: {
|
pt: {
|
||||||
language: "português",
|
language: "português",
|
||||||
|
|
@ -172,6 +174,8 @@ module.exports = {
|
||||||
changes: "mudanças",
|
changes: "mudanças",
|
||||||
readingTime: "Tempo de leitura",
|
readingTime: "Tempo de leitura",
|
||||||
mastodonPageDescription: "Essa página lista todas as minhas postagens do Mastodon.",
|
mastodonPageDescription: "Essa página lista todas as minhas postagens do Mastodon.",
|
||||||
addMe: "Me adicionar"
|
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"
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
@ -21,10 +21,10 @@
|
||||||
|
|
||||||
<ul id="headerLinks">
|
<ul id="headerLinks">
|
||||||
{% if langKey %}
|
{% if langKey %}
|
||||||
<a href="{{ ('/' ~ langKey ~ '/') | url }}">{{ i18n[langKey].home }}</a>
|
<a href="{{ ('/' ~ langKey ~ '/') | url }}"{% if headerLink == "home" %} style="text-decoration: underline; color: white;"{% endif %}>{{ i18n[langKey].home }}</a>
|
||||||
<a href="{{ ('/' ~ langKey ~ '/blog/') | url }}">blog</a>
|
<a href="{{ ('/' ~ langKey ~ '/blog/') | url }}" {% if headerLink == "blog" %} style="text-decoration: underline; color: white;"{% endif %}>blog</a>
|
||||||
<a href="{{ ('/' ~ langKey ~ '/misc/') | url }}">misc</a>
|
<a href="{{ ('/' ~ langKey ~ '/misc/') | url }}" {% if headerLink == "misc" %} style="text-decoration: underline; color: white;"{% endif %}>misc</a>
|
||||||
<a href="{{ ('/' ~ langKey ~ '/social/') | url }}">social</a>
|
<a href="{{ ('/' ~ langKey ~ '/social/') | url }}" {% if headerLink == "social" %} style="text-decoration: underline; color: white;"{% endif %}>social</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if langKey == undefined %}
|
{% if langKey == undefined %}
|
||||||
<a href="{{ ('/') | url }}">home</a>
|
<a href="{{ ('/') | url }}">home</a>
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
---
|
---
|
||||||
layout: base.njk
|
layout: base.njk
|
||||||
title: Adrian Victor:Blog
|
title: Adrian Victor:Blog
|
||||||
|
headerLink: blog
|
||||||
---
|
---
|
||||||
{% set altLanguages = collections.post | alternateLanguages(postId, langKey) %}
|
{% set altLanguages = collections.post | alternateLanguages(postId, langKey) %}
|
||||||
{% from "macros.njk" import videoCard with context %}
|
{% from "macros.njk" import videoCard with context %}
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ pagination:
|
||||||
permalink: "/{{ langKey }}/blog/index.html"
|
permalink: "/{{ langKey }}/blog/index.html"
|
||||||
layout: base.njk
|
layout: base.njk
|
||||||
title: Adrian Victor:Blog
|
title: Adrian Victor:Blog
|
||||||
|
headerLink: blog
|
||||||
---
|
---
|
||||||
|
|
||||||
<main>
|
<main>
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@ pagination:
|
||||||
alias: langKey
|
alias: langKey
|
||||||
permalink: "/{{ langKey }}/index.html"
|
permalink: "/{{ langKey }}/index.html"
|
||||||
layout: base.njk
|
layout: base.njk
|
||||||
|
headerLink: home
|
||||||
---
|
---
|
||||||
{% from "macros.njk" import i88x31 with context %}
|
{% from "macros.njk" import i88x31 with context %}
|
||||||
{% from "macros.njk" import videoCard with context %}
|
{% from "macros.njk" import videoCard with context %}
|
||||||
|
|
@ -196,6 +197,7 @@ layout: base.njk
|
||||||
<div class="centeredItemsBox">
|
<div class="centeredItemsBox">
|
||||||
<a href="https://www.youtube.com/@mrnandokk">{{ i88x31("mrnandokk.gif", i18n[langKey].mrnandoChannel, false) }}</a>
|
<a href="https://www.youtube.com/@mrnandokk">{{ i88x31("mrnandokk.gif", i18n[langKey].mrnandoChannel, false) }}</a>
|
||||||
<a href="https://appak.neocities.org/">{{ i88x31("appak.png", "appak", false) }}</a>
|
<a href="https://appak.neocities.org/">{{ i88x31("appak.png", "appak", false) }}</a>
|
||||||
|
<a href="https://bribribribribri.xyz/" target="_blank">{{ i88x31("brigif.gif", "bribribribribri", false) }}</a>
|
||||||
</div>
|
</div>
|
||||||
<p style="text-align: center;"><a href="{{ ('/' ~ langKey ~ '/misc/hotlinking') | url }}">{{ i18n[langKey].addMe }}?</a></p>
|
<p style="text-align: center;"><a href="{{ ('/' ~ langKey ~ '/misc/hotlinking') | url }}">{{ i18n[langKey].addMe }}?</a></p>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ pagination:
|
||||||
permalink: "/{{ langKey }}/misc/index.html"
|
permalink: "/{{ langKey }}/misc/index.html"
|
||||||
layout: base.njk
|
layout: base.njk
|
||||||
title: Adrian Victor:Misc
|
title: Adrian Victor:Misc
|
||||||
|
headerLink: misc
|
||||||
---
|
---
|
||||||
|
|
||||||
<main>
|
<main>
|
||||||
|
|
|
||||||
|
|
@ -27,5 +27,6 @@ module.exports = {
|
||||||
permalink: data => {
|
permalink: data => {
|
||||||
return `/${data.langKey}/misc/${data.page.fileSlug}/`;
|
return `/${data.langKey}/misc/${data.page.fileSlug}/`;
|
||||||
},
|
},
|
||||||
tags: "misc"
|
tags: "misc",
|
||||||
|
headerLink: "misc"
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
let data = {
|
let data = {
|
||||||
layout: "_includes/post.njk",
|
layout: "_includes/post.njk",
|
||||||
|
headerLink: "blog",
|
||||||
eleventyComputed: {
|
eleventyComputed: {
|
||||||
lastModified: function(data) {
|
lastModified: function(data) {
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,12 @@ pagination:
|
||||||
permalink: "/{{ langKey }}/social/index.html"
|
permalink: "/{{ langKey }}/social/index.html"
|
||||||
layout: base.njk
|
layout: base.njk
|
||||||
title: Adrian Victor:Social
|
title: Adrian Victor:Social
|
||||||
|
headerLink: social
|
||||||
---
|
---
|
||||||
|
<script>
|
||||||
|
const clickHereToContinueLocalized = "{{ i18n[langKey].clickHereToContinue }}";
|
||||||
|
</script>
|
||||||
|
<script src="{{ '/static/scripts/social.js' | url }}" defer></script>
|
||||||
<aside>
|
<aside>
|
||||||
<div id="socialAside">
|
<div id="socialAside">
|
||||||
<div>
|
<div>
|
||||||
|
|
@ -18,8 +23,11 @@ title: Adrian Victor:Social
|
||||||
{% include 'widgets/internetometer-aside.html' %}
|
{% include 'widgets/internetometer-aside.html' %}
|
||||||
</aside>
|
</aside>
|
||||||
<main>
|
<main>
|
||||||
|
<div id="socialAlert" class="box alert" style="margin-bottom: 1em;">
|
||||||
|
<p>{{ i18n[langKey].socialContentNotRated }}</p>
|
||||||
|
</div>
|
||||||
<p>{{ i18n[langKey].mastodonPageDescription }}</p>
|
<p>{{ i18n[langKey].mastodonPageDescription }}</p>
|
||||||
<ul>
|
<ul id="socialPosts">
|
||||||
{% for post in mastodon.posts %}
|
{% for post in mastodon.posts %}
|
||||||
<hr class="nomargin">
|
<hr class="nomargin">
|
||||||
<div class="mastodonPost">
|
<div class="mastodonPost">
|
||||||
|
|
|
||||||
BIN
static/images/88x31/brigif.gif
Normal file
BIN
static/images/88x31/brigif.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 39 KiB |
|
|
@ -152,12 +152,17 @@ h2 {
|
||||||
textarea,
|
textarea,
|
||||||
input,
|
input,
|
||||||
button {
|
button {
|
||||||
border: medium solid var(--theme-color-lighter);
|
transition: .2s;
|
||||||
background-color: black;
|
border: medium solid rgba(255, 255, 255, 0.6);
|
||||||
|
background-color: rgba(0, 0, 0, 0.2);
|
||||||
color: white;
|
color: white;
|
||||||
padding: 0.6em;
|
padding: 0.6em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
button:hover {
|
||||||
|
border-color: white;
|
||||||
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
|
|
@ -1144,6 +1149,16 @@ header div:first-child {
|
||||||
-o-animation: fire-animation .65s ease-in-out infinite alternate;
|
-o-animation: fire-animation .65s ease-in-out infinite alternate;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.blurred {
|
||||||
|
filter: blur(4px);
|
||||||
|
user-select: none;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#socialPosts {
|
||||||
|
transition: .4s;
|
||||||
|
}
|
||||||
|
|
||||||
/* Animations */
|
/* Animations */
|
||||||
|
|
||||||
@keyframes ellipsis-loader {
|
@keyframes ellipsis-loader {
|
||||||
|
|
|
||||||
13
static/scripts/social.js
Normal file
13
static/scripts/social.js
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
const socialPosts = document.querySelector('#socialPosts');
|
||||||
|
const socialAlert = document.querySelector('#socialAlert');
|
||||||
|
|
||||||
|
socialPosts.classList.add('blurred');
|
||||||
|
|
||||||
|
const continueButton = document.createElement('button');
|
||||||
|
continueButton.innerText = clickHereToContinueLocalized;
|
||||||
|
continueButton.addEventListener('click', () => {
|
||||||
|
socialPosts.classList.remove('blurred');
|
||||||
|
socialAlert.remove();
|
||||||
|
})
|
||||||
|
|
||||||
|
socialAlert.appendChild(continueButton);
|
||||||
Loading…
Reference in a new issue