# Solar Storage SA

Next.js 15 site for Solar Storage SA. Shared copy and routes live in `content/site.ts`. See CONTENT_AUDIT.md for the original content and image comparison, browser checks, and open source gaps.

## Run

```sh
npm install
npm run dev
```

```sh
npm run typecheck
npm run build
```

## Routes

`/`, `/residential`, `/commercial`, `/battery-storage`, `/solar-power-purchase-agreement`, `/finance`, `/electricity-plan-comparison`, `/contact`.

The legacy `/finanace` URL redirects to `/finance`. `/ppa-solar` redirects to `/solar-power-purchase-agreement`. The public button demonstration route has been removed.

## Homepage hero video and preloader

The hero autoplays once and holds its final frame `/videos/solar-morning-to-night.mp4` muted and inline. `/images/hero-day.jpg` is the poster/fallback. A first-visit Solar Storage SA loader dismisses when the poster is ready, when video playback is ready, or after a short timeout. Mobile and reduced-motion visitors use the static fallback.

## Enquiry email

The contact form sends through Nodemailer. Set `SMTP_HOST`, `SMTP_USER`, and `SMTP_PASS` for the `contactform@solarstoragesa.com.au` mailbox. `SMTP_PORT` defaults to `587`. Mail goes to `nic@acservices.biz` from `solarstoragesa <contactform@solarstoragesa.com.au>` unless `CONTACT_TO_EMAIL` and `CONTACT_FROM_EMAIL` override those. Without the SMTP settings, the form returns an error instead of pretending the message was sent.

The Resend request is commented out in `app/api/contact/route.ts`. Uncomment that block and set `RESEND_API_KEY` if you switch back to Resend.
