Added RoundedContainer component
This commit is contained in:
parent
867c19f570
commit
ebc3a26fc8
1 changed files with 9 additions and 0 deletions
9
components/ui/RoundedContainer.tsx
Normal file
9
components/ui/RoundedContainer.tsx
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
import React from "react";
|
||||||
|
|
||||||
|
export default function RoundedContainer({children, slim = true}: {children: React.ReactNode, slim?: boolean}) {
|
||||||
|
return (
|
||||||
|
<div className={`flex ${slim ? "max-w-6xl" : "max-w-3xl"} rounded-4xl flex-col items-center py-8 px-8 bg-gray-400 dark:bg-slate-900 sm:items-start`}>
|
||||||
|
{children}
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue