HifiPlanet-Website/hifi-src
Maaxxs 48a2b5f7a6 Add image cropping to the shared upload field
ImageUploadField now opens a crop overlay (react-easy-crop) before
uploading a newly selected file, and offers a "Zuschneiden" button to
re-crop an already-set image without re-uploading. Cropping happens
entirely client-side via canvas; the resulting blob is sent through the
existing /uploads endpoint unchanged.

Wired a fixed aspect ratio into the fields whose images are displayed at
a fixed ratio elsewhere on the site (gallery project/brand covers and
service images at 4:3, matching their public aspect-[4/3] cards; the
hero image at 16:9). Logo fields (brands, car models, site logo) stay
unset, defaulting to the source image's own aspect ratio so they aren't
forced into an unrelated shape.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-09 23:59:27 +02:00
..
public Initial commit: HifiPlanet Car-Hifi Shop (Frontend + Backend) 2026-07-05 13:37:06 +02:00
src Add image cropping to the shared upload field 2026-09-09 23:59:27 +02:00
index.html Replace the contact form with the new high-fidelity redesign 2026-07-18 20:00:06 +02:00
package-lock.json Add image cropping to the shared upload field 2026-09-09 23:59:27 +02:00
package.json Add image cropping to the shared upload field 2026-09-09 23:59:27 +02:00
postcss.config.js Initial commit: HifiPlanet Car-Hifi Shop (Frontend + Backend) 2026-07-05 13:37:06 +02:00
tailwind.config.js Initial commit: HifiPlanet Car-Hifi Shop (Frontend + Backend) 2026-07-05 13:37:06 +02:00
vite.config.js Bundle all Lucide icon chunks into one file instead of ~1600 tiny files 2026-07-05 15:36:07 +02:00