feat: add demonstrative images to the officina page
Shared StripFoto component renders the 3-photo strip on home and /officina (AVIF/WebP, srcset); /officina gets its own og:image. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -3,11 +3,11 @@
|
||||
## Top-level areas
|
||||
- `src/pages/` → site pages: `index`, `officina`, `servizi`, `dove-siamo`, `contatti`, plus `sitemap.xml`
|
||||
- `src/layouts/Base.astro` → HTML shell, meta/OG, canonical, AutoRepair JSON-LD, header/footer, reveal script
|
||||
- `src/components/` → `Insegna` (open-now sign + weekly hours), `ServiziLista`, `Marchi`, `Faq` (+ FAQPage JSON-LD), `BloccoContatti`
|
||||
- `src/components/` → `Insegna` (open-now sign + weekly hours), `ServiziLista`, `Marchi`, `Faq` (+ FAQPage JSON-LD), `BloccoContatti`, `StripFoto` (3-photo strip)
|
||||
- `src/data/officina.ts` → single source of business data (NAP, hours, services, FAQ)
|
||||
- `src/styles/global.css` → design tokens and shared styles (ADR 0002)
|
||||
- `public/` → favicon, robots.txt, partner logos
|
||||
- `src/assets/home/` → home photos (demonstrative, AI-generated; optimized by astro:assets)
|
||||
- `src/assets/home/`, `src/assets/officina/` → page photos (demonstrative, AI-generated; optimized by astro:assets via `StripFoto`)
|
||||
- `design/proposte/` → static design proposals (reference; 02 is the chosen direction)
|
||||
- `design/assets/sito-attuale/` → images downloaded from the current site
|
||||
- `docs/analisi/`, `docs/progetto/` → audit and development plan
|
||||
|
||||
@@ -25,5 +25,10 @@ done
|
||||
- The images are AI-generated and do not show the real workshop: replace with real photos before the final launch (same file names → no code change)
|
||||
- The third slot shows "the workshop at work" instead of "the team" on purpose, to avoid presenting invented people as staff
|
||||
|
||||
## Update — /officina images
|
||||
- Three more AI images in `src/assets/officina/` (`interno`, `diagnosi`, `consulenza`), converted from the PNGs in `temp/`
|
||||
- Shared component `src/components/StripFoto.astro` now renders the photo strip on both home and /officina; /officina also gets its own `og:image`
|
||||
- Third slot shows a customer consultation instead of "the team" (same reason as home)
|
||||
|
||||
## Suggested next step
|
||||
- Photo shoot of the real workshop; then the remaining photo slots on /officina
|
||||
- Photo shoot of the real workshop: replace the six files keeping the same names
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 475 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 359 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 588 KiB |
@@ -0,0 +1,24 @@
|
||||
---
|
||||
// Fila di tre foto (una larga + due quadrate) usata in home e in /officina.
|
||||
// La prima foto è vicina all'inizio pagina: priorità alta per l'LCP.
|
||||
import { Picture } from 'astro:assets';
|
||||
import type { ImageMetadata } from 'astro';
|
||||
|
||||
interface Foto { src: ImageMetadata; alt: string }
|
||||
interface Props { foto: [Foto, Foto, Foto] }
|
||||
|
||||
const { foto } = Astro.props;
|
||||
const [grande, ...piccole] = foto;
|
||||
---
|
||||
<div class="wrap strip su">
|
||||
<Picture src={grande.src} formats={['avif', 'webp']} widths={[480, 800, 1200]} sizes="(max-width: 900px) 100vw, 760px" alt={grande.alt} class="foto-img" loading="eager" fetchpriority="high" />
|
||||
{piccole.map((f) => (
|
||||
<Picture src={f.src} formats={['avif', 'webp']} widths={[400, 760]} sizes="(max-width: 900px) 100vw, 370px" alt={f.alt} class="foto-img" loading="eager" />
|
||||
))}
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.strip :global(picture){display:block;height:100%;min-height:0}
|
||||
.strip :global(.foto-img){width:100%;height:100%;object-fit:cover;border-radius:14px;display:block}
|
||||
@media (max-width:900px){.strip :global(.foto-img){height:240px}}
|
||||
</style>
|
||||
@@ -1,7 +1,8 @@
|
||||
---
|
||||
import { Picture, getImage } from 'astro:assets';
|
||||
import { getImage } from 'astro:assets';
|
||||
import Base from '../layouts/Base.astro';
|
||||
import Insegna from '../components/Insegna.astro';
|
||||
import StripFoto from '../components/StripFoto.astro';
|
||||
import ServiziLista from '../components/ServiziLista.astro';
|
||||
import Marchi from '../components/Marchi.astro';
|
||||
import Faq from '../components/Faq.astro';
|
||||
@@ -29,11 +30,11 @@ const og = await getImage({ src: piazzale, width: 1200, height: 630, fit: 'cover
|
||||
<Insegna />
|
||||
</div>
|
||||
|
||||
<div class="wrap strip su">
|
||||
<Picture src={piazzale} formats={['avif', 'webp']} widths={[480, 800, 1200]} sizes="(max-width: 900px) 100vw, 760px" alt="Il piazzale dell'officina con auto parcheggiate, un camper e il portone aperto sull'area di lavoro" class="foto-img" loading="eager" fetchpriority="high" />
|
||||
<Picture src={impiantoGpl} formats={['avif', 'webp']} widths={[400, 760]} sizes="(max-width: 900px) 100vw, 370px" alt="Un meccanico con tuta blu e guanti collega il riduttore di un impianto GPL nel vano motore" class="foto-img" loading="eager" />
|
||||
<Picture src={officinaLavoro} formats={['avif', 'webp']} widths={[400, 760]} sizes="(max-width: 900px) 100vw, 370px" alt="Due meccanici controllano il sottoscocca di un'auto sul ponte sollevatore; in primo piano lo strumento di diagnosi" class="foto-img" loading="eager" />
|
||||
</div>
|
||||
<StripFoto foto={[
|
||||
{ src: piazzale, alt: "Il piazzale dell'officina con auto parcheggiate, un camper e il portone aperto sull'area di lavoro" },
|
||||
{ src: impiantoGpl, alt: "Un meccanico con tuta blu e guanti collega il riduttore di un impianto GPL nel vano motore" },
|
||||
{ src: officinaLavoro, alt: "Due meccanici controllano il sottoscocca di un'auto sul ponte sollevatore; in primo piano lo strumento di diagnosi" },
|
||||
]} />
|
||||
|
||||
<section><div class="wrap due">
|
||||
<div class="su"><p class="kicker">L'officina</p><h2>Meccanici che ti spiegano le cose.</h2></div>
|
||||
@@ -57,8 +58,6 @@ const og = await getImage({ src: piazzale, width: 1200, height: 630, fit: 'cover
|
||||
|
||||
<style>
|
||||
.hero{display:grid;grid-template-columns:1.25fr 1fr;gap:48px;align-items:end;padding:40px 0 80px}
|
||||
.strip :global(.foto-img){width:100%;height:100%;object-fit:cover;border-radius:14px;display:block}
|
||||
.strip :global(picture){display:block;height:100%;min-height:0}
|
||||
.fascia{background:var(--carta);border-top:1px solid var(--riga);border-bottom:1px solid var(--riga)}
|
||||
@media (max-width:900px){.hero{grid-template-columns:1fr}.strip :global(.foto-img){height:240px}}
|
||||
@media (max-width:900px){.hero{grid-template-columns:1fr}}
|
||||
</style>
|
||||
|
||||
@@ -1,11 +1,21 @@
|
||||
---
|
||||
import { getImage } from 'astro:assets';
|
||||
import Base from '../layouts/Base.astro';
|
||||
import StripFoto from '../components/StripFoto.astro';
|
||||
// Immagini dimostrative generate con AI (docs/handoffs/2026-11-04-immagini-home.md):
|
||||
// da sostituire con foto reali dell'officina prima del lancio.
|
||||
import interno from '../assets/officina/interno.jpg';
|
||||
import diagnosi from '../assets/officina/diagnosi.jpg';
|
||||
import consulenza from '../assets/officina/consulenza.jpg';
|
||||
import Marchi from '../components/Marchi.astro';
|
||||
import BloccoContatti from '../components/BloccoContatti.astro';
|
||||
|
||||
const og = await getImage({ src: interno, width: 1200, height: 630, fit: 'cover', format: 'jpg' });
|
||||
---
|
||||
<Base
|
||||
title="Autofficina a Udine specializzata in impianti a gas | Officine Zuliani"
|
||||
description="Officine Zuliani, autofficina di Udine: consulenza e installazione di impianti GPL e metano per auto e camper, diagnosi computerizzata, rete Bosch AutoCrew e assistenza BRC."
|
||||
image={og.src}
|
||||
>
|
||||
<div class="wrap page-head su">
|
||||
<p class="kicker">L'officina</p>
|
||||
@@ -13,11 +23,11 @@ import BloccoContatti from '../components/BloccoContatti.astro';
|
||||
<p class="lead">Da anni le Officine Zuliani sono un punto di riferimento a Udine per chi cerca soluzioni che fanno davvero risparmiare sul carburante.</p>
|
||||
</div>
|
||||
|
||||
<div class="wrap strip su">
|
||||
<div class="foto"><b>Foto reale: l'officina in Viale Venezia 446</b></div>
|
||||
<div class="foto"><b>Foto: attrezzatura di diagnosi</b></div>
|
||||
<div class="foto"><b>Foto: il team</b></div>
|
||||
</div>
|
||||
<StripFoto foto={[
|
||||
{ src: interno, alt: "L'interno dell'officina con due ponti sollevatori, banchi attrezzi e il portone aperto sul piazzale" },
|
||||
{ src: diagnosi, alt: "Un meccanico collega lo strumento di diagnosi computerizzata alla presa OBD di un'auto" },
|
||||
{ src: consulenza, alt: "Un meccanico spiega a un cliente l'impianto GPL nel vano motore della sua auto" },
|
||||
]} />
|
||||
|
||||
<section><div class="wrap due">
|
||||
<div class="su"><p class="kicker">Consulenza</p><h2>Ti aiutiamo a scegliere l'impianto giusto.</h2></div>
|
||||
|
||||
Reference in New Issue
Block a user