diff --git a/docs/context/module-map.md b/docs/context/module-map.md index d54a3c7..70b736b 100644 --- a/docs/context/module-map.md +++ b/docs/context/module-map.md @@ -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 diff --git a/docs/handoffs/2026-11-04-immagini-home.md b/docs/handoffs/2026-11-04-immagini-home.md index 7dc3e15..6250502 100644 --- a/docs/handoffs/2026-11-04-immagini-home.md +++ b/docs/handoffs/2026-11-04-immagini-home.md @@ -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 diff --git a/src/assets/officina/consulenza.jpg b/src/assets/officina/consulenza.jpg new file mode 100644 index 0000000..e8161ed Binary files /dev/null and b/src/assets/officina/consulenza.jpg differ diff --git a/src/assets/officina/diagnosi.jpg b/src/assets/officina/diagnosi.jpg new file mode 100644 index 0000000..5bc79b6 Binary files /dev/null and b/src/assets/officina/diagnosi.jpg differ diff --git a/src/assets/officina/interno.jpg b/src/assets/officina/interno.jpg new file mode 100644 index 0000000..4b44546 Binary files /dev/null and b/src/assets/officina/interno.jpg differ diff --git a/src/components/StripFoto.astro b/src/components/StripFoto.astro new file mode 100644 index 0000000..00b2cfd --- /dev/null +++ b/src/components/StripFoto.astro @@ -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; +--- +
+ + {piccole.map((f) => ( + + ))} +
+ + diff --git a/src/pages/index.astro b/src/pages/index.astro index dcf8366..73d08f6 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -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 -
- - - -
+

L'officina

Meccanici che ti spiegano le cose.

@@ -57,8 +58,6 @@ const og = await getImage({ src: piazzale, width: 1200, height: 630, fit: 'cover diff --git a/src/pages/officina.astro b/src/pages/officina.astro index c63693b..857e6a8 100644 --- a/src/pages/officina.astro +++ b/src/pages/officina.astro @@ -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' }); ---

L'officina

@@ -13,11 +23,11 @@ import BloccoContatti from '../components/BloccoContatti.astro';

Da anni le Officine Zuliani sono un punto di riferimento a Udine per chi cerca soluzioni che fanno davvero risparmiare sul carburante.

-
-
Foto reale: l'officina in Viale Venezia 446
-
Foto: attrezzatura di diagnosi
-
Foto: il team
-
+

Consulenza

Ti aiutiamo a scegliere l'impianto giusto.