Skip to content

Set the home page in Sourceful's editorial design, with a 20 kWh battery - #34

Merged
frahlg merged 1 commit into
mainfrom
web/sourceful-editorial
Oct 30, 2026
Merged

frahlg merged 1 commit into
mainfrom
web/sourceful-editorial

Conversation

@frahlg

@frahlg frahlg commented Oct 30, 2026

Copy link
Copy Markdown
Member

Problem

The home page from #33 looked like a generic AI template: glows, gradients, rounded cards, pill buttons, two-tone headings and rows of four cards with colour swatches. It ignored Sourceful's design system, which the README names and the rest of the site follows.

Fredrik also asked for a 20 kWh battery in the savings example.

What changes

Design. The page now follows DESIGN.md:

  • An ink hero, paper and cream spreads, and community on Signal Orange.
  • Satoshi with JetBrains Mono micro-labels, and one orange word per headline.
  • Square corners, hairlines and underline form fields.
  • sourceful.css is back as the base, so header, buttons and footer match the other pages. The footer carries the approved Sourceful Energy lockup.
  • The chart uses ink and the orange scale instead of the app's energy colours.
  • The example conversation reads as a transcript, not chat bubbles.
  • The forms show Sourceful's braille indicator while they send.
  • The scroll fades and the decorative glow are gone. The chart, plan dial, command receipt, transcript and app tour still move, because each one shows something.

Content, links, the sign-up endpoint and the app screens are unchanged.

20 kWh battery. The example uses a 20 kWh, 10 kW battery in both runs. It starts half full and ends about half full, so the saving borrows nothing from storage. The day goes from 64.66 to 38.35 kr: 26.31 kr, 41 %. Before, with 10 kWh, it went from 77.77 to 50.40 kr, 35 %. The car still carries most of the gain; a bigger battery adds less than its size suggests, because this house uses about 20 kWh a day. The model test now checks the start and end levels and the battery size the page names.

Evidence

  • node --test tests/*.test.mjs: 32 passed, 0 failed.
  • Browser, on a local server that runs the real worker against an in-memory D1 stand-in: every spread at 1440 × 900 and 375 × 812, no console errors and no sideways scroll on the phone. The chart toggles, the dial turns on its ink panel, the tabs and tour work, and a news sign-up stored one row with consent news-2026-10-30.
  • Not checked: Safari on a phone, and this branch's Pages preview.

🤖 Generated with Claude Code

The first rebuild used a generic dark template: glows, gradients, rounded
cards, pill buttons and two-tone headings. It now follows
design.sourceful.energy/DESIGN.md like the rest of the site: an ink hero,
paper and cream spreads, a Signal Orange community spread, Satoshi with
JetBrains Mono micro-labels, one orange word per headline, square
corners, hairlines and underline form fields. The chart uses ink and the
orange scale; the example conversation reads as a transcript; the forms
show Sourceful's braille indicator while they send. Scroll fades and the
decorative glow are gone; the chart, plan dial, receipt, transcript and
app tour still move because they show something.

The example day now uses a 20 kWh, 10 kW battery that starts half full
in both runs and ends about half full, so the saving borrows nothing
from storage: 64.66 to 38.35 kr, 26.31 kr or 41 %. The model test checks
the start and end levels and the battery size the page names.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-30T08:43:19.469549Z a71b19e PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying ftw with  Cloudflare Pages  Cloudflare Pages

Latest commit: a71b19e
Status: ✅  Deploy successful!
Preview URL: https://fec9e71b.ftw-613.pages.dev
Branch Preview URL: https://web-sourceful-editorial.ftw-613.pages.dev

View logs

@frahlg
frahlg merged commit 8530188 into main Oct 30, 2026
1 check passed
frahlg added a commit that referenced this pull request Oct 30, 2026
Fredrik liked the dark design from #33 better than the editorial reset
in #34, but not its generic look. This keeps the app's dark ground and
energy colours and drops what made it read as a template: no glows,
gradients, rounded cards, pill buttons, scroll fades or grey second
halves in headings.

The layout stays editorial: a label rail beside the text, ruled lists,
square corners, hairlines, underline form fields and the transcript.
Headings use weight, not colour, for their one stressed word. The
chart, plan dial and receipt use the app's energy colours, and the
savings rail shows the example day's prices as the app's block bars.
The page no longer loads sourceful.css; the other pages still do.

Co-authored-by: Claude Opus 5.5 <[email protected]>
@frahlg
frahlg deleted the web/sourceful-editorial branch November 11, 2026 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant