Skip to content

Commit 06b4e2e

Browse files
committed
fix: container padding
1 parent 18a7621 commit 06b4e2e

4 files changed

Lines changed: 11 additions & 5 deletions

File tree

src/components/HeaderFooter/HeaderDesktop.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export function HeaderDesktop({ isMenuOpen, logoLight, logoDark }: HeaderProps)
5959
isScrolled || isMenuOpen ? 'translate-y-0' : '-translate-y-full bg-transparent'
6060
}`}
6161
> */}
62-
<Container>
62+
<Container className='px-0'>
6363
<nav className="backdrop-blur-sm text-white p-0 rounded-b-xl">
6464
<div className="flex items-center justify-between bg-accent px-9 py-0 dark:bg-[#212124] [&_.logo-light]:[filter:brightness(0)_invert(1)] rounded-b-xl dark:border dark:border-accent">
6565
<BrandLogo logoDark={logoDark} logoLight={logoLight}/>

src/components/Heros/LowImpact/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ type LowImpactHeroType =
1616

1717
export const LowImpactHero: React.FC<LowImpactHeroType> = ({ children, richText }) => {
1818
return (
19-
<div className="min-w-full py-8 bg-muted">
19+
<div className="min-w-full py-10 bg-muted mt-24">
2020
<div className="container">
2121
{children || (richText && <RichText content={richText} enableGutter={false} />)}
2222
</div>

src/components/Heros/MediumImpact/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export const MediumImpactHero: React.FC<MediumImpactHeroType> = ({
8888

8989

9090
return (
91-
<div className="relative bg-brand-one pb-12 pt-10">
91+
<div className="relative bg-brand-one pb-12 mt-20 pt-10">
9292
{media && <BackgroundImage media={media as MediaObject | string} />}
9393
{/* <Image
9494
src={args.heroBackgroundImage}

src/components/Other/Container.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,17 @@ export interface IContainer {
1919
* @type {boolean}
2020
*/
2121
isNoPadding?: boolean
22+
23+
/**
24+
* Additional class names to apply to the container.
25+
* @type {string}
26+
*/
27+
className?: string
2228
}
2329

2430
/** Container provide content containment, padding, and alignment within specific devices or viewports. */
25-
export function Container({ children, isFluid = false, isNoPadding = false }: IContainer) {
26-
const containerClasses = cn( 'container', isFluid && 'full-width' , isNoPadding && 'no-padding' )
31+
export function Container({ children, isFluid = false, isNoPadding = false, className = '' }: IContainer) {
32+
const containerClasses = cn('container', isFluid && 'full-width', isNoPadding && 'no-padding', className)
2733

2834
return <div className={containerClasses}>{children}</div>
2935
}

0 commit comments

Comments
 (0)