style: 调整页面样式和布局
- 修改 FeedbackList 页面的按钮内边距 - 移除 AlbumList 页面的视频时长注释 - 调整 Feedback 页面的提交按钮垂直内边距 - 重构 Dashboard 页面的英雄区域布局和样式
Showing
4 changed files
with
13 additions
and
11 deletions
| ... | @@ -145,7 +145,7 @@ const initMockData = () => { | ... | @@ -145,7 +145,7 @@ const initMockData = () => { |
| 145 | type: 'video', | 145 | type: 'video', |
| 146 | url: 'https://vjs.zencdn.net/v/oceans.mp4', | 146 | url: 'https://vjs.zencdn.net/v/oceans.mp4', |
| 147 | thumbnail: 'https://img.yzcdn.cn/vant/apple-1.jpg', | 147 | thumbnail: 'https://img.yzcdn.cn/vant/apple-1.jpg', |
| 148 | - duration: 125, // 秒 | 148 | + // duration: 125, // 秒 |
| 149 | createTime: '2024-01-14 16:20' | 149 | createTime: '2024-01-14 16:20' |
| 150 | }, | 150 | }, |
| 151 | { | 151 | { | ... | ... |
| 1 | <template> | 1 | <template> |
| 2 | <view class="min-h-screen flex flex-col bg-white pb-16" style="background-color: #F9FAFB;"> | 2 | <view class="min-h-screen flex flex-col bg-white pb-16" style="background-color: #F9FAFB;"> |
| 3 | <!-- Hero section with family name and background image --> | 3 | <!-- Hero section with family name and background image --> |
| 4 | - <view class="relative" style="height: 30vh;"> | 4 | + <view class=" bg-white rounded-xl shadow-md mx-4 mt-4 relative" style="height: 30vh;"> |
| 5 | - <image :src="familyCover" mode="aspectFill" alt="Family background" class="w-full h-full object-cover" /> | 5 | + <image :src="familyCover" mode="aspectFill" alt="Family background" class="w-full h-full object-cover rounded-xl" /> |
| 6 | - <view class="absolute inset-0 bg-black bg-opacity-30 flex flex-col justify-end p-5"> | 6 | + <view class="absolute inset-0 flex flex-col justify-end rounded-xl bg-black bg-opacity-20"> |
| 7 | - <view v-if="familyOwner" class="absolute top-4 right-4 text-white flex items-center" @click="goToProfile"> | 7 | + <view class="m-5"> |
| 8 | - <Setting size="24" /> | 8 | + <view v-if="familyOwner" class="absolute top-4 right-4 text-white flex items-center" @click="goToProfile"> |
| 9 | - <text class="ml-2">家庭设置</text> | 9 | + <Setting size="24" /> |
| 10 | + <text class="ml-2">家庭设置</text> | ||
| 11 | + </view> | ||
| 12 | + <h1 class="text-white text-2xl font-bold">{{ familyName }}</h1> | ||
| 13 | + <p class="text-white opacity-90">{{ familySlogn }}</p> | ||
| 10 | </view> | 14 | </view> |
| 11 | - <h1 class="text-white text-2xl font-bold">{{ familyName }}</h1> | ||
| 12 | - <p class="text-white opacity-90">{{ familySlogn }}</p> | ||
| 13 | </view> | 15 | </view> |
| 14 | </view> | 16 | </view> |
| 15 | 17 | ... | ... |
| ... | @@ -90,7 +90,7 @@ | ... | @@ -90,7 +90,7 @@ |
| 90 | <!-- Submit Button --> | 90 | <!-- Submit Button --> |
| 91 | <view | 91 | <view |
| 92 | @click="submitFeedback" | 92 | @click="submitFeedback" |
| 93 | - class="w-full py-3 bg-blue-500 text-white text-lg font-medium rounded-lg flex items-center justify-center" | 93 | + class="w-full py-2 bg-blue-500 text-white text-lg font-medium rounded-lg flex items-center justify-center" |
| 94 | > | 94 | > |
| 95 | 提交反馈 | 95 | 提交反馈 |
| 96 | </view> | 96 | </view> | ... | ... |
| ... | @@ -156,7 +156,7 @@ | ... | @@ -156,7 +156,7 @@ |
| 156 | background: linear-gradient(135deg, var(--primary-color), var(--primary-color)); | 156 | background: linear-gradient(135deg, var(--primary-color), var(--primary-color)); |
| 157 | color: white; | 157 | color: white; |
| 158 | border-radius: 24rpx; | 158 | border-radius: 24rpx; |
| 159 | - padding: 32rpx; | 159 | + padding: 25rpx; |
| 160 | text-align: center; | 160 | text-align: center; |
| 161 | font-size: 32rpx; | 161 | font-size: 32rpx; |
| 162 | font-weight: 600; | 162 | font-weight: 600; | ... | ... |
-
Please register or login to post a comment