mirror of
https://github.com/koreanbots/core.git
synced 2025-12-16 14:30:22 +00:00
feat: add colorCard component
This commit is contained in:
parent
04084d39ff
commit
b9af7c4367
18
components/ColorCard.tsx
Normal file
18
components/ColorCard.tsx
Normal 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
|
||||||
Loading…
x
Reference in New Issue
Block a user