Add Dockerfile, add raw view
This commit is contained in:
34
src/app/(normal)/artworks/animalstudies/page.tsx
Normal file
34
src/app/(normal)/artworks/animalstudies/page.tsx
Normal 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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user