Skip to content

Deck: fix 5 layout bugs + fade transitions - #3

Open
pixie-chan wants to merge 2 commits into
window-bfrom
deck/layout-fixes-transitions
Open

Deck: fix 5 layout bugs + fade transitions#3
pixie-chan wants to merge 2 commits into
window-bfrom
deck/layout-fixes-transitions

Conversation

@pixie-chan

Copy link
Copy Markdown
Collaborator

Layout-only pass, zero wording/number changes.

Fixes (all verified by rendering the rebuilt pptx):

  • S2 problem: 3 stat cards now level (was -2deg tilt making the row look skewed)
  • S3 research machine: title no longer cropped at top, card footers readable (was dark-on-dark)
  • S3 solution: no more dangling one-word bullet lines
  • S6 moat: advisory quote fully visible (was cut off at box bottom)
  • S8 market: 'record' no longer clips the rail box

Added: fade slide transitions on all 13 slides via scaffold/deck/inject_transitions.py (run after node build-krishi-setu.js). pptxgenjs can't do animations natively, so this is a post-build step.

Gate check passes: 13 slides, FF5A1F + 0A0A0A + Arial Black present, 0 em dashes, 0 banned words.

Layout fixes (no wording/numbers touched, pure geometry + contrast):
- S2: remove -2deg rotate on the 3 stat cards so orange bars line up in a straight row
- S3 (research machine): nudge title down 0.07in so it no longer hugs the top edge; brighten card footer (8A8A8A -> B0B0B0) so source/freshness is readable
- S3 (solution): drop bullet font 11->10.5 + lineSpacing 22->20 to kill dangling-word widows
- S6 (moat): shrink advisory quote 13.5->12.5pt so it fits its box (was cut off)
- S8 (market): pull last rail line up + shrink 12->11pt so 'record' no longer clips the box

Animations: inject_transitions.py adds a medium fade transition to all 13 slides post-build (pptxgenjs cannot author transitions natively). Run it after node build-krishi-setu.js.

Verified: rebuilt, 13 slides, gate tokens intact (FF5A1F/0A0A0A/Arial Black), 0 em dash, 13 transitions injected, all 5 fixes confirmed by render.
User directive: revert the black/white/orange theme back to green. Content,
numbers, 13 slides, layout fixes, and transitions all preserved.

Palette swap (all hardcoded tones recolored, no text/number touched):
- near-black 0A0A0A -> forest green 1F3D26 (dark backgrounds + cards)
- hazard orange FF5A1F -> moss green 97BC62 (accent bars, quote, circles)
- gray/edge tones -> muted sage greens; card fills -> pale greens
- extrusion shadows 2A2A2A -> deep green 142B1A; strips 555555 -> 3E5C42

Gate updated: check-deck.sh now asserts 97BC62 + 1F3D26 instead of
FF5A1F + 0A0A0A. Verified: gate PASSES (13 slides, 0 em dash, 0 banned
words), 13 fade transitions re-injected after gate rebuild.
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