diff --git a/src/app/(normal)/artworks/page.tsx b/src/app/(normal)/artworks/page.tsx index 5765f1c..2dc0f5a 100644 --- a/src/app/(normal)/artworks/page.tsx +++ b/src/app/(normal)/artworks/page.tsx @@ -55,9 +55,9 @@ export default async function PortfolioPage({

Portfolio

+
-
); diff --git a/src/app/(normal)/artworks/single/[id]/page.tsx b/src/app/(normal)/artworks/single/[id]/page.tsx index 0627997..b7ce25d 100644 --- a/src/app/(normal)/artworks/single/[id]/page.tsx +++ b/src/app/(normal)/artworks/single/[id]/page.tsx @@ -1,10 +1,11 @@ +import ArtworkMetaCard from "@/components/artworks/ArtworkMetaCard"; +import { ContextBackButton } from "@/components/artworks/ContextBackButton"; import { prisma } from "@/lib/prisma"; import { cn } from "@/lib/utils"; -import { LayersIcon, QuoteIcon, TagIcon } from "lucide-react"; import Image from "next/image"; import Link from "next/link"; -export default async function SingleArtworkPage({ params }: { params: { id: string } }) { +export default async function SingleArtworkPage({ params }: { params: { id: string }; searchParams: Record; }) { const { id } = await params; const artwork = await prisma.artwork.findUnique({ where: { @@ -36,10 +37,15 @@ export default async function SingleArtworkPage({ params }: { params: { id: stri return (
+
+
+ {artwork.name ? ( +
+

{artwork.name}

+
+ ) : null} +
-
-

{artwork.name}

-
- {/* {image.nsfw && ( -
- } - className="text-xs px-2 py-0.5 inline-flex items-center" - /> -
- )} */}
- {/* {!isLarge && ( -
-

{image.imageName}

-
- )} */}
-
- {artwork.altText && ( -
- - {artwork.altText} -
- )} - - {artwork.description && ( -
- - {artwork.description} -
- )} - - {/* {creationLabel && ( -
- - {creationLabel} -
- )} - - {album && ( -
- - - {album.name} - -
- )} */} - - {artwork.categories.length > 0 && ( -
- - {artwork.categories.map((cat) => ( - - {cat.name} - - ))} -
- )} - - {artwork.tags.length > 0 && ( -
- - {artwork.tags.map((tag) => ( - - {tag.name} - - ))} -
- )} -
-
- - {/* -
- {image.artist && } - + -
*/} +
- ); } \ No newline at end of file diff --git a/src/app/(normal)/layout.tsx b/src/app/(normal)/layout.tsx index b5e3401..292c041 100644 --- a/src/app/(normal)/layout.tsx +++ b/src/app/(normal)/layout.tsx @@ -16,7 +16,7 @@ export default function NormalLayout({
-
+
{children}