Skip to content

Commit 8d62b05

Browse files
boybookclaude
andcommitted
完善落地页设计 + 添加 GitHub Pages 部署
- Hero: 固定背景 + 两阶段滚动(平移→缩放到120vw) - 毛玻璃蒙层自然渐变过渡 - MC 风格立体凸起按钮(厚度效果) - 配色改为 MC 新版 UI 风格(中性灰调) - 渐变色块背景(Logo 绿/金配色) - 响应式设计优化 - 添加 GitHub Actions 自动部署到 Pages Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 1685356 commit 8d62b05

File tree

9 files changed

+461
-111
lines changed

9 files changed

+461
-111
lines changed

.github/workflows/deploy.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [master]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: pages
15+
cancel-in-progress: true
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
23+
- uses: actions/setup-node@v4
24+
with:
25+
node-version: 20
26+
cache: npm
27+
28+
- run: npm ci
29+
30+
- run: npm run build
31+
32+
- uses: actions/upload-pages-artifact@v3
33+
with:
34+
path: dist
35+
36+
deploy:
37+
needs: build
38+
runs-on: ubuntu-latest
39+
environment:
40+
name: github-pages
41+
url: ${{ steps.deployment.outputs.page_url }}
42+
steps:
43+
- id: deployment
44+
uses: actions/deploy-pages@v4

src/App.vue

Lines changed: 73 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
<template>
22
<div class="app">
33
<HeroSection />
4-
<ServerAddress />
5-
<DownloadButtons />
6-
<TutorialSection />
7-
<FooterSection />
4+
<div class="content-overlay">
5+
<div class="gradient-bg"></div>
6+
<ServerAddress />
7+
<DownloadButtons />
8+
<TutorialSection />
9+
<FooterSection />
10+
</div>
811
</div>
912
</template>
1013

@@ -19,7 +22,71 @@ import FooterSection from './components/FooterSection.vue'
1922
<style scoped>
2023
.app {
2124
min-height: 100vh;
22-
display: flex;
23-
flex-direction: column;
25+
}
26+
27+
.content-overlay {
28+
position: relative;
29+
z-index: 2;
30+
padding-top: 280px;
31+
/* 毛玻璃 */
32+
backdrop-filter: blur(24px);
33+
-webkit-backdrop-filter: blur(24px);
34+
/* 多段渐变背景:顶部从全透明缓慢过渡到半透明深色 */
35+
background: linear-gradient(
36+
to bottom,
37+
rgba(40, 40, 42, 0) 0%,
38+
rgba(40, 40, 42, 0.3) 40px,
39+
rgba(40, 40, 42, 0.6) 100px,
40+
rgba(40, 40, 42, 0.85) 200px,
41+
rgba(40, 40, 42, 0.9) 400px
42+
);
43+
/* 顶部渐变遮罩让 backdrop-filter 也跟着渐入 */
44+
mask-image: linear-gradient(
45+
to bottom,
46+
transparent 0%,
47+
rgba(0,0,0,0.3) 40px,
48+
rgba(0,0,0,0.7) 120px,
49+
black 240px
50+
);
51+
-webkit-mask-image: linear-gradient(
52+
to bottom,
53+
transparent 0%,
54+
rgba(0,0,0,0.3) 40px,
55+
rgba(0,0,0,0.7) 120px,
56+
black 240px
57+
);
58+
}
59+
60+
/* 巨大模糊渐变色块背景 */
61+
.gradient-bg {
62+
position: absolute;
63+
inset: 0;
64+
z-index: -1;
65+
pointer-events: none;
66+
background:
67+
/* 左上:Logo 绿色调 */
68+
radial-gradient(
69+
ellipse 80% 60% at 10% 8%,
70+
rgba(62, 138, 46, 0.18) 0%,
71+
transparent 70%
72+
),
73+
/* 右侧偏中:Logo 黄/金色调 */
74+
radial-gradient(
75+
ellipse 70% 50% at 85% 30%,
76+
rgba(200, 160, 40, 0.12) 0%,
77+
transparent 70%
78+
),
79+
/* 中下:深绿微光 */
80+
radial-gradient(
81+
ellipse 90% 50% at 40% 75%,
82+
rgba(46, 100, 60, 0.14) 0%,
83+
transparent 70%
84+
),
85+
/* 右下角:暖橙微光 */
86+
radial-gradient(
87+
ellipse 50% 40% at 90% 90%,
88+
rgba(180, 100, 40, 0.08) 0%,
89+
transparent 70%
90+
);
2491
}
2592
</style>

