Refine image page, add about page

This commit is contained in:
2025-07-03 18:03:16 +02:00
parent f5edeb67d4
commit 6026416c5c
16 changed files with 301 additions and 167 deletions

View File

@ -1,4 +1,4 @@
import ImageList from "@/components/lists/ImageList";
import AlbumImageList from "@/components/lists/AlbumImageList";
import prisma from "@/lib/prisma";
export default async function GalleryPage({ params }: { params: { gallerySlug: string, albumSlug: string } }) {
@ -21,7 +21,10 @@ export default async function GalleryPage({ params }: { params: { gallerySlug: s
},
},
include: {
images: { include: { colors: { include: { color: true } } } },
images: {
include: { colors: { include: { color: true } } },
orderBy: [{ sortIndex: 'asc' }, { imageName: 'asc' }]
},
}
})
@ -35,7 +38,7 @@ export default async function GalleryPage({ params }: { params: { gallerySlug: s
{album.description}
</p>
</section>
<ImageList images={album.images} gallerySlug={gallerySlug} albumSlug={albumSlug} />
<AlbumImageList images={album.images} gallerySlug={gallerySlug} albumSlug={albumSlug} />
</>
)}
</div>