From db326334fbb3cd1a640c0546153d41def74eee17 Mon Sep 17 00:00:00 2001
From: Mark Thompson
Date: Wed, 8 May 2024 16:05:09 +0100
Subject: [PATCH] Add different colour option for project card subtitles
---
app/projects/page.tsx | 1 +
components/projectCard.tsx | 6 +++++-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/app/projects/page.tsx b/app/projects/page.tsx
index 2a8a99a..6783b8a 100644
--- a/app/projects/page.tsx
+++ b/app/projects/page.tsx
@@ -44,6 +44,7 @@ const ProjectsPage = () => {
subtitle="Matplotlib | Development"
backgroundImage={twenty3FontTextSizeThumb}
internalLink={"/matplotlib-font-text-sizing"}
+ subtitleColour="white"
/>
diff --git a/components/projectCard.tsx b/components/projectCard.tsx
index ab663d5..ed55d83 100644
--- a/components/projectCard.tsx
+++ b/components/projectCard.tsx
@@ -5,6 +5,7 @@ interface ProjectCardProps {
subtitle: string;
backgroundImage: any;
internalLink: string;
+ subtitleColour?: string;
}
const ProjectCard: React.FC = ({
@@ -12,6 +13,7 @@ const ProjectCard: React.FC = ({
subtitle,
backgroundImage,
internalLink,
+ subtitleColour = "black",
}) => {
return (
@@ -25,7 +27,9 @@ const ProjectCard: React.FC = ({
{title}
-