Skip to content

Commit

Permalink
4 commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jiatianzhi committed Jan 19, 2024
1 parent 55ffd46 commit 3f494bf
Show file tree
Hide file tree
Showing 17 changed files with 87 additions and 101 deletions.
2 changes: 1 addition & 1 deletion data/features.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const FEATURES: FeatureItem[] = [
{
title: translate({
id: 'homepage.feature.spider',
message: '深度学习',
message: 'Deep Learning',
}),
text: (
<Translate>
Expand Down
2 changes: 1 addition & 1 deletion data/resources.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const friends: Resource[] = Friends.map(f => {

export const resourceData: ResourceCategory[] = [
{
name: '友链 👨‍💻',
name: 'Friends 👨‍💻',
resources: friends,
},
{
Expand Down
50 changes: 33 additions & 17 deletions data/social.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ export type Social = {
zhihu?: string
email?: string
discord?: string
bilibili?: string
weibo?: string
}

type SocialValue = {
Expand All @@ -20,15 +22,17 @@ type SocialValue = {

const social: Social = {
github: 'https://github.com/jiatianzhi',
twitter: 'https://twitter.com/kuizuo',
juejin: 'https://juejin.cn/user/1565318510545901',
// twitter: 'https://twitter.com/kuizuo',
// juejin: 'https://juejin.cn/user/1565318510545901',
csdn: 'https://blog.csdn.net/kuizuo12',
qq: 'https://img.kuizuo.cn/qq.png',
wx: 'https://img.kuizuo.cn/wechat.png',
zhihu: 'https://www.zhihu.com/people/jiatianzhi',
// cloudmusic: 'https://music.163.com/#/user/home?id=1333010742',
email: 'mailto:[email protected]',
discord: 'https://discord.gg/M8cVcjDxkz',
// discord: 'https://discord.gg/M8cVcjDxkz',
bilibili: 'https://space.bilibili.com/249801950',
weibo: 'https://weibo.com/jiatianzhi',
}

const socialSet: Record<keyof Social, SocialValue> = {
Expand All @@ -40,10 +44,22 @@ const socialSet: Record<keyof Social, SocialValue> = {
},
zhihu: {
href: social.zhihu,
title: '知乎',
title: 'Zhihu',
icon: 'ri:zhihu-line',
color: '#1772F6',
},
bilibili: {
href: social.bilibili,
title: 'Bilibili',
icon: 'ri:bilibili-line',
color: '#1296db',
},
weibo: {
href: social.weibo,
title: 'Weibo',
icon: 'ri:weibo-line',
color: '#C20C0C',
},
juejin: {
href: social.juejin,
title: '掘金',
Expand All @@ -62,6 +78,12 @@ const socialSet: Record<keyof Social, SocialValue> = {
icon: 'ri:discord-line',
color: '#5A65F6',
},
email: {
href: social.email,
title: 'E-Mail',
icon: 'ri:mail-line',
color: '#D44638',
},
qq: {
href: social.qq,
title: 'QQ',
Expand All @@ -70,28 +92,22 @@ const socialSet: Record<keyof Social, SocialValue> = {
},
wx: {
href: social.wx,
title: '微信',
title: 'WeChat',
icon: 'ri:wechat-2-line',
color: '#07c160',
},
email: {
href: social.email,
title: '邮箱',
icon: 'ri:mail-line',
color: '#D44638',
},
cloudmusic: {
href: social.cloudmusic,
title: '网易云',
icon: 'ri:netease-cloud-music-line',
color: '#C20C0C',
},
rss: {
href: '/blog/rss.xml',
title: 'RSS',
icon: 'ri:rss-line',
color: '#FFA501',
},
// rss: {
// href: '/blog/rss.xml',
// title: 'RSS',
// icon: 'ri:rss-line',
// color: '#FFA501',
// },
}

export default socialSet
2 changes: 1 addition & 1 deletion docs/skill/introduction.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
id: introduction
slug: /skill
title: 技术笔记
title: Notes
keywords:
- 前端
- 后端
Expand Down
49 changes: 24 additions & 25 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { themes } from 'prism-react-renderer'
import { GiscusConfig } from './src/components/Comment'
import social from './data/social'

const beian = '闽ICP备2020017848号-2'
const beian1 = '闽公网安备35021102000847号'
const beian = '黑ICP备2021004587号-2'
const beian1 = '黑公网安备35021102000847号'

const config: Config = {
title: 'Tianzhi Jia (贾添植)', //网页标签标题
Expand All @@ -15,7 +15,7 @@ const config: Config = {
organizationName: 'jiatianzhi',
projectName: 'blog',
customFields: {
bio: '锦衣未加身,独在夜中行。',
bio: 'Keep Learning is All We Need.',
description:
'是一个由愧怍创建的个人博客,主要分享编程开发知识和项目,该网站基于 React 驱动的静态网站生成器 Docusaurus 构建。',
},
Expand Down Expand Up @@ -53,28 +53,28 @@ const config: Config = {
hideOnScroll: true,
items: [
{
label: '笔记',
label: 'Notes',
position: 'right',
to: 'docs/skill',
},
{
label: '博客',
label: 'Blogs',
position: 'right',
to: 'blog',
},
{
label: '项目',
label: 'Projects',
position: 'right',
to: 'project',
},
{
label: '更多',
label: 'More',
position: 'right',
items: [
{ label: '归档', to: 'blog/archive' },
{ label: '资源', to: 'resources' },
{ label: '友链', to: 'friends' },
{ label: '工具推荐', to: 'docs/tools' },
{ label: 'Archive', to: 'blog/archive' },
{ label: 'Friends', to: 'friends' },
{ label: 'Links', to: 'resources' },
{ label: 'Recommended Tools', to: 'docs/tools' },
],
},
{
Expand All @@ -87,30 +87,29 @@ const config: Config = {
style: 'dark',
links: [
{
title: '学习',
title: 'Study',
items: [
{ label: '博客', to: 'blog' },
{ label: '归档', to: 'blog/archive' },
{ label: '笔记', to: 'docs/skill' },
{ label: '项目', to: 'project' },
{ label: '前端示例', to: 'https://example.kuizuo.cn' },
{ label: 'Notes', to: 'docs/skill' },
{ label: 'Blogs', to: 'blog' },
{ label: 'Archive', to: 'blog/archive' },
{ label: 'Projects', to: 'project' },
],
},
{
title: '社交媒体',
title: 'Social Media',
items: [
{ label: '关于我', to: '/about' },
{ label: 'GitHub', href: social.github.href },
{ label: 'Twitter', href: social.twitter.href },
{ label: '掘金', href: social.juejin.href },
{ label: 'Discord', href: social.discord.href },
{ label: 'Zhihu', href: social.zhihu.href },
{ label: 'Bilibili', href: social.bilibili.href },
{ label: 'Weibo', href: social.weibo.href },
],
},
{
title: '更多',
title: 'More',
items: [
{ label: '友链', position: 'right', to: 'friends' },
{ label: '导航', position: 'right', to: 'resources' },
{ label: 'About', to: '/about' },
{ label: 'Friends', position: 'right', to: 'friends' },
{ label: 'Links', position: 'right', to: 'resources' },
{
html: `
<a href="https://docusaurus.io/zh-CN/" target="_blank" rel="noreferrer noopener">
Expand Down
4 changes: 2 additions & 2 deletions i18n/en/code.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"message": "Look More"
},
"homepage.project.title": {
"message": "Project Showcase"
"message": "Projects Showcase"
},
"homepage.feature.title": {
"message": "Feature"
Expand All @@ -42,7 +42,7 @@
"message": "posts"
},
"theme.project.title": {
"message": "Project Showcase"
"message": "Projects Showcase"
},
"theme.project.description": {
"message": "Here is the best proof of my hard practice and application in the field of technology."
Expand Down
16 changes: 8 additions & 8 deletions i18n/zh/code.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,11 @@
"description": "The ARIA label for close button of announcement bar"
},
"theme.blog.archive.title": {
"message": "历史博文",
"message": "Archive",
"description": "The page & hero title of the blog archive page"
},
"theme.blog.archive.description": {
"message": "历史博文",
"message": "Archive",
"description": "The page & hero description of the blog archive page"
},
"theme.BackToTopButton.buttonAriaLabel": {
Expand All @@ -117,11 +117,11 @@
"description": "The ARIA label for the blog pagination"
},
"theme.blog.paginator.newerEntries": {
"message": "较新的博文",
"message": "Newer Entries",
"description": "The label used to navigate to the newer blog posts page (previous page)"
},
"theme.blog.paginator.olderEntries": {
"message": "较旧的博文",
"message": "Older Entries",
"description": "The label used to navigate to the older blog posts page (next page)"
},
"theme.blog.post.readingTime.plurals": {
Expand Down Expand Up @@ -199,11 +199,11 @@
"description": "The ARIA label for the docs pagination"
},
"theme.docs.paginator.previous": {
"message": "上一页",
"message": "Previous",
"description": "The label used to navigate to the previous doc"
},
"theme.docs.paginator.next": {
"message": "下一页",
"message": "Next",
"description": "The label used to navigate to the next doc"
},
"theme.DocSidebarItem.toggleCollapsedCategoryAriaLabel": {
Expand Down Expand Up @@ -305,7 +305,7 @@
"message": "查看全部 {count} 个结果"
},
"theme.SearchBar.label": {
"message": "搜索",
"message": "Search",
"description": "The ARIA label and placeholder for search button"
},
"theme.SearchPage.documentsFound.plurals": {
Expand All @@ -325,7 +325,7 @@
"description": "The placeholder for search page input"
},
"theme.SearchPage.inputLabel": {
"message": "搜索",
"message": "Search",
"description": "The ARIA label for search page input"
},
"theme.SearchPage.algoliaLabel": {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/_components/BlogSection/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export default function BlogSection(): JSX.Element {
return (
<section className={clsx('container padding-vert--sm', styles.blogContainer)}>
<SectionTitle icon="ri:quill-pen-line" href={'/blog'}>
<Translate id="homepage.blog.title">近期博客</Translate>
<Translate id="homepage.blog.title">Recent Blogs</Translate>
</SectionTitle>
<div ref={ref} className={clsx('row', styles.list)}>
{posts.map((postGroup, index) => (
Expand Down
2 changes: 1 addition & 1 deletion src/pages/_components/FeaturesSection/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default function FeaturesSection(): JSX.Element {
return (
<section className={clsx(styles.featureContainer, 'container padding-vert--sm')}>
<SectionTitle icon={'ri:map-pin-user-line'}>
<Translate id="homepage.feature.title">个人特点</Translate>
<Translate id="homepage.feature.title">Feature</Translate>
</SectionTitle>
<div className={clsx('row', styles.features)}>
{features.map((props, idx) => (
Expand Down
8 changes: 4 additions & 4 deletions src/pages/_components/Hero/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function Name() {
e.currentTarget.style.setProperty('--y', `${e.clientY}px`)
}}
>
<Translate id="homepage.hero.greet">你好! 我是</Translate>
<Translate id="homepage.hero.greet">Hello! I'm </Translate>
<span
className={styles.name}
onMouseMove={e => {
Expand All @@ -93,7 +93,7 @@ function Name() {
e.currentTarget.style.setProperty('--mouse-y', `${bounding.y}px`)
}}
>
<Translate id="homepage.hero.name">贾添植</Translate>
<Translate id="homepage.hero.name">Tianzhi Jia</Translate>
</span>
<span className={styles.wave}>👋</span>
</motion.div>
Expand All @@ -107,7 +107,7 @@ export default function Hero() {
<Name />
<motion.p custom={2} initial="hidden" animate="visible" variants={variants}>
<Translate id="homepage.hero.text">
{`锦衣未加身,独在夜中行。`}
{`Keep Learning is All We Need.`}
</Translate>
</motion.p>
<motion.div custom={3} initial="hidden" animate="visible" variants={variants}>
Expand All @@ -124,7 +124,7 @@ export default function Hero() {
<div className={styles.outer}>
<div className={styles.gradient} />
<a className={styles.button} href={'./about'}>
<Translate id="hompage.hero.introduce">自我介绍</Translate>
<Translate id="hompage.hero.introduce">About Me</Translate>
</a>
</div>
</motion.div>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/_components/ProjectSection/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export default function ProjectSection() {
return (
<section className={clsx('container padding-vert--sm', styles.projectContainer)}>
<SectionTitle icon={'ri:projector-line'} href={'/project'}>
<Translate id="homepage.project.title">项目展示</Translate>
<Translate id="homepage.project.title">Projects Showcase</Translate>
</SectionTitle>
<div className={styles.content}>
<div style={{ overflow: 'hidden' }}>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/_components/SectionTitle/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default function SectionTitle({ children, icon, href }: Props) {
</h2>
{href && (
<Link href={href} className={styles.moreButton}>
<Translate id="homepage.lookMore">查看更多</Translate>
<Translate id="homepage.lookMore">Look More</Translate>
<Icon icon="ri:arrow-right-s-line"></Icon>
</Link>
)}
Expand Down
Loading

0 comments on commit 3f494bf

Please sign in to comment.