diff --git a/src/actions/portfolio/getJustifiedImages.ts b/src/actions/portfolio/getJustifiedImages.ts index 4b54b58..190189b 100644 --- a/src/actions/portfolio/getJustifiedImages.ts +++ b/src/actions/portfolio/getJustifiedImages.ts @@ -20,7 +20,7 @@ export async function getJustifiedImages() { const variant = img.variants.find((v) => v.type === "resized"); if (!variant || !variant.width || !variant.height) return null; - const bg = img.colors.find((c) => c.type === "vibrant")?.color.hex ?? "#e5e7eb"; + const bg = img.colors.find((c) => c.type === "Vibrant")?.color.hex ?? "#e5e7eb"; return { id: img.id, diff --git a/src/app/globals.css b/src/app/globals.css index b89bf78..ae81de3 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -172,6 +172,10 @@ @apply line-through text-muted-foreground; } +div:hover { + border-color: var(--hover-border-color); +} + @layer base { * { @apply border-border outline-ring/50; diff --git a/src/components/portfolio/ImageCard.tsx b/src/components/portfolio/ImageCard.tsx index 0041f50..45c1d8b 100644 --- a/src/components/portfolio/ImageCard.tsx +++ b/src/components/portfolio/ImageCard.tsx @@ -3,6 +3,7 @@ import type { Color, ImageColor, ImageVariant, PortfolioImage } from "@/generated/prisma"; import { cn } from "@/lib/utils"; import Image from "next/image"; +import Link from "next/link"; // ---------- Type Definitions ---------- @@ -53,34 +54,43 @@ export function ImageCard(props: ImageCardProps) { ? `/api/image/thumbnail/${props.image.fileKey}.webp` : props.image.url; + console.log(props.image); + return ( -
+
- {altText} + > + {altText} +
- + ); }