@@ -46,7 +46,7 @@ const allPostsByDate = sortMDByDate(allPosts).slice(0, MAX_POSTS)
4646 <div class =' relative z-10 flex min-h-screen items-start px-4 pt-32' >
4747 <div class =' mx-auto w-full max-w-7xl' >
4848 <!-- 个人信息 -->
49- <div class =' flex items-center gap-16' >
49+ <div class =' flex flex-col items-center gap-16 lg:flex-row lg:items-center ' >
5050 <!-- 左侧大头像 -->
5151 <div class =' avatar-container relative shrink-0' >
5252 <!-- 装饰星星 -->
@@ -69,7 +69,7 @@ const allPostsByDate = sortMDByDate(allPosts).slice(0, MAX_POSTS)
6969 <Image
7070 src ={ avatar }
7171 alt =' profile'
72- class =' size-64 rounded-full border-2 border-border object-cover shadow-lg transition-all duration-300 hover:grayscale'
72+ class =' size-64 rounded-full border-2 border-border object-cover shadow-lg transition-all duration-300 lg: hover:grayscale'
7373 loading =' eager'
7474 />
7575 <div class =' avatar-message' >
@@ -83,9 +83,9 @@ const allPostsByDate = sortMDByDate(allPosts).slice(0, MAX_POSTS)
8383 </div >
8484
8585 <!-- 右侧内容 -->
86- <div class =' flex flex-col gap-8' >
86+ <div class =' flex flex-col gap-8 text-left ' >
8787 <!-- 标题区域 -->
88- <div class =' flex items-center gap-3' >
88+ <div class =' flex items-center gap-3 justify-start ' >
8989 <h1 class =' text-3xl font-bold' >
9090 Welcome to my blog, this is <span
9191 class =' author-name cursor-help'
@@ -115,7 +115,7 @@ const allPostsByDate = sortMDByDate(allPosts).slice(0, MAX_POSTS)
115115 </div >
116116
117117 <!-- 社交媒体图标 -->
118- <div class =' flex gap-4' >
118+ <div class =' flex gap-4 justify-start ' >
119119 <Label
120120 title =' GitHub'
121121 as =' a'
@@ -146,7 +146,7 @@ const allPostsByDate = sortMDByDate(allPosts).slice(0, MAX_POSTS)
146146 </div >
147147
148148 <!-- 按钮组 -->
149- <div class =' flex gap-4' >
149+ <div class =' flex flex-col gap-4 sm:flex-row sm:justify-start ' >
150150 <Button title =' About Me' href =' /about' style =' ahead' />
151151 <Button title =' View Blog' href =' /blog' style =' ahead' />
152152 </div >
@@ -155,25 +155,6 @@ const allPostsByDate = sortMDByDate(allPosts).slice(0, MAX_POSTS)
155155 </div >
156156 </div >
157157
158- <!-- 格言 - 调整位置到内容下方 -->
159- <div class =' absolute bottom-[30%] left-1/2 -translate-x-1/2' >
160- <div
161- class =' flex items-center gap-x-3 rounded-full border bg-background/80 px-4 py-2 text-sm shadow-sm backdrop-blur transition-shadow hover:shadow-md'
162- >
163- <span class =' relative flex items-center justify-center' >
164- <span
165- class =' absolute size-2 animate-ping rounded-full border border-green-400 bg-green-400 opacity-75'
166- ></span >
167- <span class =' size-2 rounded-full bg-green-400' ></span >
168- </span >
169- <p class =' font-medium text-muted-foreground' >五帝三皇神圣事,骗了无涯过客</p >
170- </div >
171- </div >
172-
173- <!-- 向下滚动指示器 - 调整位置并加强动画 -->
174- <div class =' absolute bottom-[15%] left-1/2 -translate-x-1/2' >
175- <span class =' inline-block animate-bounce text-3xl text-muted-foreground' >⌄</span >
176- </div >
177158 </section >
178159
179160 <!-- 第二屏:博客文章和技能 -->
@@ -217,6 +198,21 @@ const allPostsByDate = sortMDByDate(allPosts).slice(0, MAX_POSTS)
217198 loading =' lazy'
218199 />
219200 </Section >
201+
202+ <!-- 格言 - 页面底部 -->
203+ <div class =' mt-5 flex justify-center' >
204+ <div
205+ class =' inline-flex items-center gap-x-2 sm:gap-x-3 rounded-full border bg-background/80 px-3 py-1.5 sm:px-4 sm:py-2 text-xs sm:text-sm shadow-sm backdrop-blur transition-shadow hover:shadow-md'
206+ >
207+ <span class =' relative flex items-center justify-center shrink-0' >
208+ <span
209+ class =' absolute size-1.5 sm:size-2 animate-ping rounded-full border border-green-400 bg-green-400 opacity-75'
210+ ></span >
211+ <span class =' size-1.5 sm:size-2 rounded-full bg-green-400' ></span >
212+ </span >
213+ <p class =' font-medium text-muted-foreground whitespace-nowrap' >五帝三皇神圣事,骗了无涯过客</p >
214+ </div >
215+ </div >
220216 </div >
221217 </section >
222218 </main >
@@ -481,4 +477,16 @@ const allPostsByDate = sortMDByDate(allPosts).slice(0, MAX_POSTS)
481477 .avatar-wrapper:hover .avatar-message {
482478 opacity: 1;
483479 }
480+
481+ /* 在小屏幕上禁用头像 hover 效果 */
482+ @media (max-width: 1023px) {
483+ .avatar-wrapper:hover .avatar-message {
484+ opacity: 0;
485+ }
486+
487+ /* 在小屏幕上禁用头像点击交互 */
488+ .avatar-wrapper {
489+ pointer-events: none;
490+ }
491+ }
484492</style >
0 commit comments