From 96159565be2bbbcbc06ce82391991880abf1f6ad Mon Sep 17 00:00:00 2001 From: Derek Slenk Date: Thu, 26 Jun 2025 22:28:30 +0000 Subject: [PATCH] When I click on the videos I don't get directed to the right video on yo --- next.config.ts | 6 ++++++ src/app/gallery/page.tsx | 32 +++++++++++++++++++++----------- 2 files changed, 27 insertions(+), 11 deletions(-) diff --git a/next.config.ts b/next.config.ts index 9d8de36..f20d813 100644 --- a/next.config.ts +++ b/next.config.ts @@ -16,6 +16,12 @@ const nextConfig: NextConfig = { port: '', pathname: '/**', }, + { + protocol: 'https', + hostname: 'img.youtube.com', + port: '', + pathname: '/**', + }, ], }, }; diff --git a/src/app/gallery/page.tsx b/src/app/gallery/page.tsx index 14b11a8..b8d35e6 100644 --- a/src/app/gallery/page.tsx +++ b/src/app/gallery/page.tsx @@ -2,6 +2,8 @@ import type { Metadata } from 'next'; import { Button } from '@/components/ui/button'; import Link from 'next/link'; +import Image from 'next/image'; +import { ExternalLink } from 'lucide-react'; export const metadata: Metadata = { title: "Video Gallery - Community Coverage of Chelsea Smallwood", @@ -78,18 +80,26 @@ export default async function GalleryPage() {
{videos.length > 0 ? videos.map((video) => ( -
-
- +
+ + {`Thumbnail +
+ +
+ +
+

+ + {video.title} + +

-

{video.title}

)) : (

Could not load videos. Please try again later.