Skip to content

Commit

Permalink
minimize event location styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Freymaurer committed Oct 14, 2024
1 parent f4defd6 commit 1032a01
Showing 1 changed file with 7 additions and 28 deletions.
35 changes: 7 additions & 28 deletions src/layouts/EventLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -82,36 +82,15 @@ const additionalMetadata: ({
<Icon name="tabler:location" class="inline text-primary" title="Location"/>
Where?
</h3>
<div class="grid md:grid-cols-2 auto-cols-fr not-prose gap-4 md:text-left">
<div>
<p>
<b>Name:</b>
</p>
<p>
<span>{event.data.location.name}</span>
</p>
</div>
<p>
<div>{event.data.location.name}</div>
{ event.data.location.url &&
<div>
<p>
<b>Find more!</b>
</p>
<p>
<a class="underline" href={event.data.location.url}>Click me</a>
</p>
</div>
<a class="underline !text-secondary" href={event.data.location.url}>Find more!</a>
}
{ event.data.location.address &&
<div class="md:col-span-2">
<p>
<b>Address:</b>
</p>
<p>
<span>{event.data.location.address}</span>
</p>
</div>
}
</div>
</p>
{ event.data.location.address &&
<p set:html={event.data.location.address}></p>
}
</div>
{
event.data.repeating &&
Expand Down

0 comments on commit 1032a01

Please sign in to comment.