Edumark Card Components
Edumark Card Components
interface ImageProps {
src: string;
alt: string;
className?: string;
}
interface CardProps {
type: string;
date: string;
title: string;
description: string;
imageSrc: string;
}
interface CardListProps {
cards: CardProps[];
}
// Example usage
const App: React.FC = () => {
const cardData: CardProps[] = [
{
type: 'Conferences',
date: 'Thu, Aug 1',
title: 'MarketerConf 2024: Decode the Language of...',
description: 'Decode the language of marketing, learn all the new marketing
trends of 2024, and connect with 1000+ marketing experts.',
imageSrc: '/api/placeholder/400/300'
},
{
type: 'Webinars',
date: 'Wed, Aug 7',
title: 'Edumark Webinar: Learn the Art of Email Marketing',
description: 'Dive deep into the art of email marketing and learn everything
from email design to copywriting for emails.',
imageSrc: '/api/placeholder/400/300'
},
{
type: 'Meetups',
date: 'Mon, Jul 31',
title: 'Content Creators Unplugged: Elevate yourself',
description: 'Unplug from the ordinary and join a community of content
creators. Share your experience, and let creativity flow freely.',
imageSrc: '/api/placeholder/400/300'
}
];
return (
<div className="container mx-auto p-6">
<CardList cards={cardData} />
</div>
);
};