基本成型
This commit is contained in:
@@ -1,20 +1,183 @@
|
||||
.user-avatar{
|
||||
margin-left: 40rpx;
|
||||
width: 100vw;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-weight: bold;
|
||||
|
||||
}
|
||||
.avatar-font{
|
||||
margin-left: 30rpx;
|
||||
}
|
||||
|
||||
.user-contain {
|
||||
background-color: #f5f7fa; /* 浅灰色背景 */
|
||||
height: 100vh;
|
||||
}
|
||||
.server1{
|
||||
margin-top: 3vh;
|
||||
}
|
||||
/* 滚动容器样式 */
|
||||
.user-scroll {
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
box-sizing: border-box;
|
||||
padding: 20rpx;
|
||||
background-color: #f5f7fa;
|
||||
}
|
||||
|
||||
/* 主容器样式 */
|
||||
.user-contain {
|
||||
width: 100%;
|
||||
background-color: #ffffff;
|
||||
border-radius: 20rpx;
|
||||
padding: 30rpx;
|
||||
box-sizing: border-box;
|
||||
min-height: calc(100vh - 40rpx);
|
||||
}
|
||||
|
||||
/* 头像与用户名区域 */
|
||||
.user-avatar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 30rpx;
|
||||
padding: 20rpx 0;
|
||||
}
|
||||
|
||||
.avatar-example {
|
||||
width: 120rpx;
|
||||
height: 120rpx;
|
||||
border-radius: 50%;
|
||||
border: 4rpx solid #f0f2f5;
|
||||
}
|
||||
|
||||
.avatar-font {
|
||||
margin-left: 20rpx;
|
||||
font-size: 32rpx;
|
||||
font-weight: bold;
|
||||
color: #333333;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/* 统计数据区域 */
|
||||
.stats-container {
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
padding: 30rpx 0;
|
||||
border-bottom: 1px solid #f0f2f5;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
|
||||
.stat-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
padding: 15rpx 0;
|
||||
width: 33.333%;
|
||||
}
|
||||
|
||||
.stat-value {
|
||||
font-size: 36rpx;
|
||||
font-weight: bold;
|
||||
color: #51bdb6;
|
||||
margin-bottom: 10rpx;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.stat-value::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 0;
|
||||
height: 2rpx;
|
||||
background-color: #51bdb6;
|
||||
transition: width 0.3s ease;
|
||||
}
|
||||
|
||||
.stat-item:active .stat-value::after {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.stat-label {
|
||||
font-size: 26rpx;
|
||||
color: #666666;
|
||||
}
|
||||
|
||||
/* 功能区标题 */
|
||||
.section-title {
|
||||
font-size: 28rpx;
|
||||
color: #999999;
|
||||
margin: 20rpx 0 15rpx 10rpx;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
/* 功能按钮网格 */
|
||||
.function-grid {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
margin-bottom: 10rpx;
|
||||
}
|
||||
|
||||
.function-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 25%;
|
||||
padding: 25rpx 0;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.function-item::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
right: 0;
|
||||
width: 1rpx;
|
||||
height: 40rpx;
|
||||
background-color: #f0f2f5;
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
|
||||
.function-item:nth-child(4n)::after {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.function-item:active {
|
||||
background-color: #f5f7fa;
|
||||
}
|
||||
|
||||
.function-icon {
|
||||
width: 64rpx;
|
||||
height: 64rpx;
|
||||
background-color: #f0f2f5;
|
||||
border-radius: 16rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-bottom: 15rpx;
|
||||
color: #51bdb6;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.function-name {
|
||||
font-size: 26rpx;
|
||||
color: #333333;
|
||||
}
|
||||
|
||||
/* 消息通知徽章 */
|
||||
.notification-badge {
|
||||
position: absolute;
|
||||
top: -8rpx;
|
||||
right: -8rpx;
|
||||
width: 30rpx;
|
||||
height: 30rpx;
|
||||
background-color: #ff4d4f;
|
||||
color: white;
|
||||
font-size: 20rpx;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
/* 底部版权信息 */
|
||||
.footer {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
margin-top: 60rpx;
|
||||
padding: 20rpx 0;
|
||||
}
|
||||
|
||||
.copyright {
|
||||
font-size: 24rpx;
|
||||
color: #999999;
|
||||
}
|
||||
|
||||
.redicon {
|
||||
color: red;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user