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>
1.6 KiB
1.6 KiB
Handoff
Issue
None (explicit user instruction: add the three home images)
Goal
Replace the three photo placeholders in the home with demonstrative images.
Status
done
What changed
- Three AI-generated demonstrative images (ChatGPT, prompts written in this session) in
src/assets/home/:piazzale.jpg,impianto-gpl.jpg,officina-lavoro.jpg - Home uses Astro
<Picture>→ AVIF/WebP with srcset and descriptivealt; first imagefetchpriority="high" og:image(1200×630 from the forecourt image) andtwitter:cardvia new optionalimageprop inBase.astro
Files touched
src/pages/index.astro,src/layouts/Base.astro,src/assets/home/*
Tests
- Run: build OK; browser check 1280px and 375px — all three images load, no horizontal scroll
- Not run: Lighthouse
Risks / open questions
- 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 intemp/ - Shared component
src/components/StripFoto.astronow renders the photo strip on both home and /officina; /officina also gets its ownog:image - Third slot shows a customer consultation instead of "the team" (same reason as home)
Suggested next step
- Photo shoot of the real workshop: replace the six files keeping the same names