Skip to content

Commit 1451696

Browse files
committed
UI位置调整适配多端
1 parent 63de953 commit 1451696

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/pages/index.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const allPostsByDate = sortMDByDate(allPosts).slice(0, MAX_POSTS)
3333
<div id='main-content' class='relative z-10 flex flex-col items-center px-4'>
3434
<!-- Rive Animation Block -->
3535
<!-- Motto Block -->
36-
<div class='relative z-10 top-24 flex justify-center'>
36+
<div class='relative z-10 mt-8 flex justify-center'>
3737
<div
3838
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'
3939
>
@@ -51,7 +51,7 @@ const allPostsByDate = sortMDByDate(allPosts).slice(0, MAX_POSTS)
5151

5252
<div class='relative w-screen'>
5353
<canvas id='rive-canvas' class='w-full h-auto'></canvas>
54-
<p class='absolute bottom-8 right-6 text-xs text-muted-foreground/50 pointer-events-none'>
54+
<p class='absolute right-6 text-xs text-muted-foreground/50 pointer-events-none bottom-4 sm:bottom-12'>
5555
Animation by <a
5656
href='https://fivepathways.com/'
5757
target='_blank'

0 commit comments

Comments
 (0)