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
+1 -26
View File
@@ -1,32 +1,7 @@
import React, { useEffect, useState } from 'react'
import style from '@styles/Project.module.scss'
export interface ProjectTech {
name: string;
icon: string;
}
export interface ProjectProps {
id: string;
title: string;
description: string;
image: string;
category: Category[];
featured?: boolean;
technologies: ProjectTech[];
links: {
github?: string;
demo?: string;
};
}
export interface Category {
[key: string]: string;
fullName: string;
shortName: string;
icon: string;
}
import type {ProjectTech, Category, ProjectProps } from '../untils/ProjectProps'
interface ProjectCardProps {
project: ProjectProps;