样式优化

This commit is contained in:
2025-11-29 17:30:43 +08:00
parent 358e85be10
commit f4951c18f8
13 changed files with 91 additions and 35 deletions

View File

@@ -5,13 +5,17 @@
position: relative;
overflow-y: auto;
box-sizing: border-box;
background: radial-gradient(
circle at 50% 0,
/* 光晕圆心在顶部中间 */ rgba(191, 255, 239, 0.9) 0px,
/* 中间更深的浅蓝 */ rgba(191, 255, 239, 0.5) 200px,
/* 100px 处开始淡化 */ #fafafa 300px,
/* 到 200px 变成白色 */ #fafafa 100% /* 200px 以下全白 */
);
background: radial-gradient(circle at 50% 0,
/* 光晕圆心在顶部中间 */
rgba(191, 255, 239, 0.9) 0px,
/* 中间更深的浅蓝 */
rgba(191, 255, 239, 0.5) 200px,
/* 100px 处开始淡化 */
#fafafa 300px,
/* 到 200px 变成白色 */
#fafafa 100%
/* 200px 以下全白 */
);
}
// 主要内容区域
@@ -19,4 +23,28 @@
display: flex;
flex-direction: column;
align-items: center;
}
color: rgba(0, 0, 0, 0.40);
text-align: center;
font-family: "PingFang SC";
font-size: 14px;
font-style: normal;
font-weight: 500;
line-height: normal;
.title-text {
color: #000;
font-size: 24px;
font-weight: 600;
margin-top: 80px;
margin-bottom: 16px;
}
.qrcode {
margin: 32px 0 -20px;
}
.hint-text {
font-weight: 400;
margin-bottom: 78px;
}
}

View File

@@ -54,9 +54,8 @@ const OtherUserPage: React.FC = () => {
nickname: userData.nickname || "",
avatar_url: userData.avatar_url || "",
join_date: userData.subscribe_time
? `${new Date(userData.subscribe_time).getFullYear()}${
new Date(userData.subscribe_time).getMonth() + 1
}月加入`
? `${new Date(userData.subscribe_time).getFullYear()}${new Date(userData.subscribe_time).getMonth() + 1
}月加入`
: "",
stats: {
following_count: userData.stats?.following_count || 0,
@@ -103,10 +102,10 @@ const OtherUserPage: React.FC = () => {
/>
{/* 主要内容 */}
<View className="main_content" style={{ paddingTop: `${totalHeight}px` }}>
<Text></Text>
<Text></Text>
<Image src=""></Image>
<Text>👆</Text>
<Text className="title-text"></Text>
<Text></Text>
<Image className="qrcode" mode="scaleToFill" src={require("@/static/userInfo/group-qrcode.svg")} showMenuByLongpress></Image>
<Text className="hint-text">👆</Text>
<Text></Text>
<Text></Text>
<Text></Text>