Skip to content

Commit

Permalink
feat: additional about page for extra authors
Browse files Browse the repository at this point in the history
  • Loading branch information
AmosChenZixuan committed Apr 28, 2024
1 parent dd2c190 commit 23749bc
Show file tree
Hide file tree
Showing 15 changed files with 109 additions and 14 deletions.
25 changes: 25 additions & 0 deletions app/about/[...author]/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { Authors, allAuthors } from 'contentlayer/generated'
import { MDXLayoutRenderer } from 'pliny/mdx-components'
import AuthorLayout from '@/layouts/AuthorLayout'
import { coreContent } from 'pliny/utils/contentlayer'

export const generateStaticParams = async () => {
const paths = allAuthors.map((p) => ({ author: p.slug.split('/') }))
return paths
}

export default async function Page({ params }: { params: { author: string[] } }) {
const locale = params.author[0]
const name = params.author[1]

const authorPage = allAuthors.find((p) => p.slug === `${locale}/${name}`) as Authors
const mainContent = coreContent(authorPage)

return (
<>
<AuthorLayout content={mainContent}>
<MDXLayoutRenderer code={authorPage.body.code} />
</AuthorLayout>
</>
)
}
14 changes: 1 addition & 13 deletions app/tag-data.json
Original file line number Diff line number Diff line change
@@ -1,13 +1 @@
{
"chinese": 1,
"english": 4,
"guide": 4,
"landscape": 1,
"linux": 2,
"note": 3,
"photos": 1,
"react": 1,
"tailwind": 1,
"travel": 1,
"wsl": 1
}
{"chinese":1,"english":4,"guide":4,"landscape":1,"linux":2,"note":3,"photos":1,"react":1,"tailwind":1,"travel":1,"wsl":1}
41 changes: 41 additions & 0 deletions data/authors/en/azuki.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
name: Azuki
avatar: /static/images/about/azuki/avatar.jpg
occupation: Metaverse Indigene
---

#

💜 Hi, My name is Azuki, the **_First_** member of the Azur Family!

- Birthday: April 24th
- Sex: Female
- Age: <s>How rude!<s>20</s></s>
- Hobby: Art, Books, Cosplay, Video Games
- Favourites
- Food: Tiramisu 🍰
- Drink: Americano ☕
- Anime: Sousou no Frieren - Beyond Journey's End ✨
- Animal: Sharks 🦈

---

# Recent Posts

<div className="flex grid grid-cols-2 gap-8">
<img src="/static/gallary/art/ai/azuki/atAquarium.jpeg" className="block rounded" />
<img src="/static/gallary/art/ai/azuki/atCaffe.jpeg" className="block" />
<img src="/static/gallary/art/ai/azuki/lend_a_hand.jpeg" className="block" />
<img src="/static/gallary/art/ai/azuki/closeup.jpeg" className="block" />
<img src="/static/gallary/art/ai/azuki/charming_smile.jpeg" className="block" />
<img src="/static/gallary/art/ai/azuki/purple_jacket.jpeg" className="block" />
</div>

---

# Back in School Days

<div className="flex grid grid-cols-2 gap-8">
<img src="/static/gallary/art/ai/azuki/library.jpeg" className="block" />
<img src="/static/gallary/art/ai/azuki/library2.jpeg" className="block" />
</div>
41 changes: 41 additions & 0 deletions data/authors/zh/azuki.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
name: 梓芸
avatar: /static/images/about/azuki/avatar.jpg
occupation: 元宇宙原住民
---

#

💜 哈喽,我叫梓芸(あずき),是阿梓大家庭的第一位成员哦,请多指教!

- 生日: 四月24号
- 性别: 女
- 年龄: <s>你礼貌吗?<s>20</s></s>
- 兴趣: 艺术, 读书, Cosplay, 打游戏
- 爱好
- 食物: 提拉米苏 🍰
- 饮品: 美式咖啡 ☕
- 动漫: 葬送的芙莉莲 ✨
- 动物: 鲨鱼 🦈

---

# 近照

<div className="flex grid grid-cols-2 gap-8">
<img src="/static/gallary/art/ai/azuki/atAquarium.jpeg" className="block rounded" />
<img src="/static/gallary/art/ai/azuki/atCaffe.jpeg" className="block" />
<img src="/static/gallary/art/ai/azuki/lend_a_hand.jpeg" className="block" />
<img src="/static/gallary/art/ai/azuki/closeup.jpeg" className="block" />
<img src="/static/gallary/art/ai/azuki/charming_smile.jpeg" className="block" />
<img src="/static/gallary/art/ai/azuki/purple_jacket.jpeg" className="block" />
</div>

---

# 校园时光

<div className="flex grid grid-cols-2 gap-8">
<img src="/static/gallary/art/ai/azuki/library.jpeg" className="block" />
<img src="/static/gallary/art/ai/azuki/library2.jpeg" className="block" />
</div>
2 changes: 1 addition & 1 deletion public/locales/en-US/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"menu_projects": "Projects",
"menu_about": "About",
"desc_projects": "Fun stuff built with 🤍",
"desc_about": "Now you know about me",
"desc_about": "Now you know",
"home_title": "Latest",
"home_desc": "Secret Base of AzurOffical",
"label_read_more": "Read more",
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/gallary/art/ai/azuki/atCaffe.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/gallary/art/ai/azuki/closeup.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/gallary/art/ai/azuki/inviting.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/gallary/art/ai/azuki/library.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/gallary/art/ai/azuki/library2.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/images/about/azuki/avatar.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 23749bc

Please sign in to comment.