feat: update public contact info and social visibility
This commit is contained in:
@@ -9,9 +9,9 @@ export default function AuthorCard({ lang, author }: AuthorCardProps) {
|
||||
? personalInfo.description.zh
|
||||
: personalInfo.description.en,
|
||||
avatar: personalInfo.avatar,
|
||||
website: personalInfo.website || 'https://zhaoguiyang.com',
|
||||
website: personalInfo.website,
|
||||
github: personalInfo.github,
|
||||
twitter: personalInfo.twitter || 'https://twitter.com/zhaoguiyang',
|
||||
twitter: personalInfo.twitter,
|
||||
linkedin: personalInfo.linkedin
|
||||
};
|
||||
|
||||
@@ -79,38 +79,9 @@ export default function AuthorCard({ lang, author }: AuthorCardProps) {
|
||||
</a>
|
||||
)}
|
||||
|
||||
{authorInfo.twitter && (
|
||||
<a
|
||||
href={authorInfo.twitter}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="flex items-center justify-center w-8 h-8 rounded-full bg-muted text-muted-foreground hover:bg-blue-500/10 hover:text-blue-500 transition-all duration-200"
|
||||
title="Twitter"
|
||||
>
|
||||
<svg className="w-4 h-4" fill="currentColor" viewBox="0 0 24 24">
|
||||
<path d="M23.953 4.57a10 10 0 01-2.825.775 4.958 4.958 0 002.163-2.723c-.951.555-2.005.959-3.127 1.184a4.92 4.92 0 00-8.384 4.482C7.69 8.095 4.067 6.13 1.64 3.162a4.822 4.822 0 00-.666 2.475c0 1.71.87 3.213 2.188 4.096a4.904 4.904 0 01-2.228-.616v.06a4.923 4.923 0 003.946 4.827 4.996 4.996 0 01-2.212.085 4.936 4.936 0 004.604 3.417 9.867 9.867 0 01-6.102 2.105c-.39 0-.779-.023-1.17-.067a13.995 13.995 0 007.557 2.209c9.053 0 13.998-7.496 13.998-13.985 0-.21 0-.42-.015-.63A9.935 9.935 0 0024 4.59z"/>
|
||||
</svg>
|
||||
</a>
|
||||
)}
|
||||
|
||||
{/* LinkedIn link temporarily hidden
|
||||
{authorInfo.linkedin && (
|
||||
<a
|
||||
href={authorInfo.linkedin}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="flex items-center justify-center w-8 h-8 rounded-full bg-muted text-muted-foreground hover:bg-blue-600/10 hover:text-blue-600 transition-all duration-200"
|
||||
title="LinkedIn"
|
||||
>
|
||||
<svg className="w-4 h-4" fill="currentColor" viewBox="0 0 24 24">
|
||||
<path d="M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"/>
|
||||
</svg>
|
||||
</a>
|
||||
)}
|
||||
*/}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -113,18 +113,16 @@ export const translations = {
|
||||
title: 'Contact Me 📫',
|
||||
warning: 'Since everyone\'s time is valuable, please add a note when contacting me, such as: collaboration, consultation, project requirements, etc. I may not reply to or might ignore messages without notes. Thank you for your cooperation!',
|
||||
methods: [
|
||||
{ label: 'Email', value: 'zhaoguiyang18@gmail.com', icon: 'mail', link: 'mailto:zhaoguiyang18@gmail.com' },
|
||||
{ label: 'WeChat', value: 'JoyCodeing', icon: 'wechat' },
|
||||
{ label: 'QQ', value: '2770723534', icon: 'qq' },
|
||||
{ label: 'Telegram', value: '@joyzhao', icon: 'send', link: 'https://t.me/joyzhao' },
|
||||
{ label: 'Email', value: '2770723534@qq.com', icon: 'mail', link: 'mailto:2770723534@qq.com' },
|
||||
{ label: 'Email (Secondary)', value: 'zhaoguiyang18@outlook.com', icon: 'mail', link: 'mailto:zhaoguiyang18@outlook.com' },
|
||||
{ label: 'WeChat', value: 'Joey_Zhao_dev', icon: 'wechat' },
|
||||
{ label: 'Telegram', value: 'joey_zgy', icon: 'send', link: 'https://t.me/joey_zgy' },
|
||||
],
|
||||
},
|
||||
socials: {
|
||||
title: 'Community & Media 🌐',
|
||||
items: [
|
||||
{ label: 'GitHub', value: 'github.com/zhaoguiyang', icon: 'github', link: 'https://github.com/zhaoguiyang' },
|
||||
{ label: 'Twitter / X', value: '@joyzhao', icon: 'twitter', link: 'https://twitter.com/joyzhao' },
|
||||
{ label: 'LinkedIn', value: 'linkedin.com/in/zhaoguiyang', icon: 'linkedin', link: 'https://linkedin.com/in/zhaoguiyang' },
|
||||
{ label: 'Blog', value: 'zhaoguiyang.site', icon: 'globe', link: 'https://zhaoguiyang.site' },
|
||||
],
|
||||
},
|
||||
@@ -300,18 +298,16 @@ export const translations = {
|
||||
title: '联系我 📫',
|
||||
warning: '由于大家的时间都很宝贵,所以请在联系我时添加备注,如:合作、咨询、项目需求等,不予备注的我可能不会回复或直接忽略,谢谢合作!',
|
||||
methods: [
|
||||
{ label: '邮箱', value: 'zhaoguiyang18@gmail.com', icon: 'mail', link: 'mailto:zhaoguiyang18@gmail.com' },
|
||||
{ label: '微信', value: 'JoyCodeing', icon: 'wechat' },
|
||||
{ label: 'QQ', value: '2770723534', icon: 'qq' },
|
||||
{ label: 'Telegram', value: '@joyzhao', icon: 'send', link: 'https://t.me/joyzhao' },
|
||||
{ label: '邮箱', value: '2770723534@qq.com', icon: 'mail', link: 'mailto:2770723534@qq.com' },
|
||||
{ label: '邮箱(备用)', value: 'zhaoguiyang18@outlook.com', icon: 'mail', link: 'mailto:zhaoguiyang18@outlook.com' },
|
||||
{ label: '微信', value: 'Joey_Zhao_dev', icon: 'wechat' },
|
||||
{ label: 'Telegram', value: 'joey_zgy', icon: 'send', link: 'https://t.me/joey_zgy' },
|
||||
],
|
||||
},
|
||||
socials: {
|
||||
title: '社区与媒体 🌐',
|
||||
items: [
|
||||
{ label: 'GitHub', value: 'github.com/zhaoguiyang', icon: 'github', link: 'https://github.com/zhaoguiyang' },
|
||||
{ label: 'Twitter / X', value: '@joyzhao', icon: 'twitter', link: 'https://twitter.com/joyzhao' },
|
||||
{ label: 'LinkedIn', value: 'linkedin.com/in/zhaoguiyang', icon: 'linkedin', link: 'https://linkedin.com/in/zhaoguiyang' },
|
||||
{ label: 'Blog', value: 'zhaoguiyang.site', icon: 'globe', link: 'https://zhaoguiyang.site' },
|
||||
],
|
||||
},
|
||||
|
||||
@@ -28,17 +28,21 @@ export const contactIntents: ContactIntent[] = [
|
||||
export const contactMethods: ContactMethod[] = [
|
||||
{
|
||||
label: { en: 'Email', zh: '邮箱' },
|
||||
value: 'zhaoguiyang18@gmail.com',
|
||||
href: 'mailto:zhaoguiyang18@gmail.com',
|
||||
value: '2770723534@qq.com',
|
||||
href: 'mailto:2770723534@qq.com',
|
||||
},
|
||||
{
|
||||
label: { en: 'GitHub', zh: 'GitHub' },
|
||||
value: 'github.com/zguiyang',
|
||||
href: 'https://github.com/zguiyang',
|
||||
label: { en: 'Email (Secondary)', zh: '邮箱(备用)' },
|
||||
value: 'zhaoguiyang18@outlook.com',
|
||||
href: 'mailto:zhaoguiyang18@outlook.com',
|
||||
},
|
||||
{
|
||||
label: { en: 'LinkedIn', zh: 'LinkedIn' },
|
||||
value: 'linkedin.com/in/zhaoguiyang',
|
||||
href: 'https://linkedin.com/in/zhaoguiyang',
|
||||
label: { en: 'WeChat', zh: '微信' },
|
||||
value: 'Joey_Zhao_dev',
|
||||
},
|
||||
{
|
||||
label: { en: 'Telegram', zh: 'Telegram' },
|
||||
value: 'joey_zgy',
|
||||
href: 'https://t.me/joey_zgy',
|
||||
},
|
||||
];
|
||||
|
||||
@@ -4,11 +4,11 @@ export const personalInfo: PersonalInfo = {
|
||||
name: 'Joey Zhao',
|
||||
location: 'Hangzhou, China',
|
||||
avatar: 'https://avatars.githubusercontent.com/u/24975063?v=4',
|
||||
email: 'zhaoguiyang18@gmail.com',
|
||||
email: '2770723534@qq.com',
|
||||
github: 'https://github.com/zguiyang',
|
||||
linkedin: 'https://linkedin.com/in/zhaoguiyang',
|
||||
linkedin: '',
|
||||
website: 'https://zhaoguiyang.com',
|
||||
twitter: 'https://twitter.com/zhaoguiyang',
|
||||
twitter: '',
|
||||
position: {
|
||||
en: 'Full-stack Engineer',
|
||||
zh: '全栈工程师',
|
||||
|
||||
@@ -99,7 +99,7 @@ const workStyle = isZh
|
||||
<p class="mt-3 text-muted-foreground">{isZh ? '优先沟通远程岗位机会,其次为项目合作咨询。' : 'Remote role opportunities are prioritized, followed by project collaboration.'}</p>
|
||||
|
||||
<ul class="mt-5 space-y-3 text-sm">
|
||||
{contactMethods.slice(0, 2).map((method) => (
|
||||
{contactMethods.map((method) => (
|
||||
<li class="flex flex-col gap-1 sm:flex-row sm:items-center sm:justify-between border-b border-border/70 pb-3">
|
||||
<span class="font-semibold text-foreground">{method.label[lang]}</span>
|
||||
{method.href ? (
|
||||
@@ -115,6 +115,11 @@ const workStyle = isZh
|
||||
<a href={`${prefix}/contact`} class="inline-flex h-10 items-center rounded-lg bg-primary px-5 text-sm font-semibold text-primary-foreground">{isZh ? '进入完整联系页' : 'Open Full Contact Page'}</a>
|
||||
<a href={`${prefix}/contact#project-collaboration`} class="inline-flex h-10 items-center rounded-lg border border-border px-5 text-sm font-semibold hover:bg-muted">{isZh ? '项目合作入口' : 'Project Collaboration'}</a>
|
||||
</div>
|
||||
|
||||
<div class="mt-5 border-t border-border/70 pt-4 text-sm">
|
||||
<p class="font-semibold text-foreground">GitHub</p>
|
||||
<a href={personalInfo.github} target="_blank" rel="noopener noreferrer" class="text-primary hover:text-primary/80 break-all">{personalInfo.github}</a>
|
||||
</div>
|
||||
</section>
|
||||
</Container>
|
||||
</main>
|
||||
|
||||
@@ -99,7 +99,7 @@ const workStyle = isZh
|
||||
<p class="mt-3 text-muted-foreground">{isZh ? '优先沟通远程岗位机会,其次为项目合作咨询。' : 'Remote role opportunities are prioritized, followed by project collaboration.'}</p>
|
||||
|
||||
<ul class="mt-5 space-y-3 text-sm">
|
||||
{contactMethods.slice(0, 2).map((method) => (
|
||||
{contactMethods.map((method) => (
|
||||
<li class="flex flex-col gap-1 sm:flex-row sm:items-center sm:justify-between border-b border-border/70 pb-3">
|
||||
<span class="font-semibold text-foreground">{method.label[lang]}</span>
|
||||
{method.href ? (
|
||||
@@ -115,6 +115,11 @@ const workStyle = isZh
|
||||
<a href={`${prefix}/contact`} class="inline-flex h-10 items-center rounded-lg bg-primary px-5 text-sm font-semibold text-primary-foreground">{isZh ? '进入完整联系页' : 'Open Full Contact Page'}</a>
|
||||
<a href={`${prefix}/contact#project-collaboration`} class="inline-flex h-10 items-center rounded-lg border border-border px-5 text-sm font-semibold hover:bg-muted">{isZh ? '项目合作入口' : 'Project Collaboration'}</a>
|
||||
</div>
|
||||
|
||||
<div class="mt-5 border-t border-border/70 pt-4 text-sm">
|
||||
<p class="font-semibold text-foreground">GitHub</p>
|
||||
<a href={personalInfo.github} target="_blank" rel="noopener noreferrer" class="text-primary hover:text-primary/80 break-all">{personalInfo.github}</a>
|
||||
</div>
|
||||
</section>
|
||||
</Container>
|
||||
</main>
|
||||
|
||||
Reference in New Issue
Block a user