- Created `src/pages/contact.astro` and `src/pages/zh/contact.astro` to support multilingual contact functionality. - Introduced `contactIntents` and `contactMethods` dynamic configurations in `src/lib/data/contact.ts` for streamlined content management. - Designed responsive and localized layouts with enhanced UX for both languages.
45 lines
1.2 KiB
TypeScript
45 lines
1.2 KiB
TypeScript
import type { ContactIntent, ContactMethod } from '@/types';
|
|
|
|
export const contactIntents: ContactIntent[] = [
|
|
{
|
|
id: 'remote-role',
|
|
title: {
|
|
en: 'Remote Role',
|
|
zh: '远程岗位沟通',
|
|
},
|
|
description: {
|
|
en: 'Preferred for senior frontend/full-stack roles on complex products and systems.',
|
|
zh: '优先沟通资深前端/全栈远程岗位,偏好复杂产品与系统场景。',
|
|
},
|
|
},
|
|
{
|
|
id: 'project-collaboration',
|
|
title: {
|
|
en: 'Project Collaboration',
|
|
zh: '项目合作咨询',
|
|
},
|
|
description: {
|
|
en: 'Available for scoped project work involving architecture, delivery, and optimization.',
|
|
zh: '可承接范围明确的项目合作,包括架构设计、交付落地与性能优化。',
|
|
},
|
|
},
|
|
];
|
|
|
|
export const contactMethods: ContactMethod[] = [
|
|
{
|
|
label: { en: 'Email', zh: '邮箱' },
|
|
value: 'zhaoguiyang18@gmail.com',
|
|
href: 'mailto:zhaoguiyang18@gmail.com',
|
|
},
|
|
{
|
|
label: { en: 'GitHub', zh: 'GitHub' },
|
|
value: 'github.com/zguiyang',
|
|
href: 'https://github.com/zguiyang',
|
|
},
|
|
{
|
|
label: { en: 'LinkedIn', zh: 'LinkedIn' },
|
|
value: 'linkedin.com/in/zhaoguiyang',
|
|
href: 'https://linkedin.com/in/zhaoguiyang',
|
|
},
|
|
];
|