feat: refactor BlogCard, ProjectCard, and ProjectModal components to use new type definitions and improve structure
This commit is contained in:
@@ -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;
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user