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>
35 lines
1.6 KiB
Markdown
35 lines
1.6 KiB
Markdown
# 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 descriptive `alt`; first image `fetchpriority="high"`
|
||
- `og:image` (1200×630 from the forecourt image) and `twitter:card` via new optional `image` prop in `Base.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 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: replace the six files keeping the same names
|