diff --git a/src/components/AuthorCard.tsx b/src/components/AuthorCard.tsx index 9e65fe8..fce7f36 100644 --- a/src/components/AuthorCard.tsx +++ b/src/components/AuthorCard.tsx @@ -1,4 +1,5 @@ import type { Lang } from '../i18n/utils'; +import { personalInfo } from '@/lib/data'; interface AuthorCardProps { lang: Lang; @@ -14,17 +15,17 @@ interface AuthorCardProps { } export default function AuthorCard({ lang, author }: AuthorCardProps) { - // Default author info + // Default author info based on personalInfo const defaultAuthor = { - name: 'Zhao Guiyang', + name: personalInfo.name, bio: lang === 'zh' - ? '全栈开发者,专注于现代Web技术和用户体验设计。热爱分享技术见解和最佳实践。' - : 'Full-stack developer passionate about modern web technologies and user experience design. Love sharing technical insights and best practices.', - avatar: 'https://avatars.githubusercontent.com/u/24975063?v=4', // You can replace with actual avatar - website: 'https://zhaoguiyang.com', - github: 'https://github.com/zhaoguiyang', - twitter: 'https://twitter.com/zhaoguiyang', - linkedin: 'https://linkedin.com/in/zhaoguiyang' + ? personalInfo.description.zh + : personalInfo.description.en, + avatar: personalInfo.avatar, + website: personalInfo.website || 'https://zhaoguiyang.com', + github: personalInfo.github, + twitter: personalInfo.twitter || 'https://twitter.com/zhaoguiyang', + linkedin: personalInfo.linkedin }; const authorInfo = author || defaultAuthor; diff --git a/src/lib/data.ts b/src/lib/data.ts index 4f1149d..4887909 100644 --- a/src/lib/data.ts +++ b/src/lib/data.ts @@ -1,10 +1,47 @@ export const personalInfo = { - name: "Guiyang Zhao", - location: "Shanghai, China", - avatar: "/images/avatar.jpg", - email: "zhaoguiyang@gmail.com", + name: "Joy Zhao", + location: "China", + avatar: "https://avatars.githubusercontent.com/u/24975063?v=4", + email: "zhaoguiyang18@gmail.com", github: "https://github.com/zhaoguiyang", linkedin: "https://linkedin.com/in/zhaoguiyang", + website: "https://zhaoguiyang.com", + twitter: "https://twitter.com/zhaoguiyang", + position: { + en: "Full Stack Engineer", + zh: "全栈工程师" + }, + description: { + en: "Crafting elegant solutions to complex problems with clean code and innovative thinking. Welcome to my personal dev workspace where ideas come to life.", + zh: "用优雅的代码和创新的思维,为复杂问题打造精致的解决方案。欢迎来到我的个人开发工作空间,这里是想法变为现实的地方。" + }, + about: { + en: [ + "I'm a passionate developer with 5+ years of experience building web applications and contributing to open source projects. I specialize in creating clean, efficient, and maintainable code.", + "When I'm not coding, you can find me exploring new technologies, writing tech articles, or enjoying a fresh cup of coffee while debugging complex problems.", + "I believe in continuous learning and staying up-to-date with the latest industry trends and best practices." + ], + zh: [ + "我是一名充满激情的全栈开发者,专注于构建现代化的Web应用程序。我热爱学习新技术,并将它们应用到实际项目中。", + "在前端开发方面,我精通React、Vue.js和现代JavaScript框架。在后端,我有丰富的Node.js、Python和Go语言开发经验。", + "我相信代码的力量可以改变世界,致力于编写干净、高效且可维护的代码。我也热衷于开源项目,喜欢与开发者社区分享知识和经验。" + ] + }, + stats: { + repositories: 152, + commits: "42K", + contributions: 87 + }, + skills: { + frontend: ["React", "Vue.js", "Angular", "HTML5", "CSS3", "JavaScript/TypeScript"], + backend: ["Node.js", "Express", "Django", "Flask", "Spring Boot"], + database: ["MongoDB", "PostgreSQL", "MySQL", "Redis"], + devops: ["Docker", "Kubernetes", "AWS", "Azure", "CI/CD pipelines"], + mobile: ["React Native", "Flutter"] + }, + terminal: { + username: "joy@dev-workspace" // 更新终端用户名 + } }; export const projects = { diff --git a/src/pages/index.astro b/src/pages/index.astro index 7afe9e7..9991f18 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -35,17 +35,17 @@ const pageTitle = t('site.title');
- Full Stack Engineer 👨💻 + {personalInfo.position.en} 👨💻
- Crafting elegant solutions to complex problems with clean code and innovative thinking. Welcome to my personal dev workspace where ideas come to life. + {personalInfo.description.en}
@@ -61,7 +61,7 @@ const pageTitle = t('site.title');- 全栈工程师 👨💻 + {personalInfo.position.zh} 👨💻
- 用优雅的代码和创新的思维,为复杂问题打造精致的解决方案。欢迎来到我的个人开发工作空间,这里是想法变为现实的地方。 + {personalInfo.description.zh}
@@ -61,7 +61,7 @@ const pageTitle = t('site.title');- 我是一名充满激情的全栈开发者,专注于构建现代化的Web应用程序。我热爱学习新技术,并将它们应用到实际项目中。 -
-- 在前端开发方面,我精通React、Vue.js和现代JavaScript框架。在后端,我有丰富的Node.js、Python和Go语言开发经验。 -
-- 我相信代码的力量可以改变世界,致力于编写干净、高效且可维护的代码。我也热衷于开源项目,喜欢与开发者社区分享知识和经验。 -
+ {personalInfo.about.zh.map((paragraph) => ( ++ {paragraph} +
+ ))}