-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
édouard wautier
authored and
édouard wautier
committed
Oct 20, 2023
1 parent
5fdb0bb
commit a7f18a0
Showing
3 changed files
with
123 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import React from "react"; | ||
|
||
import { classNames } from "@app/lib/utils"; | ||
|
||
interface ContentSectionProps { | ||
children: React.ReactNode; | ||
isWide?: boolean; | ||
} | ||
|
||
const styles = { | ||
base: "container", | ||
narrow: "sm:max-w-3xl lg:max-w-5xl xl:max-w-7xl", | ||
wide: "sm:max-w-5xl lg:max-w-7xl xl:max-w-8xl", | ||
}; | ||
|
||
export function ContentSection({ | ||
children, | ||
isWide = false, | ||
}: ContentSectionProps) { | ||
return ( | ||
<div | ||
className={classNames(styles.base, isWide ? styles.wide : styles.narrow)} | ||
> | ||
{children} | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters