diff --git a/src/assets/data b/src/assets/data new file mode 100644 index 0000000..e69de29 diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index 4208ccc..023c565 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -1,11 +1,9 @@ import {socialLinkData} from '../data/socialLinkData' -export interface socialLink { - icon: string; - url: string; -} +import type {SocialLink} from '../untils/SocialLink' + export const Footer = () => { - const socialLinks: socialLink[] = socialLinkData; + const socialLinks: SocialLink[] = socialLinkData; const currentYear = new Date().getFullYear() return ( diff --git a/src/components/SkillCard.tsx b/src/components/SkillCard.tsx index 2212292..ad1f767 100644 --- a/src/components/SkillCard.tsx +++ b/src/components/SkillCard.tsx @@ -1,16 +1,7 @@ import styles from '@styles/SkillCard.module.scss'; import React from 'react'; -export interface Skill { - name: string; - icon: React.ReactNode; // Or string if using CSS classes for icons -} - -export interface SkillCardProps { - categoryTitle: string; - categoryIcon: React.ReactNode; // Or string - skills: Skill[]; -} +import type {SkillCardProps} from '../untils/SkillCardProps'; const SkillCard: React.FC = ({ categoryTitle, categoryIcon, skills }) => { return ( diff --git a/src/data/experienceData.ts b/src/data/experienceData.ts index 11fb212..4f701a0 100644 --- a/src/data/experienceData.ts +++ b/src/data/experienceData.ts @@ -1,4 +1,5 @@ -import { type AboutProps } from "../pages/About"; +import type {AboutProps} from '../untils/AboutProps' + export const aboutProps: AboutProps = { coreValues: [ diff --git a/src/data/skillCardData.ts b/src/data/skillCardData.ts index 45597c5..1626356 100644 --- a/src/data/skillCardData.ts +++ b/src/data/skillCardData.ts @@ -1,4 +1,4 @@ -import {type SkillCardProps} from '../components/SkillCard'; +import {type SkillCardProps} from '../untils/SkillCardProps'; export const skillCardData: SkillCardProps[] = [ { diff --git a/src/data/socialLinkData.ts b/src/data/socialLinkData.ts index 0185a00..48bc0ee 100644 --- a/src/data/socialLinkData.ts +++ b/src/data/socialLinkData.ts @@ -1,6 +1,6 @@ -import {type socialLink} from "../components/Footer"; +import {type SocialLink} from "../untils/SocialLink"; -export const socialLinkData: socialLink[] = [ +export const socialLinkData: SocialLink[] = [ { icon: "fab fa-github", url: "" diff --git a/src/pages/About.tsx b/src/pages/About.tsx index 764c841..2c4a3e5 100644 --- a/src/pages/About.tsx +++ b/src/pages/About.tsx @@ -3,37 +3,6 @@ import { aboutProps } from '../data/experienceData'; import style from '@styles/About.module.scss'; -export interface AboutProps { - coreValues: CoreValue[]; - technicalArsenal: TechnicalArsenal[]; - professionalJourney: ProfessionalJourney[]; - testimonials: Testimonial[]; -} - -export interface CoreValue { - title: string; - description: string; - icon: string; -} - -export interface ProfessionalJourney { - title: string; - description: string; - duration: string; -} - -export interface TechnicalArsenal { - title: string; - icon: string; - skills: string[]; -} - -export interface Testimonial { - content: string; - author: string; - position: string; -} - export const About = () => { const data = aboutProps; return ( diff --git a/src/untils/AboutProps.ts b/src/untils/AboutProps.ts new file mode 100644 index 0000000..fef1292 --- /dev/null +++ b/src/untils/AboutProps.ts @@ -0,0 +1,30 @@ +export interface AboutProps { + coreValues: CoreValue[]; + technicalArsenal: TechnicalArsenal[]; + professionalJourney: ProfessionalJourney[]; + testimonials: Testimonial[]; +} + +export interface CoreValue { + title: string; + description: string; + icon: string; +} + +export interface ProfessionalJourney { + title: string; + description: string; + duration: string; +} + +export interface TechnicalArsenal { + title: string; + icon: string; + skills: string[]; +} + +export interface Testimonial { + content: string; + author: string; + position: string; +} \ No newline at end of file diff --git a/src/untils/SkillCardProps.ts b/src/untils/SkillCardProps.ts new file mode 100644 index 0000000..d12eba2 --- /dev/null +++ b/src/untils/SkillCardProps.ts @@ -0,0 +1,10 @@ +export interface Skill { + name: string; + icon: React.ReactNode; // Or string if using CSS classes for icons +} + +export interface SkillCardProps { + categoryTitle: string; + categoryIcon: React.ReactNode; // Or string + skills: Skill[]; +} \ No newline at end of file diff --git a/src/untils/SocialLink.ts b/src/untils/SocialLink.ts new file mode 100644 index 0000000..899e5f0 --- /dev/null +++ b/src/untils/SocialLink.ts @@ -0,0 +1,4 @@ +export interface SocialLink { + icon: string; + url: string; +} \ No newline at end of file