Skip to content

fix: align hero/banner/cards/columns with production, remove duplicate design tokens#2

Merged
kmurugulla merged 10 commits into
mainfrom
hero
Jul 22, 2026
Merged

fix: align hero/banner/cards/columns with production, remove duplicate design tokens#2
kmurugulla merged 10 commits into
mainfrom
hero

Conversation

@kmurugulla

Copy link
Copy Markdown
Contributor

Summary

  • Rebuilt banner to use the full-bleed gradient-overlay layout (matching hero) instead of a hard 50/50 column split, and matched its CTA link to production's arrow-link style
  • Corrected hero/banner min-height and gradient stops against verified production computed values, then made height responsive via clamp() above ~1367px viewport width
  • Fixed cards.light: wrong background token (--light-color--paleblue-color), wrong image size (280px → 190px), and a hardcoded 120px inset that only matched one viewport width (→ proportional 8.33%)
  • Added a shared --page-max-width (1920px) token so hero/banner/cards/columns cap and center consistently on ultra-wide screens
  • Added a columns "feature" variant (no background tint, alternating image-left/right per row via natural authoring order) plus row spacing, larger image/text proportions, and an arrow-style link, for the "AIG Performance & Initiatives" pattern
  • Removed duplicate color/spacing tokens between brand.css and styles.css, and a stale non-responsive --heading-size-* token set still wired into hero.css — that one was an actual bug (hero heading never shrank on mobile)

Test URLs

(Note: the PR template's .aem.live URLs 404 since this draft content is previewed but not published — using .aem.page instead, which resolves.)

Test plan

  • npm run lint passes (0 errors)
  • Verified hero/banner/cards/columns visually against live computed styles from aig.com/home and aig.com/home/careers at multiple viewports (375–3840px)
  • Confirmed hero text now scales 36px→44px across the mobile breakpoint (previously stuck at 44px)
  • Confirmed cards/hero/columns all cap and center identically at ultra-wide viewports (2560/3440/3840px)

🤖 Generated with Claude Code

kmurugulla and others added 10 commits July 22, 2026 14:57
- Add new banner block with two-column layout (text left, image right)
- Banner has navy background and underlined link styling
- Implement auto-blocking for hero+cards pattern in same section
- Add hero-attached and attached-to-hero CSS classes
- Hero removes bottom padding when cards attached
- Cards section supports paleblue background via section metadata
- Add test page at /drafts/kiran/hero-cards-test

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Remove story variant CSS from cards.css (use columns block instead)
- Add cards (light) variant with pale blue background
- Update test page to use cards (light) instead of section metadata
- Section paleblue metadata no longer affects cards layout

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Change images from fixed 190px to responsive sizing
- Mobile: 40% width, column layout
- Desktop: 280px fixed width, horizontal layout with 32px gap
- Increase grid gaps to 48px/64px for better breathing room
- Images maintain 1:1 aspect ratio

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Download favicon from https://www.aig.com/favicon.ico
- Add favicon link to head.html

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Replace root favicon.ico with AIG favicon (5.3KB)
- Remove icons/favicon.ico (wrong location)
- Revert head.html change (not needed for /favicon.ico)
- Browsers auto-detect /favicon.ico by convention

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Download Jost and Source Sans 3 variable fonts (170KB total)
- Add @font-face declarations to fonts.css
- Remove Google Fonts links from head.html
- Remove old Roboto font files
- Fonts now load from /fonts/ directory (lazy-loaded via fonts.css)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Change font-family from 'Jost' to jost (no quotes needed)
- Change font-family from 'source-sans-3' to sourcesans (avoid hyphens)
- Update brand.css to match new font names
- All linting errors resolved

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
…ve duplicate design tokens

- Rebuild banner to use hero's full-bleed gradient-overlay layout instead of
  a hard 50/50 column split, matching production's arrow-link CTA style
- Fix hero/banner min-height and gradient stops against verified production
  computed values, then make height responsive via clamp() above ~1367px
- Fix cards.light to use --paleblue-color (was --light-color by mistake),
  correct image size (190px, was 280px) and use an 8.33% proportional inset
  instead of a hardcoded 120px value that only matched one viewport width
- Add shared --page-max-width (1920px) token so hero/banner/cards/columns
  cap and center consistently on ultra-wide screens instead of stretching
  indefinitely or diverging from each other
- Add a columns "feature" variant (no background tint, rows respect their
  own authoring order for alternating image left/right) plus row spacing,
  bigger image/text proportions, and an arrow-style link to match the
  "AIG Performance & Initiatives" pattern
- Remove duplicate color/spacing tokens between brand.css and styles.css,
  and a stale non-responsive --heading-size-* token set that was still
  wired into hero.css, causing its heading to never shrink on mobile

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@aem-code-sync

aem-code-sync Bot commented Jul 22, 2026

Copy link
Copy Markdown

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
In case there are problems, just click a checkbox below to rerun the respective action.

  • Re-run all PSI checks
  • Re-run failed PSI checks
  • Re-sync branch
Commits

@aem-code-sync

aem-code-sync Bot commented Jul 22, 2026

Copy link
Copy Markdown
Page Scores Audits Google
📱 /drafts/kiran/hero-cards-test Timeout Exceeded PSI
🖥️ /drafts/kiran/hero-cards-test PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

@kmurugulla
kmurugulla merged commit 0d88f9e into main Jul 22, 2026
1 of 2 checks passed
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