Skip to content

Commit

Permalink
adjust styling
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbristow committed Nov 6, 2024
1 parent 997fe60 commit d9f17df
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/app/components/ContentContainer/ContentContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@ interface ContentContainerProps {
children: React.ReactNode;
align?: boolean;
classes?: string;
extraClasses?: string;
}
export function ContentContainer({
children,
align = false,
classes = 'ml-auto mr-auto flex max-w-[87.5rem] flex-col px-10 py-4 sm:px-14 sm:py-20',
extraClasses = '',
classes = '',
}: ContentContainerProps) {
const defaultClasses =
'ml-auto mr-auto flex max-w-[87.5rem] flex-col px-10 py-4 sm:px-14 sm:py-20';
return (
<section>
<div
className={classNames(classes, extraClasses, {
className={classNames(defaultClasses, classes, {
'md:px-32': !align,
})}
>
Expand Down
4 changes: 2 additions & 2 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ function SectionTwo() {
function SectionThree() {
return (
<>
<ContentContainer align extraClasses="px-14 pt-20 pb-10 sm:pb-10">
<ContentContainer align classes="px-14 pt-20 pb-10 sm:pb-10">
<Grid row gap>
<Grid col={12}>
<div className="flex flex-col items-center">
Expand All @@ -122,7 +122,7 @@ function SectionThree() {
</Grid>
</Grid>
</ContentContainer>
<div className="pb-20 pt-10">
<div className="pb-20 pt-0">
<Carousel />
</div>
</>
Expand Down

0 comments on commit d9f17df

Please sign in to comment.