feat: pagine del sito secondo la specifica di §7
- home con hero, servizi, studio e professionisti, abilitazioni, partner, banda CTA e sedi con mappa click-to-load - lo studio, servizi (hub con ancore del vecchio sito e redirect), dettaglio servizio con barra laterale e precedente/successivo - contatti (recapiti, modulo o card e-mail, mappa), dove siamo, link utili - pagina 404 e pagina di conferma del modulo (noindex, fuori sitemap) - script per screenshot di tutte le pagine; preview Astro in primo piano Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016zJ9ZWGKvoKoxYwbmnRKdJ
This commit is contained in:
14 files changed
+1190
-11
No files matched your search
@@ -34,7 +34,8 @@ export default defineConfig({
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
webServer: {
|
webServer: {
|
||||||
command: `npx astro preview --host ${HOST} --port ${PORT}`,
|
// --ignore-lock: resta in primo piano anche quando Astro rileva un agente AI.
|
||||||
|
command: `npx astro preview --host ${HOST} --port ${PORT} --ignore-lock`,
|
||||||
url: `http://${HOST}:${PORT}/`,
|
url: `http://${HOST}:${PORT}/`,
|
||||||
reuseExistingServer: !process.env.CI,
|
reuseExistingServer: !process.env.CI,
|
||||||
timeout: 60_000,
|
timeout: 60_000,
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ export async function startPreview({ port = 4322 } = {}) {
|
|||||||
const astroBin = resolve(root, 'node_modules', 'astro', 'bin', 'astro.mjs');
|
const astroBin = resolve(root, 'node_modules', 'astro', 'bin', 'astro.mjs');
|
||||||
const child = spawn(
|
const child = spawn(
|
||||||
process.execPath,
|
process.execPath,
|
||||||
[astroBin, 'preview', '--host', '127.0.0.1', '--port', String(p)],
|
[astroBin, 'preview', '--host', '127.0.0.1', '--port', String(p), '--ignore-lock'],
|
||||||
{
|
{
|
||||||
cwd: root,
|
cwd: root,
|
||||||
stdio: ['ignore', 'pipe', 'pipe'],
|
stdio: ['ignore', 'pipe', 'pipe'],
|
||||||
|
|||||||
@@ -0,0 +1,24 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 560 420" width="560" height="420">
|
||||||
|
<rect width="560" height="420" rx="20" fill="#f2f6fa"/>
|
||||||
|
<path d="M0 300 C 120 250 220 330 340 290 S 520 230 560 260 L 560 400 Q 560 420 540 420 L 20 420 Q 0 420 0 400 Z" fill="#e6edf5"/>
|
||||||
|
<circle cx="430" cy="118" r="70" fill="none" stroke="#b8902e" stroke-width="14" opacity="0.9"/>
|
||||||
|
<rect x="96" y="128" width="200" height="232" rx="14" fill="#0f2a44"/>
|
||||||
|
<rect x="122" y="160" width="40" height="40" rx="6" fill="#163a5c"/>
|
||||||
|
<rect x="178" y="160" width="40" height="40" rx="6" fill="#163a5c"/>
|
||||||
|
<rect x="234" y="160" width="40" height="40" rx="6" fill="#163a5c"/>
|
||||||
|
<rect x="122" y="216" width="40" height="40" rx="6" fill="#163a5c"/>
|
||||||
|
<rect x="178" y="216" width="40" height="40" rx="6" fill="#e3c878"/>
|
||||||
|
<rect x="234" y="216" width="40" height="40" rx="6" fill="#163a5c"/>
|
||||||
|
<rect x="122" y="272" width="40" height="40" rx="6" fill="#163a5c"/>
|
||||||
|
<rect x="178" y="296" width="40" height="64" rx="6" fill="#b8902e"/>
|
||||||
|
<rect x="234" y="272" width="40" height="40" rx="6" fill="#163a5c"/>
|
||||||
|
<rect x="316" y="214" width="150" height="146" rx="14" fill="#ffffff" stroke="#dde3ea" stroke-width="2"/>
|
||||||
|
<rect x="338" y="240" width="106" height="10" rx="5" fill="#0f2a44"/>
|
||||||
|
<rect x="338" y="264" width="82" height="8" rx="4" fill="#dde3ea"/>
|
||||||
|
<rect x="338" y="282" width="96" height="8" rx="4" fill="#dde3ea"/>
|
||||||
|
<rect x="338" y="300" width="70" height="8" rx="4" fill="#dde3ea"/>
|
||||||
|
<circle cx="352" cy="334" r="10" fill="#f7efd9"/>
|
||||||
|
<path d="M347 334 l4 4 l7 -8" fill="none" stroke="#8a6a1e" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||||
|
<rect x="370" y="330" width="60" height="8" rx="4" fill="#dde3ea"/>
|
||||||
|
<rect x="60" y="360" width="440" height="4" rx="2" fill="#0b1f33" opacity="0.12"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 1.8 KiB |
@@ -0,0 +1,164 @@
|
|||||||
|
---
|
||||||
|
/** Riquadri «Le sedi», «Recapiti» e «Orari» (pagine Contatti e Dove siamo). */
|
||||||
|
import { sedePrincipale, studio } from '../data/studio';
|
||||||
|
import { cityLine, hoursLine, mailtoHref, telHref } from '../lib/format';
|
||||||
|
import Icon from './Icon.astro';
|
||||||
|
|
||||||
|
interface Props {
|
||||||
|
/** Mostra il riquadro delle sedi (non serve nella pagina Dove siamo). */
|
||||||
|
sedi?: boolean;
|
||||||
|
headingLevel?: 2 | 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
const { sedi = true, headingLevel = 2 } = Astro.props;
|
||||||
|
const Heading = headingLevel === 2 ? 'h2' : 'h3';
|
||||||
|
const elencoSedi = [sedePrincipale, ...studio.sedi.filter((s) => s.id !== sedePrincipale.id)];
|
||||||
|
---
|
||||||
|
|
||||||
|
<div class="info-stack">
|
||||||
|
{sedi && (
|
||||||
|
<section class="info" aria-labelledby="info-sedi">
|
||||||
|
<Heading id="info-sedi">
|
||||||
|
<Icon name="map-pin" size={20} />
|
||||||
|
Le sedi
|
||||||
|
</Heading>
|
||||||
|
<dl>
|
||||||
|
{elencoSedi.map((s) => (
|
||||||
|
<>
|
||||||
|
<dt>{s.nomeBreve}</dt>
|
||||||
|
<dd>
|
||||||
|
{s.indirizzo.streetAddress} — {cityLine(s.indirizzo)}
|
||||||
|
{s.suAppuntamento && <span class="info__note">Su appuntamento</span>}
|
||||||
|
</dd>
|
||||||
|
</>
|
||||||
|
))}
|
||||||
|
</dl>
|
||||||
|
</section>
|
||||||
|
)}
|
||||||
|
|
||||||
|
<section class="info" aria-labelledby="info-recapiti">
|
||||||
|
<Heading id="info-recapiti">
|
||||||
|
<Icon name="phone" size={20} />
|
||||||
|
Recapiti
|
||||||
|
</Heading>
|
||||||
|
<dl>
|
||||||
|
<dt>Telefono</dt>
|
||||||
|
<dd>
|
||||||
|
{studio.telefoni.map((t) => (
|
||||||
|
<span class="info__line">
|
||||||
|
<a href={telHref(t)}>{t.display}</a>
|
||||||
|
</span>
|
||||||
|
))}
|
||||||
|
</dd>
|
||||||
|
<dt>Fax</dt>
|
||||||
|
<dd>{studio.fax.display}</dd>
|
||||||
|
<dt>E-mail</dt>
|
||||||
|
<dd>
|
||||||
|
<a href={mailtoHref(studio.email)}>{studio.email}</a>
|
||||||
|
</dd>
|
||||||
|
<dt>PEC</dt>
|
||||||
|
<dd>
|
||||||
|
{studio.pec.map((p) => (
|
||||||
|
<span class="info__line">
|
||||||
|
<a href={mailtoHref(p.indirizzo)}>{p.indirizzo}</a>
|
||||||
|
<span class="info__note">{p.etichetta}</span>
|
||||||
|
</span>
|
||||||
|
))}
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="info" aria-labelledby="info-orari">
|
||||||
|
<Heading id="info-orari">
|
||||||
|
<Icon name="clock" size={20} />
|
||||||
|
Orari
|
||||||
|
</Heading>
|
||||||
|
<dl>
|
||||||
|
<dt>{studio.orari.giorniBreve}</dt>
|
||||||
|
<dd>{hoursLine()}</dd>
|
||||||
|
<dt>Asti</dt>
|
||||||
|
<dd>Ricevimento su appuntamento</dd>
|
||||||
|
</dl>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.info-stack {
|
||||||
|
display: grid;
|
||||||
|
gap: var(--space-4);
|
||||||
|
}
|
||||||
|
|
||||||
|
.info {
|
||||||
|
padding: var(--space-5);
|
||||||
|
background: var(--white);
|
||||||
|
border: 1px solid var(--line);
|
||||||
|
border-radius: var(--radius-md);
|
||||||
|
box-shadow: var(--shadow-sm);
|
||||||
|
}
|
||||||
|
|
||||||
|
.info :global(h2),
|
||||||
|
.info :global(h3) {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.6rem;
|
||||||
|
margin-bottom: var(--space-3);
|
||||||
|
font-size: 1.1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info :global(h2 svg),
|
||||||
|
.info :global(h3 svg) {
|
||||||
|
flex: none;
|
||||||
|
width: 20px;
|
||||||
|
height: 20px;
|
||||||
|
color: var(--gold-700);
|
||||||
|
}
|
||||||
|
|
||||||
|
.info dl {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: auto minmax(0, 1fr);
|
||||||
|
gap: 0.5rem var(--space-4);
|
||||||
|
margin: 0;
|
||||||
|
font-size: var(--fs-sm);
|
||||||
|
}
|
||||||
|
|
||||||
|
.info dt {
|
||||||
|
color: var(--ink-600);
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info dd {
|
||||||
|
margin: 0;
|
||||||
|
color: var(--ink-900);
|
||||||
|
overflow-wrap: anywhere;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info__line {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info__line + .info__line {
|
||||||
|
margin-top: 0.35rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info__note {
|
||||||
|
display: block;
|
||||||
|
font-size: var(--fs-xs);
|
||||||
|
color: var(--ink-600);
|
||||||
|
}
|
||||||
|
|
||||||
|
.info a {
|
||||||
|
display: inline-block;
|
||||||
|
padding-block: 0.15rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 420px) {
|
||||||
|
.info dl {
|
||||||
|
grid-template-columns: minmax(0, 1fr);
|
||||||
|
gap: 0.1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info dd + dt {
|
||||||
|
margin-top: 0.6rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -0,0 +1,44 @@
|
|||||||
|
---
|
||||||
|
/** Pagina 404 (brief §7.8): generata come /404.html, noindex, con link alle sezioni principali. */
|
||||||
|
import Icon from '../components/Icon.astro';
|
||||||
|
import { paginaNonTrovata as t } from '../data/pagine';
|
||||||
|
import BaseLayout from '../layouts/BaseLayout.astro';
|
||||||
|
---
|
||||||
|
|
||||||
|
<BaseLayout title={t.meta.titolo} description={t.meta.descrizione} noindex>
|
||||||
|
<section class="section notfound">
|
||||||
|
<div class="container">
|
||||||
|
<p class="eyebrow">Errore 404</p>
|
||||||
|
<h1>{t.titolo}</h1>
|
||||||
|
<p class="lead">{t.testo}</p>
|
||||||
|
<ul class="notfound__links" role="list">
|
||||||
|
{t.link.map((l) => (
|
||||||
|
<li>
|
||||||
|
<a class="btn btn--outline" href={l.href}>
|
||||||
|
<Icon name={l.icona} size={18} />
|
||||||
|
{l.label}
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
))}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</BaseLayout>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.notfound {
|
||||||
|
background: linear-gradient(180deg, var(--navy-050) 0%, var(--white) 100%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.notfound .lead {
|
||||||
|
max-width: 40rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notfound__links {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: var(--space-3);
|
||||||
|
margin-top: var(--space-5);
|
||||||
|
list-style: none;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
---
|
||||||
|
/** Conferma di invio del modulo (brief §10.1): generata sempre, esclusa dalla sitemap, noindex. */
|
||||||
|
import Icon from '../../components/Icon.astro';
|
||||||
|
import PageHead from '../../components/PageHead.astro';
|
||||||
|
import { grazie as t } from '../../data/pagine';
|
||||||
|
import BaseLayout from '../../layouts/BaseLayout.astro';
|
||||||
|
|
||||||
|
const breadcrumbs = [
|
||||||
|
{ name: 'Contatti', href: '/contatti/' },
|
||||||
|
{ name: t.titolo, href: '/contatti/grazie/' },
|
||||||
|
];
|
||||||
|
---
|
||||||
|
|
||||||
|
<BaseLayout
|
||||||
|
title={t.meta.titolo}
|
||||||
|
description={t.meta.descrizione}
|
||||||
|
breadcrumbs={breadcrumbs}
|
||||||
|
noindex
|
||||||
|
>
|
||||||
|
<PageHead title={t.titolo} subtitle={t.testo} breadcrumbs={breadcrumbs} />
|
||||||
|
<section class="section">
|
||||||
|
<div class="container">
|
||||||
|
<a class="btn btn--primary" href={t.link.href}>
|
||||||
|
{t.link.label}
|
||||||
|
<Icon name="arrow-right" size={18} />
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</BaseLayout>
|
||||||
@@ -0,0 +1,75 @@
|
|||||||
|
---
|
||||||
|
/** Contatti (brief §7.5): recapiti, modulo (o card e-mail) e mappa click-to-load. */
|
||||||
|
import ContactForm from '../../components/ContactForm.astro';
|
||||||
|
import ContactInfo from '../../components/ContactInfo.astro';
|
||||||
|
import Icon from '../../components/Icon.astro';
|
||||||
|
import MapConsent from '../../components/MapConsent.astro';
|
||||||
|
import PageHead from '../../components/PageHead.astro';
|
||||||
|
import SectionHead from '../../components/SectionHead.astro';
|
||||||
|
import { contattiPagina as t } from '../../data/pagine';
|
||||||
|
import { sedePrincipale } from '../../data/studio';
|
||||||
|
import BaseLayout from '../../layouts/BaseLayout.astro';
|
||||||
|
|
||||||
|
const breadcrumbs = [{ name: t.titolo, href: '/contatti/' }];
|
||||||
|
---
|
||||||
|
|
||||||
|
<BaseLayout title={t.meta.titolo} description={t.meta.descrizione} breadcrumbs={breadcrumbs}>
|
||||||
|
<PageHead title={t.titolo} subtitle={t.sottotitolo} breadcrumbs={breadcrumbs} />
|
||||||
|
|
||||||
|
<section class="section">
|
||||||
|
<div class="container contact-grid">
|
||||||
|
<ContactInfo />
|
||||||
|
<div>
|
||||||
|
<ContactForm />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="section section--paper" aria-labelledby="contatti-mappa">
|
||||||
|
<div class="container">
|
||||||
|
<SectionHead id="contatti-mappa" eyebrow={t.mappa.eyebrow} title={t.mappa.titolo} />
|
||||||
|
<MapConsent
|
||||||
|
embedUrl={sedePrincipale.mappa.embedUrl}
|
||||||
|
title={sedePrincipale.mappa.titolo}
|
||||||
|
query={sedePrincipale.ricercaMappa}
|
||||||
|
place={sedePrincipale.nome}
|
||||||
|
/>
|
||||||
|
<p class="contact-more">
|
||||||
|
<a href="/dove-siamo/">
|
||||||
|
Tutte le sedi e le indicazioni stradali
|
||||||
|
<Icon name="arrow-right" size={16} />
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</BaseLayout>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.contact-grid {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
|
||||||
|
gap: var(--space-7);
|
||||||
|
align-items: start;
|
||||||
|
}
|
||||||
|
|
||||||
|
.contact-more {
|
||||||
|
margin: var(--space-5) 0 0;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.contact-more a {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.35rem;
|
||||||
|
min-height: var(--tap);
|
||||||
|
font-weight: 600;
|
||||||
|
color: var(--navy-800);
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 960px) {
|
||||||
|
.contact-grid {
|
||||||
|
grid-template-columns: minmax(0, 1fr);
|
||||||
|
gap: var(--space-6);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -0,0 +1,64 @@
|
|||||||
|
---
|
||||||
|
/** Dove siamo (brief §7.6): le due sedi complete, recapiti e banda CTA. */
|
||||||
|
import ContactInfo from '../components/ContactInfo.astro';
|
||||||
|
import CtaBand from '../components/CtaBand.astro';
|
||||||
|
import PageHead from '../components/PageHead.astro';
|
||||||
|
import SectionHead from '../components/SectionHead.astro';
|
||||||
|
import SedeCard from '../components/SedeCard.astro';
|
||||||
|
import { doveSiamoPagina as t } from '../data/pagine';
|
||||||
|
import { sedePrincipale, studio } from '../data/studio';
|
||||||
|
import BaseLayout from '../layouts/BaseLayout.astro';
|
||||||
|
|
||||||
|
const breadcrumbs = [{ name: t.titolo, href: '/dove-siamo/' }];
|
||||||
|
const sedi = [sedePrincipale, ...studio.sedi.filter((s) => s.id !== sedePrincipale.id)];
|
||||||
|
---
|
||||||
|
|
||||||
|
<BaseLayout title={t.meta.titolo} description={t.meta.descrizione} breadcrumbs={breadcrumbs}>
|
||||||
|
<PageHead title={t.titolo} subtitle={t.sottotitolo} breadcrumbs={breadcrumbs} />
|
||||||
|
|
||||||
|
<section class="section" aria-label="Le sedi">
|
||||||
|
<div class="container grid grid--2 sedi">
|
||||||
|
{sedi.map((s) => (
|
||||||
|
<SedeCard sede={s} variant="full" headingLevel={2} />
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="section section--tint" aria-labelledby="dove-recapiti">
|
||||||
|
<div class="container recapiti">
|
||||||
|
<SectionHead
|
||||||
|
id="dove-recapiti"
|
||||||
|
eyebrow={t.recapiti.eyebrow}
|
||||||
|
title={t.recapiti.titolo}
|
||||||
|
subtitle={t.recapiti.testo}
|
||||||
|
/>
|
||||||
|
<ContactInfo sedi={false} headingLevel={3} />
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<CtaBand />
|
||||||
|
</BaseLayout>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.sedi {
|
||||||
|
align-items: start;
|
||||||
|
}
|
||||||
|
|
||||||
|
.recapiti {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
|
||||||
|
gap: var(--space-7);
|
||||||
|
align-items: start;
|
||||||
|
}
|
||||||
|
|
||||||
|
.recapiti :global(.section-head) {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 960px) {
|
||||||
|
.recapiti {
|
||||||
|
grid-template-columns: minmax(0, 1fr);
|
||||||
|
gap: var(--space-5);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
+140
-8
@@ -1,20 +1,152 @@
|
|||||||
---
|
---
|
||||||
// Pagina provvisoria della fase 1 (anteprima del layout): la home completa arriva nella fase 3.
|
/** Home (brief §7.1). */
|
||||||
|
import BadgeAbilitazione from '../components/BadgeAbilitazione.astro';
|
||||||
import CtaBand from '../components/CtaBand.astro';
|
import CtaBand from '../components/CtaBand.astro';
|
||||||
|
import Hero from '../components/Hero.astro';
|
||||||
|
import Icon from '../components/Icon.astro';
|
||||||
|
import PartnerGrid from '../components/PartnerGrid.astro';
|
||||||
|
import PersonCard from '../components/PersonCard.astro';
|
||||||
|
import SectionHead from '../components/SectionHead.astro';
|
||||||
|
import SedeCard from '../components/SedeCard.astro';
|
||||||
|
import ServiceCard from '../components/ServiceCard.astro';
|
||||||
|
import { home } from '../data/pagine';
|
||||||
|
import {
|
||||||
|
abilitazioni,
|
||||||
|
nomeProfessionista,
|
||||||
|
partner,
|
||||||
|
professionisti,
|
||||||
|
sedePrincipale,
|
||||||
|
studio,
|
||||||
|
valori,
|
||||||
|
} from '../data/studio';
|
||||||
import BaseLayout from '../layouts/BaseLayout.astro';
|
import BaseLayout from '../layouts/BaseLayout.astro';
|
||||||
import { studio } from '../data/studio';
|
import { getServizi } from '../lib/servizi';
|
||||||
|
|
||||||
|
const servizi = await getServizi();
|
||||||
|
const sedi = [sedePrincipale, ...studio.sedi.filter((s) => s.id !== sedePrincipale.id)];
|
||||||
---
|
---
|
||||||
|
|
||||||
<BaseLayout
|
<BaseLayout
|
||||||
title="Home"
|
title={home.meta.titolo}
|
||||||
fullTitle="Studio Grasso | Studio Tributario e Societario, Asti"
|
fullTitle={home.meta.titoloCompleto}
|
||||||
description={studio.descrizioneBreve}
|
description={home.meta.descrizione}
|
||||||
>
|
>
|
||||||
<section class="section">
|
<Hero {...home.hero} />
|
||||||
|
|
||||||
|
<section class="section" aria-labelledby="home-servizi">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<h1>{studio.nome}</h1>
|
<SectionHead
|
||||||
<p class="lead">{studio.descrizioneBreve}</p>
|
id="home-servizi"
|
||||||
|
eyebrow={home.servizi.eyebrow}
|
||||||
|
title={home.servizi.titolo}
|
||||||
|
subtitle={home.servizi.sottotitolo}
|
||||||
|
/>
|
||||||
|
<div class="grid grid--3">
|
||||||
|
{servizi.map((s) => (
|
||||||
|
<ServiceCard servizio={s} />
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
<section class="section section--paper" aria-labelledby="home-studio">
|
||||||
|
<div class="container split">
|
||||||
|
<div class="prose">
|
||||||
|
<p class="eyebrow">{home.studio.eyebrow}</p>
|
||||||
|
<h2 id="home-studio">{home.studio.titolo}</h2>
|
||||||
|
{home.studio.paragrafi.map((p) => (
|
||||||
|
<p>{p}</p>
|
||||||
|
))}
|
||||||
|
<ul class="chips home-values" role="list" aria-label="I nostri valori">
|
||||||
|
{valori.map((v) => (
|
||||||
|
<li class="chip">{v.nome}</li>
|
||||||
|
))}
|
||||||
|
</ul>
|
||||||
|
<a class="btn btn--outline" href={home.studio.cta.href}>
|
||||||
|
{home.studio.cta.label}
|
||||||
|
<Icon name="arrow-right" size={18} />
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="home-people">
|
||||||
|
{professionisti.map((p) => (
|
||||||
|
<PersonCard persona={p} variant="compact" />
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="section" aria-labelledby="home-abilitazioni">
|
||||||
|
<div class="container">
|
||||||
|
<SectionHead
|
||||||
|
id="home-abilitazioni"
|
||||||
|
eyebrow={home.abilitazioni.eyebrow}
|
||||||
|
title={home.abilitazioni.titolo}
|
||||||
|
subtitle={home.abilitazioni.sottotitolo}
|
||||||
|
/>
|
||||||
|
<ul class="grid grid--3 badges" role="list">
|
||||||
|
{abilitazioni.map((a) => (
|
||||||
|
<BadgeAbilitazione
|
||||||
|
testo={a.testo}
|
||||||
|
professionista={nomeProfessionista(a.professionista)}
|
||||||
|
personaId={a.professionista}
|
||||||
|
icona={a.icona}
|
||||||
|
/>
|
||||||
|
))}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="section section--tint" aria-labelledby="home-partner">
|
||||||
|
<div class="container">
|
||||||
|
<SectionHead
|
||||||
|
id="home-partner"
|
||||||
|
eyebrow={home.partner.eyebrow}
|
||||||
|
title={home.partner.titolo}
|
||||||
|
subtitle={home.partner.sottotitolo}
|
||||||
|
/>
|
||||||
|
<PartnerGrid partner={partner} />
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
<CtaBand />
|
<CtaBand />
|
||||||
|
|
||||||
|
<section class="section" aria-labelledby="home-sedi">
|
||||||
|
<div class="container">
|
||||||
|
<SectionHead id="home-sedi" eyebrow={home.sedi.eyebrow} title={home.sedi.titolo} />
|
||||||
|
<div class="grid grid--2">
|
||||||
|
{sedi.map((s) => (
|
||||||
|
<SedeCard sede={s} variant="compact" />
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
</BaseLayout>
|
</BaseLayout>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.split {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
|
||||||
|
gap: var(--space-8);
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.home-values {
|
||||||
|
margin: var(--space-5) 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.home-people {
|
||||||
|
display: grid;
|
||||||
|
gap: var(--space-4);
|
||||||
|
}
|
||||||
|
|
||||||
|
.badges {
|
||||||
|
list-style: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 960px) {
|
||||||
|
.split {
|
||||||
|
grid-template-columns: minmax(0, 1fr);
|
||||||
|
gap: var(--space-6);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -0,0 +1,99 @@
|
|||||||
|
---
|
||||||
|
/** Link utili (brief §4.7, §7.8): card con ente, descrizione e dominio visibile. */
|
||||||
|
import { getCollection } from 'astro:content';
|
||||||
|
import CtaBand from '../components/CtaBand.astro';
|
||||||
|
import Icon from '../components/Icon.astro';
|
||||||
|
import PageHead from '../components/PageHead.astro';
|
||||||
|
import { linkUtiliPagina as t } from '../data/pagine';
|
||||||
|
import BaseLayout from '../layouts/BaseLayout.astro';
|
||||||
|
import { displayDomain } from '../lib/format';
|
||||||
|
|
||||||
|
const links = (await getCollection('linkUtili')).sort((a, b) => a.data.ordine - b.data.ordine);
|
||||||
|
const breadcrumbs = [{ name: t.titolo, href: '/link-utili/' }];
|
||||||
|
---
|
||||||
|
|
||||||
|
<BaseLayout title={t.meta.titolo} description={t.meta.descrizione} breadcrumbs={breadcrumbs}>
|
||||||
|
<PageHead title={t.titolo} subtitle={t.sottotitolo} breadcrumbs={breadcrumbs} />
|
||||||
|
|
||||||
|
<section class="section" aria-label="Elenco dei link">
|
||||||
|
<div class="container">
|
||||||
|
<ul class="grid grid--2 links" role="list">
|
||||||
|
{links.map((l) => (
|
||||||
|
<li class="link-card">
|
||||||
|
<span class="link-card__icon">
|
||||||
|
<Icon name="landmark" size={22} />
|
||||||
|
</span>
|
||||||
|
<div>
|
||||||
|
<h2>{l.data.nome}</h2>
|
||||||
|
<p>{l.data.descrizione}</p>
|
||||||
|
<a href={l.data.url} rel="noopener">
|
||||||
|
{displayDomain(l.data.url)}
|
||||||
|
<span class="visually-hidden"> (sito di {l.data.nome})</span>
|
||||||
|
<Icon name="external-link" size={16} />
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
))}
|
||||||
|
</ul>
|
||||||
|
<p class="links__note">{t.nota}</p>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<CtaBand />
|
||||||
|
</BaseLayout>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.links {
|
||||||
|
list-style: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.link-card {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 44px minmax(0, 1fr);
|
||||||
|
gap: var(--space-4);
|
||||||
|
align-items: start;
|
||||||
|
padding: var(--space-5);
|
||||||
|
background: var(--white);
|
||||||
|
border: 1px solid var(--line);
|
||||||
|
border-radius: var(--radius-md);
|
||||||
|
box-shadow: var(--shadow-sm);
|
||||||
|
}
|
||||||
|
|
||||||
|
.link-card__icon {
|
||||||
|
display: grid;
|
||||||
|
place-items: center;
|
||||||
|
width: 44px;
|
||||||
|
height: 44px;
|
||||||
|
border-radius: 10px;
|
||||||
|
background: var(--navy-050);
|
||||||
|
color: var(--navy-700);
|
||||||
|
}
|
||||||
|
|
||||||
|
.link-card h2 {
|
||||||
|
margin: 0.1rem 0 0.35rem;
|
||||||
|
font-size: 1.2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.link-card p {
|
||||||
|
margin-bottom: 0.5rem;
|
||||||
|
font-size: var(--fs-sm);
|
||||||
|
color: var(--ink-600);
|
||||||
|
}
|
||||||
|
|
||||||
|
.link-card a {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.35rem;
|
||||||
|
min-height: var(--tap);
|
||||||
|
font-weight: 600;
|
||||||
|
font-size: var(--fs-sm);
|
||||||
|
color: var(--navy-800);
|
||||||
|
overflow-wrap: anywhere;
|
||||||
|
}
|
||||||
|
|
||||||
|
.links__note {
|
||||||
|
margin: var(--space-6) 0 0;
|
||||||
|
font-size: var(--fs-sm);
|
||||||
|
color: var(--ink-600);
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -0,0 +1,308 @@
|
|||||||
|
---
|
||||||
|
/**
|
||||||
|
* Dettaglio di un servizio (brief §7.4): testata, barra laterale con l'elenco dei servizi e
|
||||||
|
* invito al contatto, contenuto a gruppi (titoli `##` e checklist dal Markdown), precedente e
|
||||||
|
* 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 { serviceLd } from '../../lib/seo';
|
||||||
|
import { getServizi, servizioHref, type Servizio } from '../../lib/servizi';
|
||||||
|
|
||||||
|
export const getStaticPaths = (async () => {
|
||||||
|
const servizi = await getServizi();
|
||||||
|
return servizi.map((servizio, i) => ({
|
||||||
|
params: { slug: servizio.data.slug },
|
||||||
|
props: {
|
||||||
|
servizio,
|
||||||
|
servizi,
|
||||||
|
prev: servizi[(i - 1 + servizi.length) % servizi.length],
|
||||||
|
next: servizi[(i + 1) % servizi.length],
|
||||||
|
},
|
||||||
|
}));
|
||||||
|
}) satisfies GetStaticPaths;
|
||||||
|
|
||||||
|
interface Props {
|
||||||
|
servizio: Servizio;
|
||||||
|
servizi: Servizio[];
|
||||||
|
prev: Servizio;
|
||||||
|
next: Servizio;
|
||||||
|
}
|
||||||
|
|
||||||
|
const { servizio, servizi, prev, next } = Astro.props;
|
||||||
|
const { Content } = await render(servizio);
|
||||||
|
const d = servizio.data;
|
||||||
|
const path = servizioHref(servizio);
|
||||||
|
const breadcrumbs = [
|
||||||
|
{ name: 'Servizi', href: '/servizi/' },
|
||||||
|
{ name: d.titolo, href: path },
|
||||||
|
];
|
||||||
|
const site = Astro.site ?? new URL('https://www.grassoezio.it');
|
||||||
|
const jsonLd = [serviceLd(site, { name: d.titolo, description: d.descrizioneSeo, path })];
|
||||||
|
const telefono = studio.telefoni[0];
|
||||||
|
---
|
||||||
|
|
||||||
|
<BaseLayout
|
||||||
|
title={d.titolo}
|
||||||
|
description={d.descrizioneSeo}
|
||||||
|
breadcrumbs={breadcrumbs}
|
||||||
|
jsonLd={jsonLd}
|
||||||
|
>
|
||||||
|
<PageHead title={d.titolo} subtitle={d.sottotitolo} breadcrumbs={breadcrumbs} />
|
||||||
|
|
||||||
|
<section class="section">
|
||||||
|
<div class="container layout">
|
||||||
|
<aside class="sidenav" aria-label="Altri servizi e contatti">
|
||||||
|
<nav class="sidenav__box" aria-labelledby="sidenav-titolo">
|
||||||
|
<p class="sidenav__title" id="sidenav-titolo">
|
||||||
|
Tutti i servizi
|
||||||
|
</p>
|
||||||
|
<ul role="list">
|
||||||
|
{servizi.map((s) => (
|
||||||
|
<li>
|
||||||
|
<a href={servizioHref(s)} aria-current={s.id === servizio.id ? 'page' : undefined}>
|
||||||
|
{s.data.titolo}
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
))}
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
<div class="sidenav__cta">
|
||||||
|
<p class="sidenav__cta-title">{ctaSidebar.titolo}</p>
|
||||||
|
<p>{ctaSidebar.testo}</p>
|
||||||
|
<a class="btn btn--gold btn--sm" href={ctaSidebar.pulsante.href}>
|
||||||
|
{ctaSidebar.pulsante.label}
|
||||||
|
<Icon name="arrow-right" size={16} />
|
||||||
|
</a>
|
||||||
|
<a class="sidenav__tel" href={telHref(telefono)}>
|
||||||
|
<Icon name="phone" size={18} />
|
||||||
|
<span class="visually-hidden">Telefono</span>
|
||||||
|
{telefono.display}
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<div class="content">
|
||||||
|
<Content />
|
||||||
|
|
||||||
|
<nav class="pager" aria-label="Servizio precedente e successivo">
|
||||||
|
<a href={servizioHref(prev)} rel="prev">
|
||||||
|
<span class="pager__label">Precedente</span>
|
||||||
|
<span class="pager__title">
|
||||||
|
<Icon name="arrow-left" size={16} />
|
||||||
|
{prev.data.titolo}
|
||||||
|
</span>
|
||||||
|
</a>
|
||||||
|
<a href={servizioHref(next)} rel="next">
|
||||||
|
<span class="pager__label">Successivo</span>
|
||||||
|
<span class="pager__title">
|
||||||
|
{next.data.titolo}
|
||||||
|
<Icon name="arrow-right" size={16} />
|
||||||
|
</span>
|
||||||
|
</a>
|
||||||
|
</nav>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<CtaBand />
|
||||||
|
</BaseLayout>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.layout {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 280px minmax(0, 1fr);
|
||||||
|
gap: var(--space-8);
|
||||||
|
align-items: start;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidenav {
|
||||||
|
position: sticky;
|
||||||
|
top: calc(var(--header-h) + 1.5rem);
|
||||||
|
display: grid;
|
||||||
|
gap: var(--space-4);
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidenav__box {
|
||||||
|
padding: var(--space-3);
|
||||||
|
background: var(--white);
|
||||||
|
border: 1px solid var(--line);
|
||||||
|
border-radius: var(--radius-md);
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidenav__box ul {
|
||||||
|
list-style: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidenav__title {
|
||||||
|
margin: 0.5rem 0.75rem 0.75rem;
|
||||||
|
font-size: var(--fs-xs);
|
||||||
|
font-weight: 600;
|
||||||
|
letter-spacing: 0.12em;
|
||||||
|
text-transform: uppercase;
|
||||||
|
color: var(--ink-600);
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidenav__box a {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
min-height: var(--tap);
|
||||||
|
padding: 0.5rem 0.75rem;
|
||||||
|
border-radius: var(--radius-sm);
|
||||||
|
color: var(--ink-700);
|
||||||
|
font-size: var(--fs-sm);
|
||||||
|
font-weight: 500;
|
||||||
|
line-height: 1.35;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidenav__box a:hover {
|
||||||
|
background: var(--navy-050);
|
||||||
|
color: var(--navy-900);
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidenav__box a[aria-current='page'] {
|
||||||
|
background: var(--navy-800);
|
||||||
|
color: var(--white);
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidenav__cta {
|
||||||
|
display: grid;
|
||||||
|
gap: var(--space-3);
|
||||||
|
justify-items: start;
|
||||||
|
padding: var(--space-5);
|
||||||
|
border-radius: var(--radius-md);
|
||||||
|
background: var(--navy-800);
|
||||||
|
color: var(--white);
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidenav__cta p {
|
||||||
|
margin: 0;
|
||||||
|
font-size: var(--fs-sm);
|
||||||
|
color: var(--on-dark);
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidenav__cta .sidenav__cta-title {
|
||||||
|
font-family: var(--font-display);
|
||||||
|
font-size: 1.2rem;
|
||||||
|
font-weight: 500;
|
||||||
|
line-height: 1.3;
|
||||||
|
color: var(--white);
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidenav__cta .btn {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidenav__tel {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.5rem;
|
||||||
|
min-height: var(--tap);
|
||||||
|
color: var(--white);
|
||||||
|
font-weight: 600;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidenav__tel:hover {
|
||||||
|
color: var(--white);
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidenav__tel :global(svg) {
|
||||||
|
color: var(--gold-300);
|
||||||
|
}
|
||||||
|
|
||||||
|
.content :global(h2) {
|
||||||
|
font-size: 1.6rem;
|
||||||
|
margin-top: var(--space-6);
|
||||||
|
padding-top: var(--space-5);
|
||||||
|
border-top: 1px solid var(--line);
|
||||||
|
}
|
||||||
|
|
||||||
|
.content :global(h2:first-child) {
|
||||||
|
margin-top: 0;
|
||||||
|
padding-top: 0;
|
||||||
|
border-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.content :global(p) {
|
||||||
|
color: var(--ink-700);
|
||||||
|
max-width: var(--measure);
|
||||||
|
}
|
||||||
|
|
||||||
|
.content > :global(p:first-child) {
|
||||||
|
font-size: var(--fs-lg);
|
||||||
|
color: var(--ink-700);
|
||||||
|
}
|
||||||
|
|
||||||
|
.pager {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
gap: var(--space-4);
|
||||||
|
margin-top: var(--space-7);
|
||||||
|
padding-top: var(--space-5);
|
||||||
|
border-top: 1px solid var(--line);
|
||||||
|
}
|
||||||
|
|
||||||
|
.pager a {
|
||||||
|
display: grid;
|
||||||
|
gap: 0.2rem;
|
||||||
|
min-height: var(--tap);
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pager a:last-child {
|
||||||
|
text-align: right;
|
||||||
|
justify-items: end;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pager__label {
|
||||||
|
font-size: var(--fs-xs);
|
||||||
|
color: var(--ink-600);
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.08em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pager__title {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.35rem;
|
||||||
|
font-weight: 600;
|
||||||
|
color: var(--navy-900);
|
||||||
|
}
|
||||||
|
|
||||||
|
.pager a:hover .pager__title {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 960px) {
|
||||||
|
.layout {
|
||||||
|
grid-template-columns: minmax(0, 1fr);
|
||||||
|
gap: var(--space-6);
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidenav {
|
||||||
|
position: static;
|
||||||
|
order: 2;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 640px) {
|
||||||
|
.pager {
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pager a:last-child {
|
||||||
|
text-align: left;
|
||||||
|
justify-items: start;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
---
|
||||||
|
/**
|
||||||
|
* Servizi (brief §7.3). Ogni card ha come `id` l'ancora usata dal vecchio sito, così i vecchi
|
||||||
|
* link /servizi#… atterrano sulla card giusta; con JavaScript si passa alla pagina di dettaglio.
|
||||||
|
*/
|
||||||
|
import CtaBand from '../../components/CtaBand.astro';
|
||||||
|
import PageHead from '../../components/PageHead.astro';
|
||||||
|
import ServiceCard from '../../components/ServiceCard.astro';
|
||||||
|
import { serviziPagina as t } from '../../data/pagine';
|
||||||
|
import BaseLayout from '../../layouts/BaseLayout.astro';
|
||||||
|
import { getServizi } from '../../lib/servizi';
|
||||||
|
|
||||||
|
const servizi = await getServizi();
|
||||||
|
const breadcrumbs = [{ name: 'Servizi', href: '/servizi/' }];
|
||||||
|
---
|
||||||
|
|
||||||
|
<BaseLayout title={t.meta.titolo} description={t.meta.descrizione} breadcrumbs={breadcrumbs}>
|
||||||
|
<PageHead title={t.titolo} subtitle={t.sottotitolo} breadcrumbs={breadcrumbs} />
|
||||||
|
|
||||||
|
<section class="section" aria-label="Elenco dei servizi">
|
||||||
|
<div class="container">
|
||||||
|
<div class="grid grid--3">
|
||||||
|
{servizi.map((s) => (
|
||||||
|
<ServiceCard servizio={s} id={s.data.anchorLegacy} legacy headingLevel={2} />
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<CtaBand />
|
||||||
|
</BaseLayout>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import '../../scripts/legacy-anchors';
|
||||||
|
</script>
|
||||||
@@ -0,0 +1,204 @@
|
|||||||
|
---
|
||||||
|
/** Lo studio (brief §7.2). */
|
||||||
|
import Illustrazione from '../assets/illustrazione-studio.svg';
|
||||||
|
import BadgeAbilitazione from '../components/BadgeAbilitazione.astro';
|
||||||
|
import CtaBand from '../components/CtaBand.astro';
|
||||||
|
import Icon from '../components/Icon.astro';
|
||||||
|
import PageHead from '../components/PageHead.astro';
|
||||||
|
import PartnerGrid from '../components/PartnerGrid.astro';
|
||||||
|
import PersonCard from '../components/PersonCard.astro';
|
||||||
|
import SectionHead from '../components/SectionHead.astro';
|
||||||
|
import { studioPagina as t } from '../data/pagine';
|
||||||
|
import {
|
||||||
|
abilitazioni,
|
||||||
|
collaborazioni,
|
||||||
|
nomeProfessionista,
|
||||||
|
partner,
|
||||||
|
professionisti,
|
||||||
|
valori,
|
||||||
|
} from '../data/studio';
|
||||||
|
import BaseLayout from '../layouts/BaseLayout.astro';
|
||||||
|
|
||||||
|
const breadcrumbs = [{ name: t.titolo, href: '/studio/' }];
|
||||||
|
---
|
||||||
|
|
||||||
|
<BaseLayout title={t.meta.titolo} description={t.meta.descrizione} breadcrumbs={breadcrumbs}>
|
||||||
|
<PageHead title={t.titolo} subtitle={t.sottotitolo} breadcrumbs={breadcrumbs} />
|
||||||
|
|
||||||
|
<section class="section" aria-labelledby="studio-chi-siamo">
|
||||||
|
<div class="container studio-intro">
|
||||||
|
<div class="prose">
|
||||||
|
<p class="eyebrow">{t.chiSiamo.eyebrow}</p>
|
||||||
|
<h2 id="studio-chi-siamo">{t.chiSiamo.titolo}</h2>
|
||||||
|
{t.chiSiamo.paragrafi.map((p) => (
|
||||||
|
<p>{p}</p>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
<div class="studio-intro__visual" aria-hidden="true">
|
||||||
|
<Illustrazione width={560} height={420} />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="section section--paper" aria-labelledby="studio-valori">
|
||||||
|
<div class="container">
|
||||||
|
<SectionHead id="studio-valori" eyebrow={t.valori.eyebrow} title={t.valori.titolo} />
|
||||||
|
<ul class="grid grid--4 values" role="list">
|
||||||
|
{valori.map((v) => (
|
||||||
|
<li class="value">
|
||||||
|
<span class="value__icon">
|
||||||
|
<Icon name={v.icona} size={22} />
|
||||||
|
</span>
|
||||||
|
<h3>{v.nome}</h3>
|
||||||
|
<p>{v.descrizione}</p>
|
||||||
|
</li>
|
||||||
|
))}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="section" aria-labelledby="studio-professionisti">
|
||||||
|
<div class="container">
|
||||||
|
<SectionHead
|
||||||
|
id="studio-professionisti"
|
||||||
|
eyebrow={t.professionisti.eyebrow}
|
||||||
|
title={t.professionisti.titolo}
|
||||||
|
/>
|
||||||
|
<div class="grid grid--2 people">
|
||||||
|
{professionisti.map((p) => (
|
||||||
|
<PersonCard persona={p} variant="full" />
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="section section--tint" aria-labelledby="studio-abilitazioni">
|
||||||
|
<div class="container">
|
||||||
|
<SectionHead
|
||||||
|
id="studio-abilitazioni"
|
||||||
|
eyebrow={t.abilitazioni.eyebrow}
|
||||||
|
title={t.abilitazioni.titolo}
|
||||||
|
subtitle={t.abilitazioni.sottotitolo}
|
||||||
|
/>
|
||||||
|
<ul class="grid grid--3 badges" role="list">
|
||||||
|
{abilitazioni.map((a) => (
|
||||||
|
<BadgeAbilitazione
|
||||||
|
testo={a.testo}
|
||||||
|
professionista={nomeProfessionista(a.professionista)}
|
||||||
|
personaId={a.professionista}
|
||||||
|
icona={a.icona}
|
||||||
|
/>
|
||||||
|
))}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="section" aria-labelledby="studio-partner">
|
||||||
|
<div class="container">
|
||||||
|
<SectionHead
|
||||||
|
id="studio-partner"
|
||||||
|
eyebrow={t.partner.eyebrow}
|
||||||
|
title={t.partner.titolo}
|
||||||
|
subtitle={t.partner.sottotitolo}
|
||||||
|
/>
|
||||||
|
<PartnerGrid partner={partner} />
|
||||||
|
<div class="collab">
|
||||||
|
<h3>{t.partner.collaborazioniTitolo}</h3>
|
||||||
|
<p>{t.partner.collaborazioniTesto}</p>
|
||||||
|
<ul class="checklist" role="list">
|
||||||
|
{collaborazioni.map((c) => (
|
||||||
|
<li>{c}</li>
|
||||||
|
))}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<CtaBand />
|
||||||
|
</BaseLayout>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.studio-intro {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
|
||||||
|
gap: var(--space-8);
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.studio-intro__visual :global(svg) {
|
||||||
|
width: 100%;
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.values {
|
||||||
|
list-style: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.value {
|
||||||
|
display: grid;
|
||||||
|
align-content: start;
|
||||||
|
gap: var(--space-2);
|
||||||
|
padding: var(--space-5);
|
||||||
|
background: var(--white);
|
||||||
|
border: 1px solid var(--line);
|
||||||
|
border-radius: var(--radius-md);
|
||||||
|
}
|
||||||
|
|
||||||
|
.value__icon {
|
||||||
|
display: grid;
|
||||||
|
place-items: center;
|
||||||
|
width: 44px;
|
||||||
|
height: 44px;
|
||||||
|
border-radius: 10px;
|
||||||
|
background: var(--gold-100);
|
||||||
|
color: var(--gold-700);
|
||||||
|
}
|
||||||
|
|
||||||
|
.value__icon :global(svg) {
|
||||||
|
width: 22px;
|
||||||
|
height: 22px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.value h3 {
|
||||||
|
margin: var(--space-2) 0 0;
|
||||||
|
font-size: 1.15rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.value p {
|
||||||
|
margin: 0;
|
||||||
|
font-size: var(--fs-sm);
|
||||||
|
color: var(--ink-600);
|
||||||
|
}
|
||||||
|
|
||||||
|
.people {
|
||||||
|
align-items: start;
|
||||||
|
}
|
||||||
|
|
||||||
|
.badges {
|
||||||
|
list-style: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.collab {
|
||||||
|
margin-top: var(--space-7);
|
||||||
|
max-width: 56rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.collab h3 {
|
||||||
|
margin-bottom: var(--space-2);
|
||||||
|
}
|
||||||
|
|
||||||
|
.collab p {
|
||||||
|
color: var(--ink-700);
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 960px) {
|
||||||
|
.studio-intro {
|
||||||
|
grid-template-columns: minmax(0, 1fr);
|
||||||
|
gap: var(--space-6);
|
||||||
|
}
|
||||||
|
|
||||||
|
.studio-intro__visual {
|
||||||
|
max-width: 32rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -246,7 +246,7 @@ button {
|
|||||||
max-width: var(--measure);
|
max-width: var(--measure);
|
||||||
}
|
}
|
||||||
|
|
||||||
.prose p,
|
.prose p:not(.eyebrow),
|
||||||
.prose li {
|
.prose li {
|
||||||
color: var(--ink-700);
|
color: var(--ink-700);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user