mirror of
https://github.com/dong-nz/cv.git
synced 2026-11-23 00:20:40 +07:00
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.
This commit is contained in:
1 parent
29a884fd4d
commit
58e45bb47c
5 files changed
+9
-9
No files matched your search
@@ -79,7 +79,7 @@ export function Contact() {
|
|||||||
{strings.contact.github[lang]}
|
{strings.contact.github[lang]}
|
||||||
</div>
|
</div>
|
||||||
<div className="contact-link-sub">
|
<div className="contact-link-sub">
|
||||||
@yourusername
|
@{profile.githubHandle}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</motion.a>
|
</motion.a>
|
||||||
@@ -108,7 +108,7 @@ export function Contact() {
|
|||||||
{strings.contact.linkedin[lang]}
|
{strings.contact.linkedin[lang]}
|
||||||
</div>
|
</div>
|
||||||
<div className="contact-link-sub">
|
<div className="contact-link-sub">
|
||||||
Your Name
|
@{profile.linkedinHandle}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</motion.a>
|
</motion.a>
|
||||||
|
|||||||
@@ -16,6 +16,8 @@ export const profile: Profile = {
|
|||||||
email: "nguyendong_bkdn@yahoo.com",
|
email: "nguyendong_bkdn@yahoo.com",
|
||||||
githubUrl: "https://github.com/dong-nz",
|
githubUrl: "https://github.com/dong-nz",
|
||||||
linkedinUrl: "https://www.linkedin.com/in/dong-nz",
|
linkedinUrl: "https://www.linkedin.com/in/dong-nz",
|
||||||
|
githubHandle: "dong-nz",
|
||||||
|
linkedinHandle: "dong-nz",
|
||||||
currentInterests: [
|
currentInterests: [
|
||||||
"AI in logistics",
|
"AI in logistics",
|
||||||
"Digital twins",
|
"Digital twins",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import type { ProjectDetail } from "@/types";
|
|||||||
export const projects: ProjectDetail[] = [
|
export const projects: ProjectDetail[] = [
|
||||||
{
|
{
|
||||||
id: "iot-dws-integration",
|
id: "iot-dws-integration",
|
||||||
title: "IoT-DWS Integration System",
|
title: "Tích hợp hệ thống IoT-DWS",
|
||||||
titleEn: "IoT-DWS Integration System",
|
titleEn: "IoT-DWS Integration System",
|
||||||
summary:
|
summary:
|
||||||
"Thiết kế và triển khai hệ thống integration giữa IoT devices và DWS (Dimensioning Weighing Scanning) machines cho 16 sortations.",
|
"Thiết kế và triển khai hệ thống integration giữa IoT devices và DWS (Dimensioning Weighing Scanning) machines cho 16 sortations.",
|
||||||
@@ -14,7 +14,6 @@ export const projects: ProjectDetail[] = [
|
|||||||
technologies: ["Java", "HTTP", "HMAC", "RocketMQ", "DWS"],
|
technologies: ["Java", "HTTP", "HMAC", "RocketMQ", "DWS"],
|
||||||
metrics: ["16 sortations deployed"],
|
metrics: ["16 sortations deployed"],
|
||||||
featured: true,
|
featured: true,
|
||||||
githubUrl: "https://github.com/yourusername",
|
|
||||||
sections: [
|
sections: [
|
||||||
{
|
{
|
||||||
id: "context",
|
id: "context",
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ export function ContactPage() {
|
|||||||
</svg>
|
</svg>
|
||||||
<div>
|
<div>
|
||||||
<div className="link-label">{strings.contact.github[lang]}</div>
|
<div className="link-label">{strings.contact.github[lang]}</div>
|
||||||
<div className="contact-link-sub">@dong-nz</div>
|
<div className="contact-link-sub">@{profile.githubHandle}</div>
|
||||||
</div>
|
</div>
|
||||||
</motion.a>
|
</motion.a>
|
||||||
<motion.a
|
<motion.a
|
||||||
@@ -78,7 +78,7 @@ export function ContactPage() {
|
|||||||
</svg>
|
</svg>
|
||||||
<div>
|
<div>
|
||||||
<div className="link-label">{strings.contact.linkedin[lang]}</div>
|
<div className="link-label">{strings.contact.linkedin[lang]}</div>
|
||||||
<div className="contact-link-sub">@dong-nz</div>
|
<div className="contact-link-sub">@{profile.linkedinHandle}</div>
|
||||||
</div>
|
</div>
|
||||||
</motion.a>
|
</motion.a>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
+2
-3
@@ -23,8 +23,6 @@ export interface Project {
|
|||||||
technologies: string[];
|
technologies: string[];
|
||||||
metrics?: string[];
|
metrics?: string[];
|
||||||
featured: boolean;
|
featured: boolean;
|
||||||
githubUrl?: string;
|
|
||||||
demoUrl?: string;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ProjectSection {
|
export interface ProjectSection {
|
||||||
@@ -96,7 +94,8 @@ export interface Profile {
|
|||||||
email: string;
|
email: string;
|
||||||
githubUrl: string;
|
githubUrl: string;
|
||||||
linkedinUrl: string;
|
linkedinUrl: string;
|
||||||
resumeUrl?: string;
|
githubHandle: string;
|
||||||
|
linkedinHandle: string;
|
||||||
currentInterests: string[];
|
currentInterests: string[];
|
||||||
roles: string[];
|
roles: string[];
|
||||||
philosophy: PhilosophyPoint[];
|
philosophy: PhilosophyPoint[];
|
||||||
|
|||||||
Reference in new issue
Block a user