-our beliefs
This commit is contained in:
@@ -39,11 +39,7 @@ function resolveImageUrl(value, fallback) {
|
||||
}
|
||||
|
||||
function getFallbackImage(event) {
|
||||
const title = `${event?.title || ''}`.toLowerCase()
|
||||
if (title.includes('vespers')) return '/assets/youth_vespers.png'
|
||||
if (title.includes('food') || title.includes('community')) return '/assets/family_entry.png'
|
||||
if (title.includes('lunch') || title.includes('dinner') || title.includes('potluck')) return '/assets/potluck.png'
|
||||
return '/assets/potluck.png'
|
||||
return ''
|
||||
}
|
||||
|
||||
function formatDate(dateStr) {
|
||||
@@ -168,14 +164,16 @@ export default function EventDetail() {
|
||||
</Link>
|
||||
<div className="grid lg:grid-cols-[2fr,1fr] gap-10 items-start">
|
||||
<article className="bg-white rounded-2xl shadow-level1 overflow-hidden">
|
||||
<div className="relative h-80 md:h-96 bg-sand">
|
||||
<img
|
||||
src={coverImage}
|
||||
alt={`${event.title} hero image`}
|
||||
className="absolute inset-0 h-full w-full object-cover"
|
||||
loading="lazy"
|
||||
/>
|
||||
</div>
|
||||
{coverImage && (
|
||||
<div className="relative h-80 md:h-96 bg-sand">
|
||||
<img
|
||||
src={coverImage}
|
||||
alt={`${event.title} hero image`}
|
||||
className="absolute inset-0 h-full w-full object-cover"
|
||||
loading="lazy"
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
<div className="p-10 space-y-6">
|
||||
<header className="space-y-3">
|
||||
<p className="text-xs uppercase tracking-[0.2em] text-muted">
|
||||
|
||||
Reference in New Issue
Block a user