Refactr a lot of things

This commit is contained in:
2025-07-01 22:19:48 +02:00
parent 2e1161b50b
commit 51c85b93de
19 changed files with 520 additions and 52 deletions

View File

@ -1,4 +1,4 @@
import ImageList from "@/components/albums/ImageList";
import ImageList from "@/components/lists/ImageList";
import prisma from "@/lib/prisma";
export default async function GalleryPage({ params }: { params: { gallerySlug: string, albumSlug: string } }) {
@ -21,7 +21,7 @@ export default async function GalleryPage({ params }: { params: { gallerySlug: s
},
},
include: {
images: true
images: { include: { colors: { include: { color: true } } } },
}
})
@ -30,7 +30,7 @@ export default async function GalleryPage({ params }: { params: { gallerySlug: s
{album && (
<>
<section className="text-center space-y-4">
<h1 className="text-4xl font-bold tracking-tight">{album.name}</h1>
<h1 className="text-4xl font-bold tracking-tight">Album: {album.name}</h1>
<p className="text-lg text-muted-foreground">
{album.description}
</p>