From de1a8adcd69ed1e13172b5815e1de8e13ff7183b Mon Sep 17 00:00:00 2001 From: Edward Sun Date: Fri, 25 Oct 2024 11:22:39 -0700 Subject: [PATCH 1/2] Add case study button to card --- .../src/app/project-showcase/page.tsx | 82 +++++++++++-------- 1 file changed, 49 insertions(+), 33 deletions(-) diff --git a/apps/dashboard/src/app/project-showcase/page.tsx b/apps/dashboard/src/app/project-showcase/page.tsx index 72bc63e675d..959eb116977 100644 --- a/apps/dashboard/src/app/project-showcase/page.tsx +++ b/apps/dashboard/src/app/project-showcase/page.tsx @@ -1,7 +1,9 @@ +import { FileText } from "lucide-react"; import type { Metadata } from "next"; import Image from "next/image"; import Link from "next/link"; import { Badge } from "../../@/components/ui/badge"; +import { Button } from "../../@/components/ui/button"; import { Card, CardContent, @@ -127,43 +129,57 @@ export default function ProjectShowcasePage({
{paginatedProjects.map((project) => ( - +
- {/* eslint-disable @next/next/no-img-element */} - {project.title} - - {project.title} - {project.description} - - -
- {project.industries?.map((industry) => ( - - {industry} - - ))} + + {/* eslint-disable @next/next/no-img-element */} + {project.title} + + {project.title} + {project.description} + + + +
+
+ {project.industries?.map((industry) => ( + + {industry} + + ))} +
+ {project.case_study && ( + e.stopPropagation()} + > + + + )}
- +
))}
From da6990fa0f7b8b75105b879cfe5077b4bdb6eb61 Mon Sep 17 00:00:00 2001 From: Edward Sun Date: Fri, 25 Oct 2024 11:34:34 -0700 Subject: [PATCH 2/2] lint --- apps/dashboard/src/app/project-showcase/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dashboard/src/app/project-showcase/page.tsx b/apps/dashboard/src/app/project-showcase/page.tsx index 959eb116977..cdf1fc52100 100644 --- a/apps/dashboard/src/app/project-showcase/page.tsx +++ b/apps/dashboard/src/app/project-showcase/page.tsx @@ -157,7 +157,7 @@ export default function ProjectShowcasePage({ -
+
{project.industries?.map((industry) => (