feat(strommix): variant system + wald palette + UX polish
Deploy / verify (push) Successful in 52s
Deploy / deploy (push) Successful in 52s

Add full/compact variants, prominent share, source badge, big
negative-price banner with conditional disclaimer, cards-style
context row, fade-in animation, and remove em-dashes from
visible strings.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Peter Meier
2026-05-05 00:43:18 +02:00
parent 080e69dcac
commit 3ded972642
3 changed files with 280 additions and 129 deletions
+8
View File
@@ -337,6 +337,9 @@ export interface OrganisationsBlockData {
export interface LiveStrommixBlockData {
_type?: "live_strommix";
_slug?: string;
/** `full` = card with argument + breakdown disclosure. `compact` = single
* horizontal strip for sidebar / homepage placement. Default: `full`. */
variant?: "full" | "compact";
intro_headline?: string;
intro_text?: string;
threshold_dunkelflaute?: number;
@@ -352,6 +355,11 @@ export interface LiveStrommixBlockData {
argument_hoch?: string;
enable_france_comparison?: boolean;
disclaimer?: string;
/** Day-ahead price (€/MWh) below which `disclaimer` is rendered.
* Default 10 — disclaimer about EEG-Vergütung at negative prices is
* irrelevant at 130 €/MWh and gets hidden. Set very high (e.g. 9999)
* to always show. */
disclaimer_threshold_eur_mwh?: number;
/** Reference (resolved: { _slug, _type, ...page-fields } or just slug string). */
explanation_page?: string | { _slug?: string; title?: string };
layout?: BlockLayout;