From 5e88f09cc0813aba695ad5f2c88469f0b27b08cd Mon Sep 17 00:00:00 2001 From: Web Dev Cody Date: Fri, 2 Feb 2024 10:22:49 -0500 Subject: [PATCH] fixing aspect ratio on images --- src/app/create/page.tsx | 14 +- src/app/dashboard/page.tsx | 14 +- src/app/explore/page.tsx | 14 +- src/app/profile/[userId]/page.tsx | 14 +- src/app/thumbnails/[thumbnailId]/page.tsx | 180 +++++++++++----------- 5 files changed, 123 insertions(+), 113 deletions(-) diff --git a/src/app/create/page.tsx b/src/app/create/page.tsx index a583064..ecfcbf8 100644 --- a/src/app/create/page.tsx +++ b/src/app/create/page.tsx @@ -115,12 +115,14 @@ export default function CreatePage() { return (
Image {idx + 1}
- image test a +
+ image test image +
); })} diff --git a/src/app/dashboard/page.tsx b/src/app/dashboard/page.tsx index 29e6ace..3f586c9 100644 --- a/src/app/dashboard/page.tsx +++ b/src/app/dashboard/page.tsx @@ -61,12 +61,14 @@ export default function DashboardPage() { return ( - thumbnail image +
+ image test +

{thumbnail.title}

diff --git a/src/app/explore/page.tsx b/src/app/explore/page.tsx index b87c35d..eafdfbe 100644 --- a/src/app/explore/page.tsx +++ b/src/app/explore/page.tsx @@ -99,12 +99,14 @@ export default function ExplorePage() { )} - thumbnail image +
+ image test +
diff --git a/src/app/profile/[userId]/page.tsx b/src/app/profile/[userId]/page.tsx index 5de6d39..19921d0 100644 --- a/src/app/profile/[userId]/page.tsx +++ b/src/app/profile/[userId]/page.tsx @@ -59,12 +59,14 @@ function UserThumbnails() { return ( - thumbnail image +
+ image test +

{thumbnail.title}

diff --git a/src/app/thumbnails/[thumbnailId]/page.tsx b/src/app/thumbnails/[thumbnailId]/page.tsx index 7eaa792..042b72b 100644 --- a/src/app/thumbnails/[thumbnailId]/page.tsx +++ b/src/app/thumbnails/[thumbnailId]/page.tsx @@ -50,13 +50,14 @@ function ThumbnailTestImage({ return (
- image test a +
+ image test +
@@ -163,87 +164,87 @@ export default function ThumbnailPage() {
- {!hasVoted && ( - <> - - - - Grid - - - Gallery - - - - -
- {thumbnail.images.map((imageId) => { - return ( - - ); - })} -
-
+ {/* {!hasVoted && ( */} + <> + + + + Grid + + + Gallery + + - -
- + +
+ {thumbnail.images.map((imageId) => { + return ( + + ); + })} +
+
-
- + +
+ -
- {currentImageIndex + 1} of {thumbnail.images.length} -
+
+ - +
+ {currentImageIndex + 1} of {thumbnail.images.length}
+ +
- - - - )} +
+
+ + + {/* )} */} - {hasVoted && ( + {/* {hasVoted && (
{sortedImages.map((imageId) => (
- image test a +
+ image test +
@@ -300,7 +302,7 @@ export default function ThumbnailPage() {
))}
- )} + )} */}