1
0
Fork 0
mirror of https://github.com/chobble-mirror/renegade-solar.git synced 2026-07-09 17:56:25 +01:00
renegade-solar.co.uk - an Eleventy site, built with Nix, hosted on Neocities https://renegade-solar.co.uk
  • HTML 34.7%
  • SCSS 29.6%
  • JavaScript 28.4%
  • Shell 4%
  • Nix 3.1%
  • Other 0.2%
Find a file
stefan burke 8ddc95ba0c
Add masonry layout to reviews page (#49)
* Add masonry layout to reviews page

Port the chobble-template masonry reviews layout, adapted to renegade's
card structure, data and measurements.

- assets-src/masonry.js: uWrap-based zero-reflow masonry, tuned to our
  card padding/gap/border and column sizing. Reviews-only, Turbo-aware
  (re-runs on turbo:load), relayouts on resize. Overflowing reviews are
  flagged so CSS can fade the clipped edge.
- Bundled (uWrap inlined) to src/assets/masonry.js via `npm run build:js`
  and committed, matching how the other prebuilt assets are shipped, so
  the Eleventy deploy build needs no bundling step.
- review-list.html: restructured into a ul.reviews-grid.masonry with the
  classes the layout measures.
- _customer-reviews.scss: plain CSS grid fallback (works without JS),
  switched to the JS-positioned layout once masonry-ready is added.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ECE5454VZrWC8MTFb1XDW3

* Hide reviews rated below 8 from the site

Filter out reviews with a rating under 8/10 in generateSummary, so the
list, total count and average rating stay consistent everywhere they are
shown (reviews page and homepage block). The threshold lives in
MIN_DISPLAY_RATING so the weekly review-merge job keeps applying it.

Regenerated reviews.json from the current data: 105 -> 104 reviews,
average 9.85 -> 9.94. The hidden review's source JSON is kept on disk.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ECE5454VZrWC8MTFb1XDW3

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-06-29 14:47:22 +01:00
.github/workflows Update location pages and reviews 2026-05-24 22:16:37 +01:00
_lib Fix SCSS compilation 2025-09-24 18:09:06 +01:00
assets-src Add masonry layout to reviews page (#49) 2026-06-29 14:47:22 +01:00
bin Rejig to use Github actions / npm 2025-09-24 17:54:52 +01:00
scripts Add masonry layout to reviews page (#49) 2026-06-29 14:47:22 +01:00
src Add masonry layout to reviews page (#49) 2026-06-29 14:47:22 +01:00
.eleventy.js Move service-area pages to /town/service/ URLs (#48) 2026-06-02 19:35:05 +01:00
.envrc Fix sitemap 2025-12-26 22:03:43 +00:00
.gitignore More content 2026-06-29 13:23:34 +01:00
.pages.yml feat(content-management): add new fields to .pages.yml and update service metadata (#18) 2025-10-15 23:57:10 +00:00
biome.json Clear Git history (was from a different project) 2024-12-23 00:32:58 +00:00
CREDITS.md Clear Git history (was from a different project) 2024-12-23 00:32:58 +00:00
default.nix Fix build scripts 2025-01-18 11:56:13 +00:00
flake.lock Fix sitemap 2025-12-26 22:03:43 +00:00
flake.nix Use system nixpkgs 2025-12-26 22:11:45 +00:00
LICENSE Clear Git history (was from a different project) 2024-12-23 00:32:58 +00:00
package-lock.json Add masonry layout to reviews page (#49) 2026-06-29 14:47:22 +01:00
package.json Add masonry layout to reviews page (#49) 2026-06-29 14:47:22 +01:00
README.md Update README.md 2025-02-25 01:43:49 +00:00
TODO.md Clear Git history (was from a different project) 2024-12-23 00:32:58 +00:00
VOICE.md Make SEO primacy explicit in VOICE.md and forbid keyword loss (#47) 2026-05-27 10:19:50 +00:00

Renegade Solar

The website for Renegade Solar - solar panel installers in Manchester

Important Files:

renegade-solar.co.uk