Files
cv/src/types/index.ts
T
dong.nguyen 58e45bb47c fix(contact): drive social handles and project titles from data
Contact cards spelled out the handle in JSX while profile data already carried the URLs. profile.ts now holds githubHandle and linkedinHandle, and both the homepage section and the Contact page read them. Project titles were rendered straight from data, bypassing the language resolver, so English mode showed Vietnamese titles. Drops the githubUrl placeholder and the unused githubUrl/demoUrl pair from the Project type.
2026-10-18 23:45:26 +07:00

103 lines
1.9 KiB
TypeScript

export type Language = 'en' | 'vi';
export type Palette = 'red' | 'blue';
export type SocialId = 'github' | 'linkedin' | 'email';
export type ProjectCategory =
| "software-engineering"
| "logistics"
| "ai-ml"
| "computer-vision"
| "architecture"
| "experiment";
export interface Project {
id: string;
title: string;
titleEn?: string;
summary: string;
summaryEn?: string;
category: ProjectCategory;
role: string;
technologies: string[];
metrics?: string[];
featured: boolean;
}
export interface ProjectSection {
id: string;
number: number;
title: string;
titleEn?: string;
content: string;
contentEn?: string;
type: "text" | "diagram" | "metrics" | "code";
}
export interface ProjectDetail extends Project {
sections: ProjectSection[];
}
export interface ExperienceEntry {
id: string;
title: string;
titleEn?: string;
company: string;
duration: string;
location?: string;
responsibilities: string[];
responsibilitiesEn?: string[];
achievements?: FeaturedAchievement[];
variant?: 'current' | 'gap';
}
export interface FeaturedAchievement {
id: string;
title: string;
titleEn?: string;
context: string;
contextEn?: string;
technicalWork: string[];
impact: string;
impactEn?: string;
metrics?: string[];
technologies: string[];
featured: boolean;
}
export interface SkillGroup {
title: string;
titleEn?: string;
skills: string[];
}
export interface PhilosophyPoint {
title: string;
titleEn?: string;
description: string;
descriptionEn?: string;
keywords: string[];
}
export interface Profile {
name: string;
nameEn: string;
firstName: string;
lastName: string;
title: string;
titleEn?: string;
tagline: string;
taglineEn?: string;
bio: string;
bioEn?: string;
email: string;
githubUrl: string;
linkedinUrl: string;
githubHandle: string;
linkedinHandle: string;
currentInterests: string[];
roles: string[];
philosophy: PhilosophyPoint[];
}