Skip to content

Commit 5508c80

Browse files
Merge pull request #90 from praliptarajoo/new-main
not show line and link for upcoming projects
2 parents 97baa43 + 292a015 commit 5508c80

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

src/app/projects/components/ProjectCard.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import Image from "next/image";
66

77
interface Props {
88
title: string;
9+
parentTitle: string;
910
shortDescription: string;
1011
githubUrl?: string;
1112
documentationUrl?: string;
@@ -16,6 +17,7 @@ export default function ProjectCard({
1617
shortDescription,
1718
githubUrl,
1819
documentationUrl,
20+
parentTitle,
1921
}: Props) {
2022
return (
2123
<div className='border-2 p-8 transition-[box-shadow] shadow-none hover:shadow-xl bg-slate-50/70'>
@@ -25,7 +27,8 @@ export default function ProjectCard({
2527
<p className='mt-3 text-mf-dark tracking-wide leading-10'>
2628
{shortDescription}
2729
</p>
28-
{(githubUrl || documentationUrl) &&
30+
{parentTitle !== "Upcoming Projects" &&
31+
(githubUrl || documentationUrl) &&
2932
(githubUrl !== "NA" || documentationUrl !== "NA") && (
3033
<div className='flex gap-4 justify-end mt-6 pt-6 border-t-2'>
3134
{githubUrl && githubUrl !== "NA" ? (

src/app/projects/components/ProjectGrid.tsx

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,20 @@ export default function ProjectGrid({ title, projectData }: Props) {
2626
</h2>
2727
<div className='mt-12 px-4 grid gap-6 max-w-6xl mx-auto md:grid-cols-2 lg:grid-cols-3'>
2828
{projectData.map(
29-
({ title, shortDescription, githubUrl, documentationUrl }, index) => {
29+
(
30+
{
31+
title: projectTitle,
32+
shortDescription,
33+
githubUrl,
34+
documentationUrl,
35+
},
36+
index
37+
) => {
3038
return (
3139
<ProjectCard
3240
key={index}
33-
title={title}
41+
title={projectTitle}
42+
parentTitle={title}
3443
shortDescription={shortDescription}
3544
githubUrl={githubUrl}
3645
documentationUrl={documentationUrl}

0 commit comments

Comments
 (0)