Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
docimin committed Nov 24, 2023
1 parent 4a287da commit 94feb73
Showing 1 changed file with 27 additions and 24 deletions.
51 changes: 27 additions & 24 deletions src/app/user/[uniqueId]/gallery/page.client.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -368,32 +368,35 @@ export default function FetchGallery() {
role="list"
className="p-8 flex flex-wrap gap-4 justify-center items-center"
>
{gallery.map((item) => (
console.log(item),
<div key={item.$id}>
{item && (
<div
className={`rounded-lg overflow-hidden h-64 ${
item.nsfw && !enableNsfw ? "relative" : ""
}`}
>
{item.nsfw && !enableNsfw && (
<div className="absolute inset-0 bg-black opacity-50"></div>
{gallery.map(
(item) => (
(
<div key={item.$id}>
{item && (
<div
className={`rounded-lg overflow-hidden h-64 ${
item.nsfw && !enableNsfw ? "relative" : ""
}`}
>
{item.nsfw && !enableNsfw && (
<div className="absolute inset-0 bg-black opacity-50"></div>
)}
<Link href={`/gallery/${item.$id}`}>
<Image
src={getGalleryImageUrl(item.gallery_id)}
alt={item.imgalt}
className={`object-cover h-full w-full max-h-[600px] max-w-[600px]`}
width={600}
height={600}
/>
</Link>
</div>
)}
<Link href={`/gallery/${item.$id}`}>
<Image
src={getGalleryImageUrl(item.gallery_id)}
alt={item.imgalt}
className={`object-cover h-full w-full max-h-[600px] max-w-[600px]`}
width={600}
height={600}
/>
</Link>
<h2>{item.name}</h2>
</div>
)}
<h2>{item.name}</h2>
</div>
))}
)
)
)}
</ul>
</>
</div>
Expand Down

0 comments on commit 94feb73

Please sign in to comment.