Skip to content

Commit 633a2b1

Browse files
committed
chore: adjust image cover events
1 parent 1a2d09a commit 633a2b1

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

src/features/events/components/EventForm.tsx

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,21 @@ const EventForm = ({ onSubmit, isLoading = false, initialData, mode = "create" }
161161
/>
162162

163163
{initialData?.file_name && (
164-
<div>
165-
<Image src={initialData.file_name} alt="image cover" width={200} height={200} />
164+
<div className="relative h-82 w-full overflow-hidden rounded-md border">
165+
<Image
166+
src={initialData.file_name}
167+
alt="Background blur"
168+
width={400}
169+
height={160}
170+
className="absolute inset-0 h-82 w-full object-cover blur-sm"
171+
/>
172+
<Image
173+
src={initialData.file_name}
174+
alt="Current event image"
175+
width={200}
176+
height={200}
177+
className="relative z-10 mx-auto max-h-82 w-full object-contain"
178+
/>
166179
</div>
167180
)}
168181

0 commit comments

Comments
 (0)