src/components/DownloadButtons.vue

Lines changed: 43 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
<style scoped>
2424
.download-section {
25-
padding: 8px 20px 48px;
25+
padding: 8px 48px 56px;
2626
text-align: center;
2727
}
2828
@@ -36,23 +36,31 @@
3636
.btn {
3737
display: inline-flex;
3838
align-items: center;
39-
gap: 8px;
40-
padding: 14px 28px;
41-
border-radius: var(--radius-sm);
42-
font-size: 1rem;
39+
gap: 10px;
40+
padding: 12px 32px;
41+
border-radius: var(--radius);
42+
font-size: 1.05rem;
4343
font-weight: 600;
4444
text-decoration: none;
45-
transition: background 0.2s, transform 0.1s;
4645
cursor: pointer;
46+
border: none;
47+
position: relative;
48+
/* 凸起厚度:底部深色边模拟立体感 */
49+
border-bottom: 4px solid;
50+
border-top: 2px solid;
51+
transition: border-bottom-width 0.05s, border-top-width 0.05s, padding 0.05s, filter 0.1s;
4752
}
4853
4954
.btn:hover {
5055
text-decoration: none;
51-
transform: translateY(-1px);
56+
filter: brightness(1.08);
5257
}
5358
59+
/* 按下:厚度消失,按钮下沉 */
5460
.btn:active {
55-
transform: translateY(0);
61+
border-bottom-width: 2px;
62+
border-top-width: 3px;
63+
filter: brightness(0.92);
5664
}
5765
5866
.btn-icon {
@@ -61,34 +69,51 @@
6169
flex-shrink: 0;
6270
}
6371
72+
/* 主按钮:绿色 */
6473
.btn-primary {
65-
background: var(--accent-green);
74+
background: #3e8a2e;
6675
color: #fff;
76+
border-bottom-color: #2a5f1e;
77+
border-top-color: #5eb34c;
78+
border-left: 2px solid #4a9e38;
79+
border-right: 2px solid #4a9e38;
6780
}
6881
69-
.btn-primary:hover {
70-
background: var(--accent-green-hover);
82+
.btn-primary:active {
83+
background: #367a27;
84+
border-top-color: #2a5f1e;
85+
border-bottom-color: #5eb34c;
7186
}
7287
88+
/* 次按钮:浅灰 */
7389
.btn-secondary {
74-
background: transparent;
75-
color: var(--text-primary);
76-
border: 1px solid var(--border-color);
90+
background: #c8c8c8;
91+
color: #313233;
92+
border-bottom-color: #8e8e8e;
93+
border-top-color: #e8e8e8;
94+
border-left: 2px solid #b0b0b0;
95+
border-right: 2px solid #b0b0b0;
7796
}
7897
79-
.btn-secondary:hover {
80-
background: var(--bg-card);
98+
.btn-secondary:active {
99+
background: #b8b8b8;
100+
border-top-color: #8e8e8e;
101+
border-bottom-color: #e8e8e8;
81102
}
82103
83104
@media (max-width: 640px) {
105+
.download-section {
106+
padding: 8px 20px 40px;
107+
}
108+
84109
.buttons {
85110
flex-direction: column;
86-
align-items: center;
111+
align-items: stretch;
87112
}
88113
89114
.btn {
90-
width: 80%;
91115
justify-content: center;
116+
padding: 12px 24px;
92117
}
93118
}
94119
</style>

src/components/FooterSection.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<footer class="footer">
3-
<p class="copyright">&copy;2025 宁波易什网络科技有限公司 版权所有</p>
3+
<p class="copyright">&copy;2026 宁波易什网络科技有限公司 版权所有</p>
44
<p class="icp">
55
ICP备案/许可证号:
66
<a href="https://beian.miit.gov.cn/" target="_blank" rel="noopener">浙ICP备2022033471号-1</a>

0 commit comments

Comments
 (0)