Places API script normalizes regular and special hours; build uses a snapshot, an orari sidecar refreshes /dati/orari.json every 6 hours for the open-now sign. Adds the company legal name. Key stays in .env.server. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1.7 KiB
1.7 KiB
Module map
Top-level areas
src/pages/→ site pages:index,officina,servizi,dove-siamo,contatti, plussitemap.xmlsrc/layouts/Base.astro→ HTML shell, meta/OG, canonical, AutoRepair JSON-LD, header/footer, reveal scriptsrc/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, legal name, services, FAQ)src/data/orari.ts→ opening hours: Google snapshotorari-google.jsonor fallback (ADR 0005)scripts/orari-google.mjs→ reads hours from Places API (deploy +oraricontainer on the server)src/styles/global.css→ design tokens and shared styles (ADR 0002)public/→ favicon, robots.txt, partner logossrc/assets/home/,src/assets/officina/→ page photos (demonstrative, AI-generated; optimized by astro:assets viaStripFoto)design/proposte/→ static design proposals (reference; 02 is the chosen direction)design/assets/sito-attuale/→ images downloaded from the current sitedocs/analisi/,docs/progetto/→ audit and development plandocs/(adr, context, runbooks, handoffs),coordination/,.gitea/→ workflowDockerfile,docker/nginx.conf,docker-compose.yml,deploy.sh→ container image and deploy (ADR 0004).claude/launch.json→ preview configs:sito(Astro dev, 4321),proposte(4173)
Important flows
- Opening hours: Google Business Profile → Places API →
orari-google.json(build: text, table, JSON-LD) and/dati/orari.json(runtime: Insegna "open now", special closures)