Skip to content

Commit

Permalink
fix: responsive issue resolved for event card for large screens
Browse files Browse the repository at this point in the history
  • Loading branch information
jwala-anirudh committed May 7, 2024
1 parent 01dd062 commit fb1c641
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/EventCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ const EventCard = (event: EventCardProps) => {
</h2>

<div className='flex-col md:flex md:flex-row items-start max-w-2xl px-6 pt-4'>
<div className='w-full h-56 mb-2 rounded'>
<div className='w-full md:w-1/3 h-56 mb-2 rounded'>
<img
src={event.imageUrl}
alt={event.title}
className='w-full h-full object-cover rounded-lg'
/>
</div>
<div className='px-2 md:pl-8 md:pr-2 h-full'>
<div className='md:w-2/3 px-2 md:pl-8 md:pr-2 h-full'>
<h3 className='text-2xl font-bold'>{event.title}</h3>
<span className='text-xs font-medium me-2 px-2.5 py-0.5 rounded bg-yellow-900 text-yellow-300'>
{event.category}
Expand Down

0 comments on commit fb1c641

Please sign in to comment.