test: suite completa di §11 e npm run verify verde
- html-validate su tutte le pagine; linkinator su astro preview (link, asset, CSS e ancore), con modalità --external per i siti esterni - e2e Playwright: struttura e metadati di ogni pagina, 404, navigazione, sottomenu, menu mobile, ancore del vecchio sito, nessuna richiesta esterna, nessun cookie, localStorage vuoto, mappa solo dopo il clic, funzionamento senza JavaScript, modulo di contatto - a11y: axe su tutte le pagine a 1440 e 390 px e negli stati interattivi, tastiera (skip link, sottomenu, menu mobile), focus visibile, testo al 200 %, reflow a 320 px, movimento ridotto - check-compliance.mjs: P.IVA, link legali, risorse sicure, segnaposto, JSON-LD, sitemap, robots, .htaccess, badge e servizi, uso di «commercialista», riferimento L. 4/2013, budget - fix: punti di interruzione in em, focus ciclico nel menu mobile, rel="noopener" sui link esterni del Markdown, numeri di telefono non spezzabili Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016zJ9ZWGKvoKoxYwbmnRKdJ
This commit is contained in:
40 files changed
+1798
-114
No files matched your search
@@ -5,14 +5,14 @@
|
||||
* successivo.
|
||||
*/
|
||||
import type { GetStaticPaths } from 'astro';
|
||||
import { render } from 'astro:content';
|
||||
import CtaBand from '../../components/CtaBand.astro';
|
||||
import Icon from '../../components/Icon.astro';
|
||||
import PageHead from '../../components/PageHead.astro';
|
||||
import { studio } from '../../data/studio';
|
||||
import { ctaSidebar } from '../../data/testi';
|
||||
import BaseLayout from '../../layouts/BaseLayout.astro';
|
||||
import { telHref } from '../../lib/format';
|
||||
import { externalLinksNoopener } from '../../lib/html';
|
||||
import { telHref, telText } from '../../lib/format';
|
||||
import { serviceLd } from '../../lib/seo';
|
||||
import { getServizi, servizioHref, type Servizio } from '../../lib/servizi';
|
||||
|
||||
@@ -37,7 +37,6 @@ interface Props {
|
||||
}
|
||||
|
||||
const { servizio, servizi, prev, next } = Astro.props;
|
||||
const { Content } = await render(servizio);
|
||||
const d = servizio.data;
|
||||
const path = servizioHref(servizio);
|
||||
const breadcrumbs = [
|
||||
@@ -45,6 +44,7 @@ const breadcrumbs = [
|
||||
{ name: d.titolo, href: path },
|
||||
];
|
||||
const site = Astro.site ?? new URL('https://www.grassoezio.it');
|
||||
const contentHtml = externalLinksNoopener(servizio.rendered?.html ?? '', site.host);
|
||||
const jsonLd = [serviceLd(site, { name: d.titolo, description: d.descrizioneSeo, path })];
|
||||
const telefono = studio.telefoni[0];
|
||||
---
|
||||
@@ -64,7 +64,7 @@ const telefono = studio.telefoni[0];
|
||||
<p class="sidenav__title" id="sidenav-titolo">
|
||||
Tutti i servizi
|
||||
</p>
|
||||
<ul role="list">
|
||||
<ul>
|
||||
{servizi.map((s) => (
|
||||
<li>
|
||||
<a href={servizioHref(s)} aria-current={s.id === servizio.id ? 'page' : undefined}>
|
||||
@@ -84,13 +84,13 @@ const telefono = studio.telefoni[0];
|
||||
<a class="sidenav__tel" href={telHref(telefono)}>
|
||||
<Icon name="phone" size={18} />
|
||||
<span class="visually-hidden">Telefono</span>
|
||||
{telefono.display}
|
||||
{telText(telefono)}
|
||||
</a>
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
<div class="content">
|
||||
<Content />
|
||||
<Fragment set:html={contentHtml} />
|
||||
|
||||
<nav class="pager" aria-label="Servizio precedente e successivo">
|
||||
<a href={servizioHref(prev)} rel="prev">
|
||||
@@ -118,7 +118,7 @@ const telefono = studio.telefoni[0];
|
||||
<style>
|
||||
.layout {
|
||||
display: grid;
|
||||
grid-template-columns: 280px minmax(0, 1fr);
|
||||
grid-template-columns: 17.5rem minmax(0, 1fr);
|
||||
gap: var(--space-8);
|
||||
align-items: start;
|
||||
}
|
||||
@@ -283,7 +283,7 @@ const telefono = studio.telefoni[0];
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
@media (max-width: 960px) {
|
||||
@media (max-width: 60em) {
|
||||
.layout {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
gap: var(--space-6);
|
||||
@@ -295,7 +295,7 @@ const telefono = studio.telefoni[0];
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
@media (max-width: 40em) {
|
||||
.pager {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user