Skip to content

Commit 29aedb9

Browse files
code cleanup with comments
1 parent 52de00c commit 29aedb9

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

client/src/pages/events/[id].tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ export default function EventDetailsPage() {
3636
<Button className="flex-1 rounded-full">Join Event</Button>
3737
}
3838
>
39+
{/* main container */}
3940
<div className="mx-auto max-w-3xl px-4 sm:px-6 lg:px-0">
41+
{/* image container */}
4042
<div className="relative h-56 w-full overflow-hidden rounded-xl bg-gray-200">
4143
<Image
4244
className="h-full w-full object-cover"
@@ -45,6 +47,7 @@ export default function EventDetailsPage() {
4547
fill
4648
></Image>
4749
</div>
50+
{/* if more than one image -> return div with all other images */}
4851
{event.images.length > 1 && (
4952
<div className="mt-6 grid grid-cols-3 gap-3">
5053
{event.images.slice(1).map((img) => (
@@ -60,10 +63,6 @@ export default function EventDetailsPage() {
6063
</div>
6164
)}
6265

63-
<div className="absolute -bottom-6 left-6">
64-
<div className="h-16 w-16 rounded-full border-4 border-white bg-gray-300"></div>
65-
</div>
66-
6766
<div className="mt-10">
6867
<h1 className="text-2xl font-semibold">{event.event_name}</h1>
6968

0 commit comments

Comments
 (0)