Add Dockerfile, add raw view

This commit is contained in:
2025-12-21 13:27:12 +01:00
parent 9bb649c9e2
commit b1541f8777
35 changed files with 2811 additions and 78 deletions

View File

@ -0,0 +1,34 @@
import ArtworkThumbGallery from "@/components/artworks/ArtworkThumbGallery";
import { prisma } from "@/lib/prisma";
export default async function AnimalStudiesPage() {
const artworks = await prisma.artwork.findMany({
where: {
categories: {
some: {
name: "Animal Studies"
}
},
published: true
},
include: {
file: true,
metadata: true,
tags: true,
variants: true
},
orderBy: [{ sortKey: "asc" }, { id: "asc" }]
})
// console.log(JSON.stringify(artworks, null, 4))
return (
<div className="flex flex-col gap-4 p-4">
<div>
<h1 className="text-2xl font-bold text-center">Animal studies</h1>
</div>
<ArtworkThumbGallery items={artworks} fit={{ mode: "fixedWidth", width: 300 }} />
</div>
);
}