Skip to content

Commit

Permalink
organize links in frontpages card
Browse files Browse the repository at this point in the history
  • Loading branch information
JorgeX committed Sep 5, 2023
1 parent c91bad6 commit 3013fac
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
13 changes: 8 additions & 5 deletions packages/site/src/components/MeetupCard.astro
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const {
organizer,
organizerLink,
meetupLink,
slug,
} = Astro.props;
---

Expand All @@ -27,11 +28,13 @@ const {
/>
</div>
<div class="ml-4">
<h3 class="text-base font-semibold leading-6 text-gray-900">
{name}
</h3>
<a href={`${import.meta.env.BASE_URL}meetups/${slug}`}>
<h3 class="text-base font-semibold leading-6 text-gray-900">
{name}
</h3>
</a>
<p class="text-sm text-gray-500">
<a href={organizerLink} target="_blank">{organizer}</a>
{organizer}
</p>
</div>
</div>
Expand Down Expand Up @@ -81,7 +84,7 @@ const {
<div class="px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6">
<dt class="text-sm font-medium text-gray-900">Organizer</dt>
<dd class="mt-1 text-sm leading-6 text-gray-700 sm:col-span-2 sm:mt-0">
{organizer}
<a href={organizerLink} target="_blank">{organizer}</a>
</dd>
</div>
<div class="px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6">
Expand Down
1 change: 1 addition & 0 deletions packages/site/src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const meetupDetails = nextMeetup
organizerLink: nextMeetup.data.organizerLink,
description: nextMeetup.data.description,
meetupLink: nextMeetup.data.meetupLink,
slug: nextMeetup.slug,
}
: null;
---
Expand Down

0 comments on commit 3013fac

Please sign in to comment.