Add Upcoming Event
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
---
|
||||
import CalendarIcon from '@/icons/CalendarIcon.astro';
|
||||
import { Image } from 'astro:assets';
|
||||
import { upcomingEvent as UpcomingEvent } from './subcomponents/UpcomingEvent';
|
||||
|
||||
interface Props {
|
||||
upcomingEvents: UpcomingEventsComponent;
|
||||
@@ -24,7 +25,7 @@ const upcomingEvents = Astro.props.upcomingEvents;
|
||||
alt=""
|
||||
/>
|
||||
</div>
|
||||
<div class="flex flex-col gap-1.5 lg:w-[40%] w-full">
|
||||
<div class="flex flex-col gap-2.5 lg:w-[40%] w-full">
|
||||
<h3 class="text-3xl font-semibold">{event.title}</h3>
|
||||
<div class="flex flex-row items-center gap-1.5 text-neutral-900">
|
||||
<CalendarIcon width={24} height={24} />
|
||||
@@ -34,6 +35,9 @@ const upcomingEvents = Astro.props.upcomingEvents;
|
||||
<p>{event.startDate}</p>
|
||||
) }
|
||||
</div>
|
||||
<div class="mt-3.5">
|
||||
<UpcomingEvent event={event} client:load />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
)) }
|
||||
|
||||
Reference in New Issue
Block a user