Skip to content

Commit d81488a

Browse files
committed
update hero in mobile
1 parent a295410 commit d81488a

File tree

1 file changed

+63
-22
lines changed

1 file changed

+63
-22
lines changed

src/components/Hero.astro

+63-22
Original file line numberDiff line numberDiff line change
@@ -2,34 +2,75 @@
22
import '../styles/hero.css';
33
---
44

5-
<section class="hero">
6-
<div class="container">
7-
<div class="hero-content">
8-
<div class="text-section">
9-
<h1>简约优雅</h1>
10-
<p class="text-2xl text-gray-400 mt-4 mb-8">
11-
为极致体验而生<br>
12-
纯粹、克制、好用的 V2EX 客户端
5+
<section class="relative min-h-screen flex items-center justify-center py-20 md:py-32">
6+
<!-- 背景渐变 -->
7+
<div class="absolute inset-0 bg-gradient-to-b from-purple-500/10 via-transparent to-transparent"></div>
8+
9+
<div class="container mx-auto px-4">
10+
<div class="flex flex-col md:flex-row items-center gap-8 md:gap-16">
11+
<!-- 左侧文本内容 -->
12+
<div class="flex-1 text-center md:text-left">
13+
<h1 class="text-4xl md:text-6xl font-extrabold mb-6 tracking-tight">
14+
<span class="bg-clip-text text-transparent bg-gradient-to-r from-purple-400 to-pink-400">
15+
更好的 V2EX
16+
</span>
17+
<br />
18+
<span class="text-white">浏览体验</span>
19+
</h1>
20+
21+
<p class="text-lg md:text-xl text-gray-300 mb-8 leading-relaxed max-w-2xl">
22+
简洁的设计,丰富的功能,流畅的交互体验。让您随时随地享受 V2EX 的乐趣。
1323
</p>
14-
<div class="download-buttons">
15-
<a href="https://play.google.com/store/apps/details?id=me.ghui.v2er"
16-
class="store-button"
17-
target="_blank">
18-
<i class="fab fa-google-play"></i>
19-
Google Play Store
24+
25+
<div class="flex flex-col sm:flex-row items-center gap-4 justify-center md:justify-start">
26+
<a
27+
href="#"
28+
class="w-full sm:w-auto px-8 py-4 bg-gradient-to-r from-purple-500 to-pink-500
29+
rounded-xl font-semibold text-white shadow-lg
30+
hover:shadow-purple-500/25 transition-all duration-300
31+
hover:-translate-y-0.5 transform"
32+
>
33+
<i class="fab fa-apple mr-2"></i>
34+
App Store
2035
</a>
21-
<a href="https://apps.apple.com/app/id1596137027"
22-
class="store-button"
23-
target="_blank">
24-
<i class="fab fa-apple"></i>
25-
Apple App Store
36+
37+
<a
38+
href="#"
39+
class="w-full sm:w-auto px-8 py-4 bg-white/10 rounded-xl font-semibold text-white
40+
backdrop-blur-lg hover:bg-white/15 transition-all duration-300
41+
hover:-translate-y-0.5 transform"
42+
>
43+
<i class="fab fa-google-play mr-2"></i>
44+
Play Store
2645
</a>
2746
</div>
2847
</div>
29-
<div class="preview-section">
30-
<img src="/image/android-screenshot.png" alt="V2er Android 预览" class="phone android" />
31-
<img src="/image/ios-screenshot.png" alt="V2er iOS 预览" class="phone ios" />
48+
49+
<!-- 右侧设备预览 -->
50+
<div class="flex-1 relative">
51+
<div class="relative w-full max-w-[320px] mx-auto md:max-w-none">
52+
<!-- iOS 设备 -->
53+
<img
54+
src="/image/ios-screenshot.png"
55+
alt="iOS App Screenshot"
56+
class="w-[280px] md:w-[320px] rounded-[32px] shadow-2xl
57+
relative z-20 mx-auto md:ml-auto"
58+
>
59+
60+
<!-- Android 设备 -->
61+
<img
62+
src="/image/android-screenshot.png"
63+
alt="Android App Screenshot"
64+
class="w-[280px] md:w-[320px] rounded-[32px] shadow-2xl
65+
absolute top-1/2 left-1/2 md:left-0
66+
transform -translate-x-1/2 -translate-y-1/2 md:translate-x-0
67+
-rotate-6 z-10 opacity-75 blur-[1px]"
68+
>
69+
</div>
3270
</div>
3371
</div>
3472
</div>
73+
74+
<!-- 装饰元素 -->
75+
<div class="absolute bottom-0 left-0 right-0 h-64 bg-gradient-to-t from-black to-transparent"></div>
3576
</section>

0 commit comments

Comments
 (0)