Aligns the page edges with the design and fixes the Contact anchor offset
The content column now uses the design's gutter as side padding instead of Chakra's 16/24/32px. The Lifestyle fotografie row on phones bled out by the gutter, so the page was 4px too wide and Chrome zoomed out slightly. The header drops its extra padding and the to-top button follows the gutter, so logo, hero controls and content share one edge. Anchored sections now scroll to the height of the shrunken header, so Contact lands right below it instead of 24px lower. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+24
@@ -0,0 +1,24 @@
|
||||
# Build Instructions — homepage-sections
|
||||
|
||||
## Prerequisites
|
||||
- **Node.js** 24 and **pnpm** (version pinned in `web/package.json`)
|
||||
- **OS**: Windows, Linux or macOS. CI builds on the Raspberry Pi runner (arm64).
|
||||
- **Environment variables**: none for the build. `LIGHTHOUSE_PERFORMANCE=warn` only in CI (see performance instructions)
|
||||
|
||||
## Build steps
|
||||
```bash
|
||||
cd web
|
||||
pnpm install # also runs `chakra typegen` (postinstall)
|
||||
pnpm build # tsc && vite build
|
||||
```
|
||||
|
||||
After changing theme tokens (`src/theme.ts`), run `pnpm typegen` so token names such as `header.sticky` type-check.
|
||||
|
||||
## Verify
|
||||
- **Expected output**: `✓ built in …s` and no TypeScript errors
|
||||
- **Artifacts**: `web/dist/` (`index.html`, `assets/*.js|css|jpg|png`)
|
||||
- **Accepted warning**: Vite's chunk-size warning for the main bundle (`index-*.js`, ~575 kB unminified size before gzip). This is known and tracked under responsive images and prerendering (NFR-P-01).
|
||||
|
||||
## Troubleshooting
|
||||
- **Unknown token type errors after a theme change** → `pnpm typegen`.
|
||||
- **Lighthouse or preview fails with "port in use"** → a preview server is still running on 4173. Stop it first.
|
||||
Reference in New Issue
Block a user