first
This commit is contained in:
@@ -15,13 +15,16 @@ const ChartCard: React.FC<ChartCardProps> = ({
|
||||
children,
|
||||
className = ''
|
||||
}) => {
|
||||
const interSemiboldStyle = { fontFamily: 'Inter, sans-serif', fontWeight: 600 }
|
||||
const interRegularStyle = { fontFamily: 'Inter, sans-serif', fontWeight: 400 }
|
||||
|
||||
return (
|
||||
<div className={`bg-[#161824] rounded-[20px] p-6 ${className}`}>
|
||||
<div className="flex items-start justify-between mb-6">
|
||||
<div>
|
||||
<h3 className="text-white text-base font-semibold mb-1">{title}</h3>
|
||||
<h3 style={interSemiboldStyle} className="text-white text-sm mb-1">{title}</h3>
|
||||
{subtitle && (
|
||||
<p className="text-[#71717a] text-sm">{subtitle}</p>
|
||||
<p style={interRegularStyle} className="text-[#71717a] text-xs">{subtitle}</p>
|
||||
)}
|
||||
</div>
|
||||
<div className="w-4 h-4">
|
||||
@@ -38,4 +41,4 @@ const ChartCard: React.FC<ChartCardProps> = ({
|
||||
)
|
||||
}
|
||||
|
||||
export default ChartCard
|
||||
export default ChartCard
|
||||
|
||||
Reference in New Issue
Block a user