Skip to content

Commit

Permalink
fix: featured image
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickHeneise committed Nov 11, 2023
1 parent bbdfa13 commit b617741
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/routes/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@ function EventBox(props) {
<A href={`/events/${props.event.number}`}>
<div class="relative w-full">
<Switch>
<Match when={issueData()?.['event-description']?.images?.[0]}>
<Match when={issueData()?.['featured-image']?.images?.[0]}>
<img
src={issueData()?.['event-description']?.images?.[0]?.src}
alt={issueData()?.['event-description']?.images?.[0]?.alt}
src={issueData()?.['featured-image']?.images?.[0]?.src}
alt={issueData()?.['featured-image']?.images?.[0]?.alt}
class="aspect-[16/9] w-full rounded-2xl bg-gray-100 object-cover sm:aspect-[2/1] lg:aspect-[3/2]"
/>
</Match>
<Match when={!issueData()?.['event-description']?.images?.[0]}>
<Match when={!issueData()?.['featured-image']?.images?.[0]}>
<img
src="/assets/cdc-logo.svg"
alt="Cyprus Developer Community Logo"
Expand Down

0 comments on commit b617741

Please sign in to comment.