utopia-ui/src/Components/Profile/RelationCard.tsx
Sebastian Stein aff509f1dd - added new profile layout (not dynamic data linked yet)
- added new components around the profile
2024-06-25 09:46:26 +02:00

16 lines
626 B
TypeScript

const RelationCard = ({ title, description, imageSrc }) => (
<div className={`tw-mb-6 ${imageSrc ? 'md:tw-flex md:tw-space-x-4' : ''}`}>
{imageSrc && (
<div className="md:tw-w-1/2 tw-mb-4 md:tw-mb-0">
<img src={imageSrc} alt={title} className="tw-w-full tw-h-32 tw-object-cover" />
</div>
)}
<div className={imageSrc ? 'md:tw-w-1/2' : 'tw-w-full'}>
<h3 className="tw-text-lg tw-font-semibold">{title}</h3>
<p className="tw-mt-2 tw-text-sm tw-text-gray-600">{description}</p>
</div>
</div>
);
export default RelationCard;