Skip to content

Commit 97baa43

Browse files
Merge pull request #88 from praliptarajoo/new-main
UI changes under projects page
2 parents 02fe0a6 + 027d8ca commit 97baa43

File tree

1 file changed

+20
-14
lines changed

1 file changed

+20
-14
lines changed

src/app/projects/components/ProjectCard.tsx

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,26 @@ export default function ProjectCard({
2525
<p className='mt-3 text-mf-dark tracking-wide leading-10'>
2626
{shortDescription}
2727
</p>
28-
{(githubUrl || documentationUrl) && (
29-
<div className='flex gap-4 justify-end mt-6 pt-6 border-t-2'>
30-
{githubUrl && githubUrl !== "NA" ? (
31-
<Link href={githubUrl!} target='_blank'>
32-
<Image src={github} height={20} width={20} alt='facebook_img' />
33-
</Link>
34-
) : null}
35-
{documentationUrl && documentationUrl !== "NA" ? (
36-
<Link href={documentationUrl} target='_blank'>
37-
<Image src={redirect} height={20} width={20} alt='facebook_img' />
38-
</Link>
39-
) : null}
40-
</div>
41-
)}
28+
{(githubUrl || documentationUrl) &&
29+
(githubUrl !== "NA" || documentationUrl !== "NA") && (
30+
<div className='flex gap-4 justify-end mt-6 pt-6 border-t-2'>
31+
{githubUrl && githubUrl !== "NA" ? (
32+
<Link href={githubUrl!} target='_blank'>
33+
<Image src={github} height={20} width={20} alt='facebook_img' />
34+
</Link>
35+
) : null}
36+
{documentationUrl && documentationUrl !== "NA" ? (
37+
<Link href={documentationUrl} target='_blank'>
38+
<Image
39+
src={redirect}
40+
height={20}
41+
width={20}
42+
alt='facebook_img'
43+
/>
44+
</Link>
45+
) : null}
46+
</div>
47+
)}
4248
</div>
4349
);
4450
}

0 commit comments

Comments
 (0)