style: 按毛玻璃设计稿重做广场/附近/发布/汪友/我的五大页面视觉
参照 wangquan_glass_redesign_mockup.html 的玻璃拟态(glassmorphism)设计语言重写前端展示样式: - app.wxss: 引入 coral/tangerine/lemon/mint/sky/lilac 色板与 .glass/.glass-strong/.sticker-tag 毛玻璃工具类,背景改为纯白 - custom-tab-bar: 改为悬浮玻璃浮岛(.tab-dock),含液态光泽动画与渐变发布按钮(FAB) - feed: 故事条改为方形圆角描边+conic渐变,顶部操作按钮、骨架屏改为玻璃质感 - post-card 组件: 卡片/贴纸标签/操作按钮全面玻璃化,点赞按钮改为渐变高亮 - nearby: 地图控件、宠物弹窗、列表项、预览条统一为毛玻璃卡片 - post: 上传区/输入框/标签pill/心情选择器改为玻璃质感+渐变选中态 - friends: 空态与好友列表项改为玻璃卡片 - profile: 用户信息区改为带渐变光斑的玻璃英雄卡,统计/宠物卡/动态网格同步玻璃化 未改动页面结构(WXML)与业务逻辑(TS),仅升级视觉样式(WXSS),保持程序可运行。
This commit is contained in:
@@ -19,6 +19,8 @@
|
||||
>
|
||||
<!-- 用户信息区(移除原来的 header-topbar,已移至 navbar)-->
|
||||
<view class="profile-header">
|
||||
<view class="hero-blob hb1"></view>
|
||||
<view class="hero-blob hb2"></view>
|
||||
|
||||
<!-- 头像 + 基本信息 -->
|
||||
<view class="user-top">
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
.profile-page {
|
||||
min-height: 100vh;
|
||||
background: linear-gradient(180deg, #fff8f2 0%, #fff4fb 50%, #f5f0ff 100%);
|
||||
background: #ffffff;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
@@ -17,31 +17,55 @@
|
||||
|
||||
.navbar-title {
|
||||
font-size: 36rpx;
|
||||
font-weight: 900;
|
||||
color: #272235;
|
||||
font-weight: 800;
|
||||
color: #2b2438;
|
||||
}
|
||||
|
||||
.settings-btn {
|
||||
width: 60rpx;
|
||||
height: 60rpx;
|
||||
border-radius: 50%;
|
||||
background: rgba(255, 255, 255, 0.72);
|
||||
box-shadow: 0 8rpx 18rpx rgba(78, 56, 96, 0.10);
|
||||
width: 64rpx;
|
||||
height: 64rpx;
|
||||
border-radius: 26rpx;
|
||||
background: var(--glass);
|
||||
backdrop-filter: blur(28rpx) saturate(170%);
|
||||
-webkit-backdrop-filter: blur(28rpx) saturate(170%);
|
||||
border: 1rpx solid var(--glass-edge);
|
||||
box-shadow: var(--shadow-soft);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 30rpx;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
|
||||
.profile-scroll { flex: 1; }
|
||||
|
||||
/* 用户信息区 */
|
||||
/* 用户信息区:玻璃英雄卡 + 漂浮渐变光斑 */
|
||||
.profile-header {
|
||||
padding: 16rpx 28rpx 28rpx;
|
||||
background: linear-gradient(180deg, rgba(255, 225, 90, 0.18), transparent);
|
||||
position: relative;
|
||||
margin: 8rpx 28rpx 20rpx;
|
||||
padding: 32rpx 28rpx 26rpx;
|
||||
overflow: hidden;
|
||||
border-radius: 56rpx;
|
||||
background: var(--glass);
|
||||
backdrop-filter: blur(28rpx) saturate(170%);
|
||||
-webkit-backdrop-filter: blur(28rpx) saturate(170%);
|
||||
border: 1rpx solid var(--glass-edge);
|
||||
box-shadow: var(--shadow-soft), inset 0 1rpx 0 rgba(255, 255, 255, 0.65);
|
||||
}
|
||||
|
||||
.hero-blob {
|
||||
position: absolute;
|
||||
border-radius: 50%;
|
||||
filter: blur(70rpx);
|
||||
opacity: 0.5;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.hb1 { width: 260rpx; height: 260rpx; background: #ffd400; top: -100rpx; right: -60rpx; }
|
||||
.hb2 { width: 200rpx; height: 200rpx; background: #00d9a0; bottom: -80rpx; left: -40rpx; }
|
||||
|
||||
.user-top {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 24rpx;
|
||||
@@ -54,30 +78,33 @@
|
||||
}
|
||||
|
||||
.user-avatar {
|
||||
width: 128rpx;
|
||||
height: 128rpx;
|
||||
border-radius: 40rpx;
|
||||
width: 132rpx;
|
||||
height: 132rpx;
|
||||
border-radius: 44rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
box-shadow: 0 12rpx 24rpx rgba(98, 60, 118, 0.18);
|
||||
border: 4rpx solid rgba(255, 255, 255, 0.85);
|
||||
box-shadow: 0 18rpx 36rpx rgba(120, 70, 150, 0.22);
|
||||
}
|
||||
|
||||
.avatar-text {
|
||||
font-size: 56rpx;
|
||||
font-weight: 800;
|
||||
color: rgba(39, 34, 53, 0.72);
|
||||
color: rgba(43, 36, 56, 0.72);
|
||||
}
|
||||
|
||||
.avatar-edit {
|
||||
position: absolute;
|
||||
bottom: -6rpx;
|
||||
right: -6rpx;
|
||||
width: 44rpx;
|
||||
height: 44rpx;
|
||||
width: 46rpx;
|
||||
height: 46rpx;
|
||||
border-radius: 50%;
|
||||
background: #fff;
|
||||
box-shadow: 0 4rpx 10rpx rgba(78, 56, 96, 0.16);
|
||||
background: rgba(255, 255, 255, 0.85);
|
||||
backdrop-filter: blur(16rpx);
|
||||
-webkit-backdrop-filter: blur(16rpx);
|
||||
box-shadow: 0 8rpx 18rpx rgba(120, 70, 150, 0.18);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
@@ -98,40 +125,41 @@
|
||||
}
|
||||
|
||||
.user-name {
|
||||
font-size: 36rpx;
|
||||
font-weight: 900;
|
||||
color: #272235;
|
||||
font-size: 34rpx;
|
||||
font-weight: 800;
|
||||
color: #2b2438;
|
||||
}
|
||||
|
||||
.user-handle {
|
||||
display: block;
|
||||
font-size: 24rpx;
|
||||
color: #9b8fa8;
|
||||
color: #a59cb5;
|
||||
margin-bottom: 10rpx;
|
||||
}
|
||||
|
||||
.user-bio {
|
||||
display: block;
|
||||
font-size: 26rpx;
|
||||
color: #6a6178;
|
||||
line-height: 1.5;
|
||||
font-size: 24rpx;
|
||||
color: #6e6480;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.edit-profile-btn {
|
||||
background: rgba(255, 255, 255, 0.80);
|
||||
border: 1rpx solid rgba(255, 255, 255, 0.72);
|
||||
background: rgba(255, 255, 255, 0.55);
|
||||
border: 1.5rpx solid #8b5cf6;
|
||||
border-radius: 999rpx;
|
||||
padding: 14rpx 28rpx;
|
||||
font-size: 24rpx;
|
||||
font-weight: 800;
|
||||
color: #272235;
|
||||
color: #8b5cf6;
|
||||
flex-shrink: 0;
|
||||
box-shadow: 0 8rpx 18rpx rgba(78, 56, 96, 0.08);
|
||||
align-self: flex-start;
|
||||
}
|
||||
|
||||
/* 数据统计 */
|
||||
.stats-row {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
display: flex;
|
||||
gap: 16rpx;
|
||||
align-items: center;
|
||||
@@ -139,26 +167,29 @@
|
||||
|
||||
.stat-item {
|
||||
flex: 1;
|
||||
padding: 24rpx 0;
|
||||
padding: 22rpx 0;
|
||||
text-align: center;
|
||||
background: rgba(255, 255, 255, 0.78);
|
||||
border: 1rpx solid rgba(255, 255, 255, 0.72);
|
||||
border-radius: 30rpx;
|
||||
box-shadow: 0 10rpx 22rpx rgba(78, 56, 96, 0.07);
|
||||
background: var(--glass-strong);
|
||||
backdrop-filter: blur(34rpx) saturate(180%);
|
||||
-webkit-backdrop-filter: blur(34rpx) saturate(180%);
|
||||
border: 1rpx solid var(--glass-edge);
|
||||
border-radius: 36rpx;
|
||||
box-shadow: var(--shadow-soft), inset 0 1rpx 0 rgba(255, 255, 255, 0.7);
|
||||
}
|
||||
|
||||
.stat-num {
|
||||
display: block;
|
||||
font-size: 40rpx;
|
||||
font-weight: 900;
|
||||
color: #ff4f91;
|
||||
font-size: 38rpx;
|
||||
font-weight: 800;
|
||||
color: #ff2d6e;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.stat-label {
|
||||
display: block;
|
||||
font-size: 22rpx;
|
||||
font-size: 21rpx;
|
||||
font-weight: 700;
|
||||
color: #9b8fa8;
|
||||
color: #a59cb5;
|
||||
margin-top: 4rpx;
|
||||
}
|
||||
|
||||
@@ -175,18 +206,17 @@
|
||||
}
|
||||
|
||||
.section-title {
|
||||
font-size: 26rpx;
|
||||
font-weight: 900;
|
||||
color: #9b8fa8;
|
||||
letter-spacing: 0.5rpx;
|
||||
text-transform: uppercase;
|
||||
font-size: 22rpx;
|
||||
font-weight: 800;
|
||||
color: #a59cb5;
|
||||
letter-spacing: 0.6rpx;
|
||||
}
|
||||
|
||||
.add-pet-btn {
|
||||
font-size: 24rpx;
|
||||
font-weight: 800;
|
||||
color: #ff4f91;
|
||||
background: #ffe5f0;
|
||||
color: #ff2d6e;
|
||||
background: rgba(255, 45, 110, 0.12);
|
||||
border-radius: 999rpx;
|
||||
padding: 8rpx 20rpx;
|
||||
}
|
||||
@@ -201,33 +231,37 @@
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 18rpx;
|
||||
background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(201, 247, 223, 0.72));
|
||||
border: 1rpx solid rgba(255, 255, 255, 0.72);
|
||||
border-radius: 36rpx;
|
||||
background: var(--glass);
|
||||
backdrop-filter: blur(28rpx) saturate(170%);
|
||||
-webkit-backdrop-filter: blur(28rpx) saturate(170%);
|
||||
border: 1rpx solid var(--glass-edge);
|
||||
border-radius: 40rpx;
|
||||
padding: 20rpx 24rpx;
|
||||
margin-right: 20rpx;
|
||||
box-shadow: 0 12rpx 26rpx rgba(78, 56, 96, 0.09);
|
||||
box-shadow: var(--shadow-soft), inset 0 1rpx 0 rgba(255, 255, 255, 0.6);
|
||||
white-space: normal;
|
||||
vertical-align: top;
|
||||
max-width: 560rpx;
|
||||
}
|
||||
|
||||
.pet-card-empty {
|
||||
background: rgba(255, 255, 255, 0.60);
|
||||
border: 3rpx dashed rgba(43, 37, 61, 0.16);
|
||||
background: rgba(255, 255, 255, 0.40);
|
||||
border: 3rpx dashed rgba(43, 36, 56, 0.18);
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.pet-avatar {
|
||||
width: 84rpx;
|
||||
height: 84rpx;
|
||||
border-radius: 28rpx;
|
||||
border-radius: 30rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border: 2.5rpx solid rgba(255, 255, 255, 0.8);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.pet-avatar-add { background: rgba(255, 255, 255, 0.60); color: #9b8fa8; }
|
||||
.pet-avatar-add { background: rgba(255, 255, 255, 0.55); border-style: dashed; color: #a59cb5; }
|
||||
|
||||
.pet-emoji { font-size: 44rpx; line-height: 1; }
|
||||
|
||||
@@ -236,45 +270,49 @@
|
||||
.pet-name {
|
||||
display: block;
|
||||
font-size: 28rpx;
|
||||
font-weight: 900;
|
||||
color: #272235;
|
||||
font-weight: 800;
|
||||
color: #2b2438;
|
||||
margin-bottom: 6rpx;
|
||||
}
|
||||
|
||||
.pet-breed {
|
||||
display: block;
|
||||
font-size: 22rpx;
|
||||
color: #9b8fa8;
|
||||
color: #a59cb5;
|
||||
}
|
||||
|
||||
.pet-badge {
|
||||
background: #ffe5f0;
|
||||
border-radius: 999rpx;
|
||||
padding: 8rpx 16rpx;
|
||||
background: linear-gradient(135deg, #ff2d6e, #8b5cf6);
|
||||
color: #fff;
|
||||
border-radius: 24rpx;
|
||||
padding: 10rpx 18rpx;
|
||||
font-size: 20rpx;
|
||||
color: #a91d5b;
|
||||
font-weight: 900;
|
||||
font-weight: 800;
|
||||
flex-shrink: 0;
|
||||
transform: rotate(3deg);
|
||||
box-shadow: 0 12rpx 24rpx rgba(139, 92, 246, 0.3);
|
||||
}
|
||||
|
||||
/* 视图切换 */
|
||||
.view-toggle {
|
||||
display: flex;
|
||||
background: rgba(255, 255, 255, 0.60);
|
||||
border: 1rpx solid rgba(43, 37, 61, 0.10);
|
||||
border-radius: 14rpx;
|
||||
background: var(--glass);
|
||||
backdrop-filter: blur(24rpx) saturate(170%);
|
||||
-webkit-backdrop-filter: blur(24rpx) saturate(170%);
|
||||
border: 1rpx solid var(--glass-edge);
|
||||
border-radius: 18rpx;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.toggle-item {
|
||||
padding: 10rpx 20rpx;
|
||||
font-size: 24rpx;
|
||||
color: #9b8fa8;
|
||||
color: #a59cb5;
|
||||
}
|
||||
|
||||
.toggle-item.active {
|
||||
background: rgba(255, 79, 145, 0.12);
|
||||
color: #ff4f91;
|
||||
background: rgba(255, 45, 110, 0.14);
|
||||
color: #ff2d6e;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
@@ -282,15 +320,16 @@
|
||||
.post-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: 6rpx;
|
||||
gap: 9rpx;
|
||||
padding: 0 28rpx 20rpx;
|
||||
}
|
||||
|
||||
.grid-item {
|
||||
aspect-ratio: 1;
|
||||
border-radius: 28rpx;
|
||||
border-radius: 26rpx;
|
||||
overflow: hidden;
|
||||
background: #f0eef5;
|
||||
background: rgba(255, 255, 255, 0.45);
|
||||
border: 1rpx solid rgba(255, 255, 255, 0.6);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
@@ -301,7 +340,7 @@
|
||||
.grid-no-img {
|
||||
padding: 12rpx;
|
||||
font-size: 20rpx;
|
||||
color: #9b8fa8;
|
||||
color: #a59cb5;
|
||||
text-align: center;
|
||||
line-height: 1.4;
|
||||
}
|
||||
@@ -317,6 +356,6 @@
|
||||
|
||||
.empty-emoji { font-size: 72rpx; }
|
||||
|
||||
.empty-tip { font-size: 26rpx; color: #9b8fa8; }
|
||||
.empty-tip { font-size: 26rpx; color: #a59cb5; }
|
||||
|
||||
.post-btn { padding: 18rpx 48rpx; font-size: 26rpx; font-weight: 800; margin-top: 8rpx; }
|
||||
|
||||
Reference in New Issue
Block a user