HifiPlanet-Website/hifi-src
Maaxxs 49e2700399 Make brand/model tile size and package card size admin-configurable
Adds four numeric app_settings fields (vehicle_tile_width/height,
package_card_width/height, all in px, clamped server-side to a sane
range but otherwise a free number as requested) with matching inputs
in WebsiteSettings.jsx.

Brand/model tiles (VehicleSelect.jsx, BrandPage.jsx) move from a
responsive CSS-grid with an implicit per-column width to a flex-wrap
layout where every tile has the admin's chosen fixed width/height -
applies to both the photo-background and plain-text card variants, so
mixed grids stay visually consistent.

Package cards (ModelPage.jsx) keep their three existing layout modes
(grid/strip/coverflow) but the actual card dimensions - previously
hardcoded Tailwind width/min-height classes with a separate mobile/sm
breakpoint value - are now driven by the same two settings. Grid mode's
column count is no longer fixed at 2/3 columns; it's now
repeat(auto-fill, minmax(width, 1fr)), so the chosen width determines how
many cards fit per row. Coverflow's center-scroll padding, previously
hardcoded against the old fixed 230px card width, now derives from the
configured width too.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-10 03:42:20 +02:00
..
public Initial commit: HifiPlanet Car-Hifi Shop (Frontend + Backend) 2026-07-05 13:37:06 +02:00
src Make brand/model tile size and package card size admin-configurable 2026-09-10 03:42:20 +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 Add global font selection with per-section override 2026-09-10 00:12:01 +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