commit b98c6da3a68fcccf3c5bf96384029d59b76c7697 Author: biss Date: Wed Mar 25 19:59:31 2026 +0800 first init diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml new file mode 100644 index 0000000..29b4a83 --- /dev/null +++ b/.gitea/workflows/deploy.yml @@ -0,0 +1,18 @@ +name: Vercel Deploy + +on: [push] + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Deploy to Vercel + uses: amondnet/vercel-action@v25 # 这是一个非常好用的封装 + with: + vercel-token: ${{ secrets.VERCEL_TOKEN }} # Vercel 设置里的 API Token + vercel-org-id: ${{ secrets.ORG_ID }} # 项目 .vercel/project.json 里的 orgId + vercel-project-id: ${{ secrets.PROJECT_ID }} # 项目 .vercel/project.json 里的 projectId + working-directory: ./ # 你的 HTML 所在目录 + vercel-args: '--prod' # 直接推送到生产环境 \ No newline at end of file diff --git a/css/modern.css b/css/modern.css new file mode 100644 index 0000000..0ab71d4 --- /dev/null +++ b/css/modern.css @@ -0,0 +1,40 @@ +/* style-modern.css */ +body { + background-color: #f8f9fa; + font-family: "PingFang SC", "Microsoft YaHei", sans-serif; + padding: 40px; + line-height: 1.8; +} + +.letter-container { + max-width: 800px; + margin: 0 auto; + background: white; + padding: 60px 80px; + box-shadow: 0 2px 10px rgba(0,0,0,0.05); +} + +.salutation { + font-size: 1.2rem; + margin-bottom: 25px; +} + +.content p { + text-indent: 2em; + margin-bottom: 15px; +} + +.wish-prefix { + text-indent: 2em; + margin-bottom: 0; +} + +.wish-suffix { + font-weight: bold; + margin-top: 5px; +} + +.footer { + text-align: right; + margin-top: 60px; +} \ No newline at end of file diff --git a/css/traditional.css b/css/traditional.css new file mode 100644 index 0000000..37f667c --- /dev/null +++ b/css/traditional.css @@ -0,0 +1,44 @@ +/* style-traditional.css */ +body { + background-color: #e8e3d3; + display: flex; + justify-content: center; + padding: 40px; +} + +.letter-container { + background-color: #fdfaf2; + padding: 40px; + border: 1px solid #d4c4a8; + /* 核心:竖排文字 */ + writing-mode: vertical-rl; + text-orientation: mixed; + height: 600px; + font-family: "Noto Serif SC", "STSong", serif; +} + +.salutation { + margin-left: 20px; /* 竖排时的间距 */ + font-size: 1.4rem; +} + +.content p { + margin-left: 15px; + /* 竖排时首行缩进 */ + padding-top: 2em; +} + +.wish-prefix { + padding-top: 2em; +} + +.wish-suffix { + font-weight: bold; +} + +.footer { + margin-right: 40px; + display: flex; + flex-direction: column; + justify-content: flex-end; +} \ No newline at end of file diff --git a/css/vintage.css b/css/vintage.css new file mode 100644 index 0000000..b682b89 --- /dev/null +++ b/css/vintage.css @@ -0,0 +1,37 @@ +/* style-vintage.css */ +body { + background-color: #cfd8dc; + padding: 20px; +} + +.letter-container { + max-width: 700px; + margin: 0 auto; + background: #fff; + /* 模拟红格线 */ + background-image: linear-gradient(#f1f1f1 1px, transparent 1px), + linear-gradient(90deg, rgba(255,0,0,0.1) 1px, transparent 1px); + background-size: 100% 2.5em; /* 行高需与此匹配 */ + line-height: 2.5em; + padding: 50px; + border: 2px solid #b71c1c; + font-family: "SimSun", "STSong", serif; +} + +.salutation { + border-bottom: 2px solid #b71c1c; /* 模拟标题线 */ + display: inline-block; +} + +.content p { + text-indent: 2em; +} + +.wish-suffix { + text-decoration: underline; +} + +.footer { + text-align: right; + color: #b71c1c; /* 怀旧红色字体 */ +} \ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 0000000..2c84649 --- /dev/null +++ b/index.html @@ -0,0 +1,27 @@ + + + + + 书信预览 + + +
+

尊敬的[姓名/称谓]:

+ +
+

展信佳。自上次一别,已有数月之久。每念及过往共同探讨之时光,心中倍感亲切。今日致信,旨在询问近况,并就此前所述之合作事宜,希望能有进一步之探讨。

+

岁序更新,愿君事事顺遂,阖家安康。

+
+ +
+

此致

+

敬礼!

+
+ + +
+ + \ No newline at end of file