style(Dashboard): 调整家庭信息展示样式和透明度
将家庭名称和标语从背景图中移出,改为独立展示 降低背景图遮罩层的透明度
Showing
1 changed file
with
7 additions
and
3 deletions
| ... | @@ -3,17 +3,21 @@ | ... | @@ -3,17 +3,21 @@ |
| 3 | <!-- Hero section with family name and background image --> | 3 | <!-- Hero section with family name and background image --> |
| 4 | <view class=" bg-white rounded-xl shadow-md mx-4 mt-4 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 rounded-xl" /> | 5 | <image :src="familyCover" mode="aspectFill" alt="Family background" class="w-full h-full object-cover rounded-xl" /> |
| 6 | - <view class="absolute inset-0 flex flex-col justify-end rounded-xl bg-black bg-opacity-20"> | 6 | + <view class="absolute inset-0 flex flex-col justify-end rounded-xl bg-black bg-opacity-10"> |
| 7 | <view class="m-5"> | 7 | <view class="m-5"> |
| 8 | <view v-if="familyOwner" class="absolute top-4 right-4 text-white flex items-center" @click="goToProfile"> | 8 | <view v-if="familyOwner" class="absolute top-4 right-4 text-white flex items-center" @click="goToProfile"> |
| 9 | <Setting size="20" /> | 9 | <Setting size="20" /> |
| 10 | <text class="ml-2 text-sm">家庭设置</text> | 10 | <text class="ml-2 text-sm">家庭设置</text> |
| 11 | </view> | 11 | </view> |
| 12 | - <h1 class="text-white text-2xl font-bold">{{ familyName }}</h1> | 12 | + <!-- <h1 class="text-white text-2xl font-bold">{{ familyName }}</h1> |
| 13 | - <p class="text-white opacity-90">{{ familySlogn }}</p> | 13 | + <p class="text-white opacity-90">{{ familySlogn }}</p> --> |
| 14 | </view> | 14 | </view> |
| 15 | </view> | 15 | </view> |
| 16 | </view> | 16 | </view> |
| 17 | + <view class=" mx-4 mt-4 px-2 py-2"> | ||
| 18 | + <h1 class="text-gray-800 text-xl font-bold mb-1">{{ familyName }}</h1> | ||
| 19 | + <p class="text-gray-600 opacity-90">{{ familySlogn }}</p> | ||
| 20 | + </view> | ||
| 17 | 21 | ||
| 18 | <!-- 微信步数授权组件 --> | 22 | <!-- 微信步数授权组件 --> |
| 19 | <WeRunAuth | 23 | <WeRunAuth | ... | ... |
-
Please register or login to post a comment