Skip to content

Commit afa3c64

Browse files
committed
style: polish /about/
1 parent 721e98b commit afa3c64

File tree

7 files changed

+278
-252
lines changed

7 files changed

+278
-252
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"@shikijs/twoslash": "^3.12.2",
5151
"@types/react": "^19.1.8",
5252
"@types/react-dom": "^19.1.6",
53-
"astro": "5.13.8",
53+
"astro": "5.13.9",
5454
"astro-remote": "^0.3.4",
5555
"astro-typst": "0.12.1",
5656
"bilibili-bv-av-convert": "^1.0.0",
@@ -63,7 +63,7 @@
6363
"gridsome-remark-figure-caption": "^1.2.2",
6464
"hastscript": "^9.0.1",
6565
"iso-639-1": "^3.1.5",
66-
"jsdom": "^26.1.0",
66+
"jsdom": "^27.0.0",
6767
"jszip": "^3.10.1",
6868
"less": "4.3.0",
6969
"logical-astro-tweet": "^0.0.5",
@@ -86,7 +86,7 @@
8686
"remark-math": "^6.0.0",
8787
"remark-ruby": "^0.4.0",
8888
"remark-samp-kbd": "^0.1.3",
89-
"sharp": "^0.34.3",
89+
"sharp": "^0.34.4",
9090
"shiki-git-diff": "^0.0.4",
9191
"spoiled": "^0.4.0",
9292
"svelte": "^5.38.10",
@@ -97,7 +97,7 @@
9797
},
9898
"devDependencies": {
9999
"@biomejs/biome": "^2.2.4",
100-
"@iconify/json": "^2.2.385",
100+
"@iconify/json": "^2.2.386",
101101
"@iconify/utils": "^3.0.2",
102102
"@types/hast": "^3.0.4",
103103
"@types/jsdom": "^21.1.7",

pnpm-lock.yaml

Lines changed: 246 additions & 232 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/Pn.astro

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,22 @@
11
---
22
// 专名号(Proper Name/Noun)
3+
export type Props = {
4+
title?: string;
5+
}
6+
7+
const { title = "专名号" } = Astro.props;
38
---
49

5-
<span class="proper-noun outer"><span class="inner"><slot /></span></span><style lang="less">
10+
<u class="proper-noun outer" title={title}><span class="inner"><slot /></span></u><style lang="less">
611
.proper-noun.outer {
12+
// discard u
13+
text-decoration: none;
14+
text-decoration-style: none;
715
// margin-inline: 0.5px;
816
> .inner {
917
margin-inline: -1px;
1018
}
11-
border-block-end: 1px solid;
19+
border-block-end: 1.6px solid;
1220
border-inline: 0;
1321
box-sizing: content-box;
1422
& + & {

src/pages/about.mdx

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,28 +11,27 @@ import Del from "@/components/diff/Del.astro";
1111
import Pn from "@/components/Pn.astro";
1212

1313
import "@/styles/a.less";
14+
import "@/styles/article.less";
15+
import "@/styles/manchu.less";
1416

15-
{/* <Article> */}
16-
{/* <article class="text-1.3em!" id="post"> */}
17+
<style set:html="article#post { font-size: 1.25em; }"></style>
1718

1819
# 关于
1920

2021
欢迎打开新世界的大门!这里是 [OverflowCat](https://github.com/OverflowCat) 的博客。我在这里分享编程、光学、测控、语言和生活。
2122

22-
<br />
23-
<section class="write-vertical-right max-h-57ch overflow-x-auto w-full">
23+
<section lang="zh-Hant" class="write-vertical-right max-h-[min(50ch,75svh)] text-justify overflow-x-auto w-full font-serif text-1.1em line-height-175% my-8">
2424

2525
## 自云
2626

27-
長於<Pn>淮左</Pn>,負笈<Pn>京畿</Pn>。身兼南北之氣,血承<Pn>燕</Pn><Pn>蜀</Pn>之風。<Pn>廣陵</Pn>音韻,<Pn>川北</Pn>言語,略通一二。能操<Pn>珠申</Pn>遺響,間作<Pn>東瀛</Pn>弦歌。學在<Pn>北航</Pn>,行將卒業。性耽前端之術,欲築賽博<Pn>蘭臺</Pn>;偶窺機巧之微,或躬耕於方寸。若見如左之屬,皆某化形耳:曰 <Pn>:en[OverflowCat]</Pn>,曰<Pn>前端之貓</Pn>,曰<Pn>溢出貓</Pn>,曰<Pn>:mnc[ᡥᠠᡳᡤᡳᠶᠠ ᡥᠠᠯᠠ·ᠨᡝᡴᠣ]</Pn>。
27+
長於<Pn>淮左</Pn>,負笈<Pn>京畿</Pn>。身兼南北之氣,血承<Pn>燕</Pn><Pn>蜀</Pn>之風。[<Pn>廣陵</Pn>音韻](https://zh.wikipedia.org/wiki/%E6%89%AC%E5%B7%9E%E8%AF%9D),<Pn>川北</Pn>言語,略通一二。能操<Pn>珠申</Pn>遺響,間作<Pn>東瀛</Pn>弦歌。學在<Pn>北航</Pn>,行將卒業。性耽前端之術,欲築[賽博<Pn>蘭臺</Pn>](https://saveweb.org/);偶窺[機巧](https://en.wikipedia.org/wiki/Embedded_system)之微,或躬耕於方寸。若見如左之屬,皆某化形耳:曰 <Pn>:en[OverflowCat]</Pn>,曰<Pn>前端之貓</Pn>,曰<Pn>溢出貓</Pn>,曰<Pn>:mnc[ᡥᠠᡳᡤᡳᠶᠠ ᡥᠠᠯᠠ·ᠨᡝᡴᠣ]</Pn>。
2828

2929
## 此间
3030

31-
觀吾域名之玄,乃藏字於其中,是爲 domain hack。所謂「<span lang="zh"><ruby>新<rt>xīn</rt></ruby><ruby>世<rt>shì</rt></ruby><ruby>界<rt>jiè</rt></ruby><ruby>的<rt>de</rt></ruby><ruby>大<rt>dà</rt></ruby><ruby>門<rt>mén</rt></ruby></span>」者,非獨新異之途,亦啓牖之鑰。冀拙文若晨星點夜,微光可照君懷。髫年惯听叩首之机声,今铸字为碑,恍闻铿然。若欲覽新墨,當循 RSS。新篇既就,自當飛驛相報。
31+
觀吾域名之玄,乃藏字於其中,是爲 domain hack。所謂「<span lang="zh"><ruby>新<rt>xīn</rt></ruby><ruby>世<rt>shì</rt></ruby><ruby>界<rt>jiè</rt></ruby><ruby>的<rt>de</rt></ruby><ruby>大<rt>dà</rt></ruby><ruby>門<rt>mén</rt></ruby></span>」者,非獨新異之途,亦啓牖之鑰。冀拙文若晨星點夜,微光可照君懷。髫年惯听叩首之机声,今铸[](https://atelier-anchor.com/typefaces/sart-sans)为碑,恍闻铿然。若欲覽新墨,當循 RSS。新篇既就,自當飛驛相報。
3232

33-
斯棧以{天星}^(Astro)爲基,託身於 GitHub 之頁。源碼盡藏[部落格之倉](https://github.com/OverflowCat/blog)。篇末可按圖索驥,抵各文章本源。有疑竇則啓{疑敘}^(issue),或{復刻}^(fork)呈樣,或灑潘江於篇末,或魚傳尺素,皆見納焉。
33+
斯棧以[{天星}^(Astro)](https://astro.build/)爲基,委身於 <Pn>GitHub {}^(Pages)</Pn>。源碼盡藏[<span class="bn">部落格</span>之倉](https://github.com/OverflowCat/blog)。篇末可按圖索驥,抵各文本源。有疑竇則啓{疑敘}^(issue),或{復刻}^(fork)呈樣,或灑<Pn title="人名">潘</Pn><Pn title="地名">江</Pn>於篇末,或魚[傳尺素](mailto:[email protected]),皆見納焉。
3434
</section>
35-
<br />
3635

3736
## 关于本站(白话文版)
3837

@@ -46,6 +45,3 @@ import "@/styles/a.less";
4645
The blog system <Del>will be changed in the near future</Del> <Del>is under construction</Del>
4746
<Add>has been <a href="/astro/migration">fully migrated to Astro</a></Add>, and comments <Del>will be added later</Del> <Add>has been added</Add>.
4847
*/}
49-
50-
{/* </article> */}
51-
{/* </Article> */}

src/scripts/remark/custom.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ export const myRemarkPlugin: RemarkPlugin = () => {
4545
lang: "mnc",
4646
};
4747
break;
48+
case "bn":
49+
name = "span";
50+
props = {
51+
className: ["bn"],
52+
};
53+
break;
4854
case "up":
4955
name = "span";
5056
props = {

src/styles/article.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ article#post {
236236
@container html (min-inline-size: 800px) {
237237
article#post {
238238
margin-block: 10px;
239-
margin-inline: 5px;
239+
// margin-inline: 5px;
240240
padding-block: 8px;
241241
padding-inline: 24px;
242242
}
@@ -245,7 +245,7 @@ article#post {
245245
@container html (min-inline-size: 1200px) {
246246
article#post {
247247
margin-block: 14px;
248-
margin-inline: 7px;
248+
// margin-inline: 7px;
249249
padding-block: 8px;
250250
padding-inline: 32px;
251251
}

uno.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default defineConfig({
1212
content: {
1313
pipeline: {
1414
include: [
15-
/\.(vue|svelte|[jt]sx|mdx?|astro|elm|php|typ|html)($|\?)/,
15+
/\.(vue|svelte|[jt]sx?|mdx?|astro|elm|php|typ|html)($|\?)/,
1616
]
1717
}
1818
},
@@ -28,6 +28,8 @@ export default defineConfig({
2828
["upright", { "text-combine-upright": "all" }],
2929
["yoko", { "text-combine-upright": "all" }],
3030

31+
["bn", { "text-decoration-style": "wavy", "text-decoration-line": "underline" }],
32+
3133
// overflow
3234
[/overflow-(inline|block)-(hidden|auto|scroll)/, function* ([, axis, type]) {
3335
yield {

0 commit comments

Comments
 (0)