feat: add colorCard component

This commit is contained in:
원더 2021-02-03 22:14:42 +09:00
parent 04084d39ff
commit b9af7c4367

18
components/ColorCard.tsx Normal file
View File

@ -0,0 +1,18 @@
const ColorCard = ({ header, first, second, className }:ColorCardProps):JSX.Element => {
return <div className={`rounded-lg p-10 ${className} shadow-lg`}>
<h2 className='text-2xl font-bold'>{header}</h2>
<p className='opacity-80'>
{first} <br/>
{second}
</p>
</div>
}
interface ColorCardProps {
header: string
first: string
second: string
className: string
}
export default ColorCard