feat: refactor BlogCard, ProjectCard, and ProjectModal components to use new type definitions and improve structure

This commit is contained in:
2025-05-26 18:09:09 +02:00
parent 8e2030b0ab
commit e8a3611dfb
8 changed files with 214 additions and 182 deletions
+15
View File
@@ -0,0 +1,15 @@
export interface BlogPostProps {
id: string;
slug: string;
title: string;
excerpt: string;
image: string;
category: string;
date: string;
author: string;
commentCount: number;
readTime: string;
featured?: boolean;
tags: string[];
content: string;
}
+39
View File
@@ -0,0 +1,39 @@
export interface ProjectProps {
id: string;
title: string;
description: string;
projectDetails?: ProjectDetails;
image: string;
category: Category[];
featured?: boolean;
technologies: ProjectTech[];
links: {
github?: string;
demo?: string;
};
}
export interface ProjectDetails {
descriptions: string[];
startDate: string;
endDate: string;
dateFormatted?: string;
role: string;
status: string;
client: string;
keyFeatures: string[];
gallery: string[];
}
export interface Category {
[key: string]: string;
fullName: string;
shortName: string;
icon: string;
}
export interface ProjectTech {
name: string;
icon: string;
}