2026-08-25 11:42:17 +02:00
|
|
|
<script setup lang="ts">
|
2026-09-11 13:52:13 +02:00
|
|
|
import { STRINGS } from '#shared/utils/i18n'
|
|
|
|
|
import { localePath } from '#shared/utils/locale'
|
|
|
|
|
|
|
|
|
|
const locale = useLocale()
|
|
|
|
|
const strings = computed(() => STRINGS[locale.value])
|
2026-08-25 11:42:17 +02:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
|
<div class="page">
|
2026-09-11 13:52:13 +02:00
|
|
|
<a class="skip-link" href="#main">{{ strings.skipLink }}</a>
|
2026-08-25 11:42:17 +02:00
|
|
|
|
|
|
|
|
<header class="site-header">
|
2026-09-11 14:31:58 +02:00
|
|
|
<div class="container header-inner">
|
|
|
|
|
<LanguageSwitch class="lang-switch-header" />
|
|
|
|
|
|
2026-08-25 12:22:05 +02:00
|
|
|
<p class="wordmark">
|
2026-09-11 13:52:13 +02:00
|
|
|
<NuxtLink :to="localePath(locale, '/')">
|
2026-08-25 13:25:13 +02:00
|
|
|
<img src="/logo.png" :alt="SITE_NAME" width="400" height="400">
|
2026-08-26 09:39:05 +02:00
|
|
|
</NuxtLink>
|
2026-08-25 12:22:05 +02:00
|
|
|
</p>
|
2026-09-11 13:52:13 +02:00
|
|
|
<p class="tagline kicker">{{ strings.tagline }}</p>
|
2026-08-25 11:42:17 +02:00
|
|
|
</div>
|
2026-08-25 12:22:05 +02:00
|
|
|
|
2026-09-11 13:52:13 +02:00
|
|
|
<nav class="site-nav" :aria-label="strings.navAriaLabel">
|
2026-08-25 14:23:09 +02:00
|
|
|
<div class="container nav-inner">
|
|
|
|
|
<ul>
|
2026-09-11 13:52:13 +02:00
|
|
|
<li><NuxtLink :to="localePath(locale, '/')">{{ strings.navHome }}</NuxtLink></li>
|
|
|
|
|
<li><NuxtLink :to="localePath(locale, '/blog')">{{ strings.navBlog }}</NuxtLink></li>
|
2026-09-11 15:39:31 +02:00
|
|
|
<li>
|
|
|
|
|
<NuxtLink :to="localePath(locale, '/come-difendersi-dal-corralito')">{{ strings.navCorralito }}</NuxtLink>
|
2026-09-11 13:52:13 +02:00
|
|
|
</li>
|
2026-08-25 14:23:09 +02:00
|
|
|
</ul>
|
|
|
|
|
</div>
|
2026-08-25 12:22:05 +02:00
|
|
|
</nav>
|
2026-08-25 11:42:17 +02:00
|
|
|
</header>
|
|
|
|
|
|
|
|
|
|
<main id="main" class="container site-main">
|
|
|
|
|
<slot />
|
|
|
|
|
</main>
|
|
|
|
|
|
|
|
|
|
<footer class="site-footer">
|
2026-08-25 12:22:05 +02:00
|
|
|
<div class="container footer-inner">
|
|
|
|
|
<div class="footer-block">
|
2026-08-25 13:25:13 +02:00
|
|
|
<img class="footer-logo" src="/logo.png" :alt="SITE_NAME" width="400" height="400">
|
2026-09-11 13:52:13 +02:00
|
|
|
<p class="muted">{{ strings.tagline }}</p>
|
2026-08-25 13:44:14 +02:00
|
|
|
<address class="contact">
|
2026-09-11 13:52:13 +02:00
|
|
|
{{ strings.contactLabel }}
|
2026-08-25 14:23:09 +02:00
|
|
|
<a :href="`mailto:${SITE_EMAIL}`">{{ SITE_EMAIL }}</a>
|
2026-08-25 13:44:14 +02:00
|
|
|
</address>
|
2026-08-25 12:22:05 +02:00
|
|
|
</div>
|
|
|
|
|
|
2026-09-11 13:52:13 +02:00
|
|
|
<nav class="footer-block" :aria-label="strings.footerNavAriaLabel">
|
|
|
|
|
<p class="kicker">{{ strings.footerNavigaKicker }}</p>
|
2026-08-25 12:22:05 +02:00
|
|
|
<ul>
|
2026-09-11 13:52:13 +02:00
|
|
|
<li><NuxtLink :to="localePath(locale, '/')">{{ strings.navHome }}</NuxtLink></li>
|
|
|
|
|
<li><NuxtLink :to="localePath(locale, '/blog')">{{ strings.navBlog }}</NuxtLink></li>
|
2026-09-11 15:39:31 +02:00
|
|
|
<li>
|
|
|
|
|
<NuxtLink :to="localePath(locale, '/come-difendersi-dal-corralito')">{{ strings.navCorralito }}</NuxtLink>
|
2026-09-11 13:52:13 +02:00
|
|
|
</li>
|
2026-08-25 12:22:05 +02:00
|
|
|
</ul>
|
|
|
|
|
</nav>
|
2026-08-25 15:35:29 +02:00
|
|
|
|
2026-09-11 13:52:13 +02:00
|
|
|
<nav class="footer-block" :aria-label="strings.footerFollowAriaLabel">
|
|
|
|
|
<p class="kicker">{{ strings.footerSeguiciKicker }}</p>
|
2026-08-25 15:35:29 +02:00
|
|
|
<ul>
|
|
|
|
|
<li v-for="social in SOCIAL_LINKS" :key="social.name">
|
2026-08-25 16:11:14 +02:00
|
|
|
<a class="social" :href="social.url" target="_blank" rel="noopener me">
|
|
|
|
|
<SocialIcon :name="social.name" />
|
|
|
|
|
<span>{{ social.name }}</span>
|
|
|
|
|
</a>
|
2026-08-25 15:35:29 +02:00
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</nav>
|
2026-08-25 11:42:17 +02:00
|
|
|
</div>
|
2026-08-25 12:22:05 +02:00
|
|
|
|
2026-08-26 09:39:05 +02:00
|
|
|
<p class="container copyright kicker">
|
2026-09-11 13:52:13 +02:00
|
|
|
© {{ new Date().getFullYear() }} {{ SITE_NAME }}. {{ strings.copyright }}
|
2026-08-25 12:22:05 +02:00
|
|
|
</p>
|
2026-08-25 11:42:17 +02:00
|
|
|
</footer>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
.page {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
min-height: 100vh;
|
|
|
|
|
}
|
|
|
|
|
|
2026-08-25 12:22:05 +02:00
|
|
|
/* Header: centred wordmark over a thin rule of links. */
|
2026-08-25 11:42:17 +02:00
|
|
|
.site-header {
|
2026-08-25 19:04:40 +02:00
|
|
|
padding-top: 1.5rem;
|
2026-08-25 12:22:05 +02:00
|
|
|
text-align: center;
|
2026-08-25 11:42:17 +02:00
|
|
|
border-bottom: 1px solid var(--color-border);
|
|
|
|
|
}
|
|
|
|
|
|
2026-08-25 19:04:40 +02:00
|
|
|
@media (min-width: 48rem) {
|
|
|
|
|
.site-header {
|
|
|
|
|
padding-top: 2.5rem;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-09-11 14:31:58 +02:00
|
|
|
.header-inner {
|
|
|
|
|
position: relative;
|
|
|
|
|
}
|
|
|
|
|
|
2026-09-14 14:28:14 +02:00
|
|
|
/* Stacked and centred above the wordmark on phones — there isn't room
|
|
|
|
|
beside the centred logo without overlapping it. Pinned to the corner
|
|
|
|
|
again once the header has space to spare. */
|
2026-09-11 14:31:58 +02:00
|
|
|
.lang-switch-header {
|
2026-09-14 14:28:14 +02:00
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
margin-bottom: 0.75rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@media (min-width: 48rem) {
|
|
|
|
|
.lang-switch-header {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 0;
|
|
|
|
|
right: var(--space);
|
|
|
|
|
margin-bottom: 0;
|
|
|
|
|
}
|
2026-09-11 14:31:58 +02:00
|
|
|
}
|
|
|
|
|
|
2026-08-25 12:22:05 +02:00
|
|
|
.wordmark {
|
|
|
|
|
margin: 0;
|
2026-08-25 11:42:17 +02:00
|
|
|
}
|
|
|
|
|
|
2026-08-25 12:22:05 +02:00
|
|
|
.wordmark a {
|
2026-08-25 13:25:13 +02:00
|
|
|
display: inline-block;
|
2026-08-25 11:42:17 +02:00
|
|
|
text-decoration: none;
|
|
|
|
|
}
|
|
|
|
|
|
2026-08-25 13:25:13 +02:00
|
|
|
/* The seal carries the name itself, so it stands in for a text wordmark. */
|
|
|
|
|
.wordmark img {
|
|
|
|
|
width: clamp(6rem, 14vw, 8.5rem);
|
|
|
|
|
height: auto;
|
|
|
|
|
}
|
|
|
|
|
|
2026-08-25 12:22:05 +02:00
|
|
|
.tagline {
|
|
|
|
|
margin-top: 0.6rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.site-nav {
|
2026-08-25 19:04:40 +02:00
|
|
|
margin-top: 1.25rem;
|
2026-08-25 12:22:05 +02:00
|
|
|
border-top: 1px solid var(--color-border);
|
|
|
|
|
}
|
|
|
|
|
|
2026-08-25 14:23:09 +02:00
|
|
|
.nav-inner {
|
|
|
|
|
display: flex;
|
2026-08-26 09:39:05 +02:00
|
|
|
justify-content: center;
|
2026-08-25 19:04:40 +02:00
|
|
|
padding-block: 0.6rem;
|
2026-08-25 14:23:09 +02:00
|
|
|
}
|
|
|
|
|
|
2026-08-25 12:22:05 +02:00
|
|
|
.site-nav ul {
|
2026-08-25 11:42:17 +02:00
|
|
|
display: flex;
|
|
|
|
|
flex-wrap: wrap;
|
2026-08-25 19:04:40 +02:00
|
|
|
gap: 0 1.25rem;
|
2026-08-25 12:22:05 +02:00
|
|
|
justify-content: center;
|
2026-08-25 14:23:09 +02:00
|
|
|
padding: 0;
|
2026-08-25 11:42:17 +02:00
|
|
|
margin: 0;
|
|
|
|
|
list-style: none;
|
2026-08-25 12:22:05 +02:00
|
|
|
font-size: 0.75rem;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
letter-spacing: 0.14em;
|
|
|
|
|
text-transform: uppercase;
|
2026-08-25 11:42:17 +02:00
|
|
|
}
|
|
|
|
|
|
2026-08-25 19:04:40 +02:00
|
|
|
@media (min-width: 48rem) {
|
|
|
|
|
.site-nav {
|
|
|
|
|
margin-top: 2rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.nav-inner {
|
|
|
|
|
padding-block: 0.9rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.site-nav ul {
|
|
|
|
|
gap: 0.25rem 2rem;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-08-25 12:22:05 +02:00
|
|
|
.site-nav a {
|
2026-08-25 19:04:40 +02:00
|
|
|
display: inline-block;
|
2026-08-25 11:42:17 +02:00
|
|
|
text-decoration: none;
|
2026-08-25 12:22:05 +02:00
|
|
|
color: var(--color-body);
|
2026-08-25 19:04:40 +02:00
|
|
|
/* Roomy enough to tap accurately on a phone. */
|
|
|
|
|
padding-block: 0.6rem;
|
2026-08-25 12:22:05 +02:00
|
|
|
border-bottom: 1px solid transparent;
|
2026-08-25 11:42:17 +02:00
|
|
|
}
|
|
|
|
|
|
2026-08-25 12:22:05 +02:00
|
|
|
.site-nav a:hover,
|
|
|
|
|
.site-nav a.router-link-active {
|
|
|
|
|
color: var(--color-ink);
|
|
|
|
|
border-bottom-color: var(--color-ink);
|
2026-08-25 11:42:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.site-main {
|
|
|
|
|
flex: 1;
|
2026-08-25 19:04:40 +02:00
|
|
|
padding-block: 2.25rem 3.5rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@media (min-width: 48rem) {
|
|
|
|
|
.site-main {
|
|
|
|
|
padding-block: 3.5rem 5rem;
|
|
|
|
|
}
|
2026-08-25 11:42:17 +02:00
|
|
|
}
|
|
|
|
|
|
2026-08-25 12:22:05 +02:00
|
|
|
/* Footer: columns, then a centred copyright line. */
|
2026-08-25 11:42:17 +02:00
|
|
|
.site-footer {
|
2026-08-25 12:22:05 +02:00
|
|
|
padding-block: 3.5rem 2rem;
|
|
|
|
|
background: var(--color-surface);
|
|
|
|
|
border-top: 1px solid var(--color-border);
|
|
|
|
|
}
|
|
|
|
|
|
2026-08-25 19:04:40 +02:00
|
|
|
/* One column on phones, two on tablets, four on desktop — auto-fit would
|
|
|
|
|
otherwise leave the fourth block stranded on its own row on a tablet. */
|
2026-08-25 12:22:05 +02:00
|
|
|
.footer-inner {
|
|
|
|
|
display: grid;
|
2026-08-25 19:04:40 +02:00
|
|
|
gap: 2rem;
|
|
|
|
|
grid-template-columns: 1fr;
|
2026-08-25 12:22:05 +02:00
|
|
|
padding-bottom: 2.5rem;
|
|
|
|
|
}
|
|
|
|
|
|
2026-08-25 19:04:40 +02:00
|
|
|
@media (min-width: 48rem) {
|
|
|
|
|
.footer-inner {
|
|
|
|
|
grid-template-columns: repeat(2, 1fr);
|
|
|
|
|
gap: 2.5rem;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@media (min-width: 64rem) {
|
|
|
|
|
.footer-inner {
|
|
|
|
|
grid-template-columns: repeat(4, 1fr);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-08-25 12:22:05 +02:00
|
|
|
.footer-block p:last-of-type {
|
|
|
|
|
margin-bottom: 0;
|
|
|
|
|
}
|
|
|
|
|
|
2026-08-25 13:25:13 +02:00
|
|
|
.footer-logo {
|
|
|
|
|
width: 4.5rem;
|
|
|
|
|
height: auto;
|
|
|
|
|
margin-bottom: 1rem;
|
2026-08-25 12:22:05 +02:00
|
|
|
}
|
|
|
|
|
|
2026-08-25 13:44:14 +02:00
|
|
|
.contact {
|
|
|
|
|
margin-top: 0.75rem;
|
|
|
|
|
font-size: 0.95rem;
|
|
|
|
|
font-style: normal;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.contact a {
|
|
|
|
|
text-decoration: underline;
|
|
|
|
|
text-underline-offset: 0.2em;
|
|
|
|
|
}
|
|
|
|
|
|
2026-08-25 12:22:05 +02:00
|
|
|
.footer-block ul {
|
|
|
|
|
padding: 0;
|
|
|
|
|
margin: 0.9rem 0 0;
|
|
|
|
|
list-style: none;
|
|
|
|
|
font-size: 0.95rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.footer-block li + li {
|
|
|
|
|
margin-top: 0.35rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.footer-block a {
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.footer-block a:hover {
|
|
|
|
|
text-decoration: underline;
|
|
|
|
|
text-underline-offset: 0.2em;
|
|
|
|
|
}
|
|
|
|
|
|
2026-08-25 16:11:14 +02:00
|
|
|
.social {
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 0.55rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Keep the underline on the label, not stretched across the icon. */
|
|
|
|
|
.social:hover {
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.social:hover span {
|
|
|
|
|
text-decoration: underline;
|
|
|
|
|
text-underline-offset: 0.2em;
|
|
|
|
|
}
|
|
|
|
|
|
2026-08-25 12:22:05 +02:00
|
|
|
.copyright {
|
|
|
|
|
padding-top: 1.75rem;
|
|
|
|
|
text-align: center;
|
2026-08-25 11:42:17 +02:00
|
|
|
border-top: 1px solid var(--color-border);
|
|
|
|
|
}
|
|
|
|
|
</style>
|