Skip to content

Comments

Pattern/header hero split media#3434

Merged
AKCodez merged 21 commits intoxrpl-brand-update-2026from
pattern/header-hero-split-media
Jan 13, 2026
Merged

Pattern/header hero split media#3434
AKCodez merged 21 commits intoxrpl-brand-update-2026from
pattern/header-hero-split-media

Conversation

@AKCodez
Copy link
Contributor

@AKCodez AKCodez commented Jan 6, 2026

No description provided.

- Introduced new styles for the HeaderHeroSplitMedia component, including layout, typography, and responsive design adjustments.
- Updated margin-bottom for paragraph and label-r elements to enhance spacing consistency.
… dark mode support

- Refactored color variables to use design tokens for better maintainability.
- Ensured consistent text colors for titles and descriptions in both light and dark modes.
- Adjusted color values for better contrast and readability across themes.
- Updated spacing variables for tablet view to enhance layout consistency.
- Introduced accent-specific spacing for title and description groups on tablet and desktop.
- Adjusted margin and gap values for improved responsiveness and visual hierarchy.
@Calvinjwala Calvinjwala added the web dev Styles, templates, or other technologies for how the site is built & presented label Jan 8, 2026
Copy link
Collaborator

@gabriel-ortiz gabriel-ortiz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - couple comments, nothing blocking

Comment on lines +16373 to +16396
@media (min-width: 576px) {
.bds-hero-split-media__container {
padding-top: 32px;
padding-bottom: 32px;
}
}
@media (min-width: 992px) {
.bds-hero-split-media__container {
padding-top: 40px;
padding-bottom: 40px;
}
}
.bds-hero-split-media__row {
gap: 32px;
}
@media (min-width: 576px) {
.bds-hero-split-media__row {
gap: 32px;
}
}
@media (min-width: 992px) {
.bds-hero-split-media__row {
gap: 8px;
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question: Can we use the @include media-breakpoint-up() mixin for these queries?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thats the dev bundle, i think it decodes the mixin, so thats why you are saying those direct gvalues if im not mistaken

Comment on lines +138 to +147
// Render hero media section
const renderHeroMedia = () => (
<div className="bds-hero-split-media__media">
<img
src={media.src}
alt={media.alt}
className="bds-hero-split-media__media-img"
/>
</div>
);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙈 Nitpick: Since this doesn't rely on any execution or params, it might make more sense to use useMemo here for storing the media JSX

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added

Comment on lines +93 to +136
const renderHeroContent = () => (
<div className="bds-hero-split-media__content">
{/* Hero Title Section */}
<div className="bds-hero-split-media__title-surface">
<div className="bds-hero-split-media__title-group">
<h1 className="bds-hero-split-media__title">{title}</h1>
<p className="bds-hero-split-media__subtitle">{subtitle}</p>
</div>
</div>

{/* Hero Description & CTA Section - only render if there's content */}
{hasDescriptionGroupContent && (
<div className="bds-hero-split-media__description-group">
{description && (
<p className="bds-hero-split-media__description">
{description}
</p>
)}

{/* CTA Buttons */}
{(primaryCta || secondaryCta) && (
<div className="bds-hero-split-media__cta">
{primaryCta && (
<Button
variant="primary"
href={primaryCta.href}
>
{primaryCta.label}
</Button>
)}
{secondaryCta && (
<Button
variant="tertiary"
href={secondaryCta.href}
>
{secondaryCta.label}
</Button>
)}
</div>
)}
</div>
)}
</div>
);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙈 Nitpick:Might be better suited as JSX stored in useMemo

AKCodez and others added 18 commits January 9, 2026 12:58
- Changed tablet aspect ratio from 2:1 to 16:9 for better compatibility with an 8-column grid.
- Adjusted title alignment in the title-only layout from center to top for improved visual hierarchy.
…and layout

- Adjusted column spans in CardImage showcase to support a 4-column layout on larger screens.
- Updated TileLogo showcase to reflect changes in aspect ratios and responsive behavior, ensuring proper display across different screen sizes.
- Enhanced SCSS styles for both components to maintain consistency in appearance and functionality in light and dark themes.
- Refined documentation to clarify usage and responsive design principles for both CardImage and TileLogo components.
- Updated Button component styles to use responsive typography mixins for better adaptability across devices.
- Removed redundant media queries and adjusted font sizes and line heights for both button types.
- Ensured margin resets to maintain consistent spacing in various contexts.
- Enhanced CSS for improved readability and maintainability.
@AKCodez AKCodez merged commit 79294ac into xrpl-brand-update-2026 Jan 13, 2026
@AKCodez AKCodez deleted the pattern/header-hero-split-media branch January 13, 2026 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

web dev Styles, templates, or other technologies for how the site is built & presented

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants