commit
b98c6da3a6
5 files changed
+166
No files matched your search
@@ -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' # 直接推送到生产环境
|
||||
@@ -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;
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
Loaded 3 of 5 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user