feat: 新增用户主页和个人主页功能
新增用户主页和个人主页的HTML、CSS和JS文件 添加相关图片资源 重构sectionIndex页面为section-index.html 更新sectionIndex.js以支持组件导入
This commit is contained in:
269
css/homepage-other.less
Normal file
269
css/homepage-other.less
Normal file
@@ -0,0 +1,269 @@
|
||||
* {
|
||||
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: rgba(238, 242, 245, 1);
|
||||
}
|
||||
|
||||
/* 公共的 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;
|
||||
.head-top {
|
||||
margin-bottom: 30px;
|
||||
|
||||
.logo {
|
||||
height: 52px;
|
||||
}
|
||||
|
||||
.input-box {
|
||||
width: 370px;
|
||||
height: 40px;
|
||||
background-color: rgba(235, 235, 235, 1);
|
||||
border: 2px solid rgba(215, 215, 215, 1);
|
||||
border-radius: 11px;
|
||||
padding: 0 15px;
|
||||
justify-content: space-between;
|
||||
margin-right: 20px;
|
||||
|
||||
.input {
|
||||
border: none;
|
||||
outline: none;
|
||||
height: 100%;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.icon {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
margin-left: 15rpx;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
|
||||
.sign-in {
|
||||
width: 192px;
|
||||
height: 40px;
|
||||
border-radius: 83px;
|
||||
cursor: pointer;
|
||||
|
||||
&.sign-in-already {
|
||||
background-color: #ffffff;
|
||||
font-size: 14px;
|
||||
color: #333;
|
||||
.sign-icon {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
&.sign-in-no {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
padding-right: 8px;
|
||||
.sign-in-bj {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: -1;
|
||||
width: 190px;
|
||||
height: 40px;
|
||||
}
|
||||
|
||||
.coin-bj {
|
||||
position: absolute;
|
||||
width: 157px;
|
||||
height: 33px;
|
||||
top: 4px;
|
||||
left: 29px;
|
||||
}
|
||||
|
||||
.coin-icon {
|
||||
width: 43px;
|
||||
height: 51px;
|
||||
align-self: flex-end;
|
||||
z-index: 1;
|
||||
margin-left: -2px;
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
|
||||
.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;
|
||||
|
||||
.sign-go-bj {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
z-index: -1;
|
||||
}
|
||||
}
|
||||
|
||||
.petal1,
|
||||
.petal2,
|
||||
.petal3 {
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.petal1 {
|
||||
width: 24px;
|
||||
height: 10px;
|
||||
top: 3px;
|
||||
left: 55px;
|
||||
}
|
||||
|
||||
.petal2 {
|
||||
width: 16px;
|
||||
height: 14px;
|
||||
top: 25px;
|
||||
left: 92px;
|
||||
}
|
||||
.petal3 {
|
||||
width: 17px;
|
||||
height: 12px;
|
||||
top: 25px;
|
||||
left: 136px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.head-navigation {
|
||||
margin-bottom: 20px;
|
||||
.icon {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
.arrows {
|
||||
width: 7px;
|
||||
height: 12px;
|
||||
margin: 0 5px;
|
||||
}
|
||||
|
||||
.text {
|
||||
padding: 0 5px;
|
||||
font-size: 14px;
|
||||
color: #000000;
|
||||
cursor: pointer;
|
||||
&:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.matter {
|
||||
.card-user {
|
||||
width: 320px;
|
||||
background: -webkit-linear-gradient(270.064445137829deg, rgba(255, 255, 255, 1) 0%, rgba(238, 248, 249, 1) 100%);
|
||||
background: -moz-linear-gradient(179.935554862171deg, rgba(255, 255, 255, 1) 0%, rgba(238, 248, 249, 1) 100%);
|
||||
background: linear-gradient(179.935554862171deg, rgba(255, 255, 255, 1) 0%, rgba(238, 248, 249, 1) 100%);
|
||||
box-sizing: border-box;
|
||||
border: 1px solid rgba(233, 238, 242, 1);
|
||||
border-radius: 10px;
|
||||
flex-direction: column;
|
||||
padding-top: 115px;
|
||||
padding-bottom: 40px;
|
||||
|
||||
.avatar {
|
||||
width: 120px;
|
||||
height: 120px;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.name-area {
|
||||
.username {
|
||||
font-size: 15px;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.uid {
|
||||
color: #7f7f7f;
|
||||
font-size: 13px;
|
||||
.icon {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
margin-left: 9px;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.medal-area {
|
||||
margin: 0 30px;
|
||||
align-self: self-start;
|
||||
.title {
|
||||
font-size: 14px;
|
||||
color: #7f7f7f;
|
||||
}
|
||||
|
||||
.list {
|
||||
flex-direction: row;
|
||||
.item {
|
||||
height: 30px;
|
||||
max-width: 30px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.matter-content {
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user