styling #2

Merged
propulsion180 merged 8 commits from styling into main 2026-10-25 00:25:10 +13:00

move styling in and check cd.

move styling in and check cd.
- public list is a card grid; each card opens a new product page
  with every photo and the full description
- admin list uses cards with view/edit and left/right ordering
- edit page leads with the photos, details below, sticky save bar
- shared button, input, error and badge styles
- thumbnails raised to 800px; old sizes are deleted at startup

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CSS-only viewer: each photo has a hidden radio button, the small photos
are its labels, and the checked one is shown big and outlined. The big
photo still opens the full size original. The admin view page keeps
the plain gallery.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Buttons: the grey buttons are a little bigger with a soft shadow;
  Delete and the remove buttons get a pale red fill.
- Fields: more padding, a black ring while typing, and a red border on
  the field with a problem, with its message underneath. Product form
  errors now say which field they are about (FormError).
- Messages: form errors sit in a red box with a "!" mark; error pages
  and empty lists are boxes with a button to go on from there.
- Login: a small centred card.
- Contact: the first product's main photo beside a short note and the
  details, which are now constants in frontend/helpers.go.
- Home: a welcome line, the first four products and a link to the rest.

layout.templ and products.templ were run through templ fmt, so their
indentation changed from spaces to tabs like the other templates.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every colour in the stylesheet is now a token with light and dark values.
With no saved choice the site follows the device's setting; the toggle in
the header saves a "theme" cookie and reloads the page, and the server
puts the choice on <html data-theme> so the page never flashes the wrong
theme. No script needed: the CSS shows whichever button switches away
from the theme being shown.

Also gives the photo order buttons on the edit page enough room for
← → ✕ on one row.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The card colour now frames the photo on every side, on the public and
admin lists. Public cards glow softly when hovered or focused, and text
links and the light/dark toggle glow instead of underlining.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Replaces Fira Sans across the whole site, public and admin, with Georgia
as the fallback if the font can't load.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fixes
- Viewport and charset meta and <html lang>; phones and tablets now use
  nearly the full width while desktop keeps its 60% column.
- Static files are linked with ?v=<modified time> and cached for good, as
  are uploads, so changes always reach browsers.
- Each page has its own tab title, also sent with htmx fragments.
- "Edit product" when the name is left blank; scroll-behavior typo; drop
  the unused CategoryId field.

For visitors and Deepa
- "Ask about this" on the product page emails Deepa with the product's
  name as the subject, next to a link to the contact details.
- "Uploading…" / "Saving…" and a disabled button while forms are sent.
- Prices with thousands separators; the price field accepts them.
- "View on site" in admin; admin pages are noindex; a favicon.

Extras
- Link previews (Open Graph) when SITE_URL is set.
- htmx 2.0.11 and Playfair Display (OFL) are served from static/, and the
  Content-Security-Policy allows only this site.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
propulsion180/deepa-store!2
No description provided.