feat: 新增用户主页和个人主页功能

新增用户主页和个人主页的HTML、CSS和JS文件
添加相关图片资源
重构sectionIndex页面为section-index.html
更新sectionIndex.js以支持组件导入
This commit is contained in:
DESKTOP-RQ919RC\Pc
2025-10-21 19:05:17 +08:00
parent acb96969d7
commit f1d4b25556
13 changed files with 1246 additions and 124 deletions

229
css/homepage-other.css Normal file
View File

@@ -0,0 +1,229 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "PingFangSC-Regular", "PingFang SC", sans-serif;
font-weight: 400;
font-style: normal;
}
body {
background-color: #eef2f5;
}
/* 公共的 css 样式 */
.flexflex {
display: flex;
}
.flexcenter {
display: flex;
justify-content: center;
align-items: center;
}
.flexjcenter {
display: flex;
justify-content: center;
}
.flexacenter {
display: flex;
align-items: center;
}
.flex1 {
flex: 1;
}
.flexcolumn {
display: flex;
flex-direction: column;
}
.one-line-display {
word-break: keep-all;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
#homepage-other {
width: 1200px;
margin: 0 auto;
}
#homepage-other .head-top {
margin-bottom: 30px;
}
#homepage-other .head-top .logo {
height: 52px;
}
#homepage-other .head-top .input-box {
width: 370px;
height: 40px;
background-color: #ebebeb;
border: 2px solid #d7d7d7;
border-radius: 11px;
padding: 0 15px;
justify-content: space-between;
margin-right: 20px;
}
#homepage-other .head-top .input-box .input {
border: none;
outline: none;
height: 100%;
background-color: transparent;
}
#homepage-other .head-top .input-box .icon {
width: 18px;
height: 18px;
margin-left: 15rpx;
cursor: pointer;
}
#homepage-other .head-top .sign-in {
width: 192px;
height: 40px;
border-radius: 83px;
cursor: pointer;
}
#homepage-other .head-top .sign-in.sign-in-already {
background-color: #ffffff;
font-size: 14px;
color: #333;
}
#homepage-other .head-top .sign-in.sign-in-already .sign-icon {
width: 20px;
height: 20px;
margin-right: 10px;
}
#homepage-other .head-top .sign-in.sign-in-no {
position: relative;
z-index: 1;
padding-right: 8px;
}
#homepage-other .head-top .sign-in.sign-in-no .sign-in-bj {
position: absolute;
top: 0;
left: 0;
z-index: -1;
width: 190px;
height: 40px;
}
#homepage-other .head-top .sign-in.sign-in-no .coin-bj {
position: absolute;
width: 157px;
height: 33px;
top: 4px;
left: 29px;
}
#homepage-other .head-top .sign-in.sign-in-no .coin-icon {
width: 43px;
height: 51px;
align-self: flex-end;
z-index: 1;
margin-left: -2px;
}
#homepage-other .head-top .sign-in.sign-in-no .text {
text-align: center;
text-shadow: 1px 1px 2px #a63603;
-webkit-text-shadow: 1px 1px 2px #a63603;
-moz-text-shadow: 1px 1px 2px #a63603;
font-size: 15px;
color: #fff;
}
#homepage-other .head-top .sign-in.sign-in-no .sign-go {
width: 30px;
height: 30px;
font-family: "Arial-BoldMT", "Arial Bold", "Arial", sans-serif;
font-weight: 700;
font-size: 12px;
color: #710600;
position: relative;
}
#homepage-other .head-top .sign-in.sign-in-no .sign-go .sign-go-bj {
width: 100%;
height: 100%;
position: absolute;
z-index: -1;
}
#homepage-other .head-top .sign-in.sign-in-no .petal1,
#homepage-other .head-top .sign-in.sign-in-no .petal2,
#homepage-other .head-top .sign-in.sign-in-no .petal3 {
position: absolute;
}
#homepage-other .head-top .sign-in.sign-in-no .petal1 {
width: 24px;
height: 10px;
top: 3px;
left: 55px;
}
#homepage-other .head-top .sign-in.sign-in-no .petal2 {
width: 16px;
height: 14px;
top: 25px;
left: 92px;
}
#homepage-other .head-top .sign-in.sign-in-no .petal3 {
width: 17px;
height: 12px;
top: 25px;
left: 136px;
}
#homepage-other .head-navigation {
margin-bottom: 20px;
}
#homepage-other .head-navigation .icon {
width: 16px;
height: 16px;
}
#homepage-other .head-navigation .arrows {
width: 7px;
height: 12px;
margin: 0 5px;
}
#homepage-other .head-navigation .text {
padding: 0 5px;
font-size: 14px;
color: #000000;
cursor: pointer;
}
#homepage-other .head-navigation .text:hover {
text-decoration: underline;
}
#homepage-other .matter .card-user {
width: 320px;
background: -webkit-linear-gradient(270.06444514deg, #ffffff 0%, #eef8f9 100%);
background: -moz-linear-gradient(179.93555486deg, #ffffff 0%, #eef8f9 100%);
background: linear-gradient(179.93555486deg, #ffffff 0%, #eef8f9 100%);
box-sizing: border-box;
border: 1px solid #e9eef2;
border-radius: 10px;
flex-direction: column;
padding-top: 115px;
padding-bottom: 40px;
}
#homepage-other .matter .card-user .avatar {
width: 120px;
height: 120px;
border-radius: 8px;
}
#homepage-other .matter .card-user .name-area .username {
font-size: 15px;
color: #333;
}
#homepage-other .matter .card-user .name-area .uid {
color: #7f7f7f;
font-size: 13px;
}
#homepage-other .matter .card-user .name-area .uid .icon {
width: 14px;
height: 14px;
margin-left: 9px;
cursor: pointer;
}
#homepage-other .matter .card-user .medal-area {
margin: 0 30px;
align-self: self-start;
}
#homepage-other .matter .card-user .medal-area .title {
font-size: 14px;
color: #7f7f7f;
}
#homepage-other .matter .card-user .medal-area .list {
flex-direction: row;
}
#homepage-other .matter .card-user .medal-area .list .item {
height: 30px;
max-width: 30px;
}