-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make rounded background its own component, use it in engage with us
- Loading branch information
1 parent
b8b87f2
commit d135526
Showing
2 changed files
with
25 additions
and
24 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
src/app/components/RoundedBackground/RoundedBackground.tsx
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,23 @@ | ||
import classNames from 'classnames'; | ||
|
||
interface RoundedBackgroundProps extends React.ComponentProps<'div'> { | ||
children: React.ReactNode; | ||
} | ||
|
||
export const RoundedBackground = ({ | ||
children, | ||
className, | ||
...props | ||
}: RoundedBackgroundProps) => { | ||
return ( | ||
<div | ||
{...props} | ||
className={classNames( | ||
'rounded-br-[2.5rem] rounded-tl-[2.5rem] border-2 border-[#82b4c9] bg-white/50', | ||
className, | ||
)} | ||
> | ||
{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