Skip to content

Commit 9a9ac1a

Browse files
committed
feat: 个人介绍
1 parent c12d5e9 commit 9a9ac1a

File tree

4 files changed

+38
-0
lines changed

4 files changed

+38
-0
lines changed

config/introduction.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
- 欢迎来到我的博客,我是zhw,这里是记录我生活的地方,如果对你有所帮助,欢迎star.
2+
3+
- 我来自重庆邮电大学,目前正在学习前端,参与校级组织[红岩网校](https://redrock.team/).
4+
5+
- 本博客参考了[Shiro](https://github.com/innei/Shiro),感谢大佬的开源.

src/app/(app)/about/layout.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import type { Metadata } from 'next';
2+
import type { PropsWithChildren } from 'react';
3+
4+
import { NormalContainer } from '@/components/layout/container/Normal';
5+
6+
export const metadata: Metadata = {
7+
title: '关于我',
8+
};
9+
10+
export default async function (props: PropsWithChildren) {
11+
return <NormalContainer>{props.children}</NormalContainer>;
12+
}

src/app/(app)/about/page.tsx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import { NoteMarkdown } from '../notes/[nid]/pageExtra';
2+
3+
import content from '~/introduction.md';
4+
5+
export default function About() {
6+
return (
7+
<div>
8+
<header className="prose font-mono !mb-2">
9+
<h2>关于我</h2>
10+
</header>
11+
12+
<main className="flex w-full flex-col with-indent with-serif prose relative max-w-full">
13+
<NoteMarkdown text={content} />
14+
</main>
15+
</div>
16+
);
17+
}

src/styles/md.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,3 +143,7 @@
143143
border-radius: 0.0625rem;
144144
color: var(--accent-color) !important;
145145
}
146+
147+
.prose :where(ul > li):not(:where([class~="not-prose"],[class~="not-prose"] *))::marker {
148+
color: var(--accent-color) !important;
149+
}

0 commit comments

Comments
 (0)