diff --git a/css/indexSide.css b/css/indexSide.css new file mode 100644 index 0000000..29ab3a8 --- /dev/null +++ b/css/indexSide.css @@ -0,0 +1,160 @@ +* { + padding: 0; + margin: 0; + box-sizing: border-box; + text-decoration: auto; + word-break: break-word; +} +.one-line-display { + word-break: keep-all; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} +.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; +} +.project { + width: 394px; + margin: 50px auto; +} +.project .project-list { + flex-wrap: wrap; + justify-content: space-between; + margin-bottom: 4px; +} +.project .project-list .item { + width: 460px; + width: 100%; + background-color: #ffffff; + border: 1px solid #f2f2f2; + padding: 20px 16px 10px; + position: relative; +} +.project .project-list .item .school { + font-size: 14px; + color: #333333; + position: absolute; + top: 20px; + right: 16px; +} +.project .project-list .item .school .icon { + height: 18px; + margin-right: 8px; +} +.project .project-list .item .name { + font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif; + font-weight: 650; + font-style: normal; + font-size: 16px; + color: #000000; + margin-bottom: 6px; + padding-right: 80px; +} +.project .project-list .item .english { + font-family: "PingFangSC-Regular", "PingFang SC", sans-serif; + font-weight: 400; + font-style: normal; + font-size: 13px; + margin-bottom: 10px; + color: #7f7f7f; +} +.project .project-list .item .introduce { + color: #555555; + font-size: 14px; + margin-bottom: 9px; + flex-wrap: wrap; +} +.project .project-list .item .introduce .quantity { + font-family: "Arial-Black", "Arial Black", sans-serif; + font-weight: 900; + color: #000000; + margin-left: 8px; +} +.project .project-list .item .introduce .line { + color: #d7d7d7; + margin: 0 7px; +} +.project .project-list .item .word { + background-color: #f9f8f8; + border-radius: 5px; + padding: 9px 10px; + font-size: 14px; + color: #7f7f7f; + margin-bottom: 12px; +} +.project .project-list .item .word .img { + width: 15px; + height: 10px; +} +.project .project-btn { + width: 361px; + height: 40px; + line-height: 40px; + background-color: #333333; + border-radius: 141px; + font-size: 16px; + color: #ffffff; + display: flex; + justify-content: center; + align-items: center; + cursor: pointer; +} +.project .project-btn .img { + width: 18px; + height: 18px; + margin-left: 10px; +} +.project .tag { + flex-wrap: wrap; +} +.project .tag .tag-item { + width: fit-content; + height: 20px; + line-height: 20px; + background-color: #f9f8f8; + border: 1px solid #aaaaaa; + border-radius: 6px; + padding: 0 6px; + font-size: 12px; + color: #7f7f7f; + margin-right: 10px; + margin-bottom: 10px; + display: flex; + align-items: center; +} +.project .tag .tag-item.gray { + background-color: #333333; + color: #ffffff; + border: none; +} +.project .tag .tag-item.semester { + color: #ffffff; + background-color: #f95d5d; + border: none; +} +.project .tag .tag-item.admissions { + background-color: #73d1e5; + border: none; + color: #fff; +} diff --git a/css/indexSide.less b/css/indexSide.less new file mode 100644 index 0000000..23a3729 --- /dev/null +++ b/css/indexSide.less @@ -0,0 +1,179 @@ +* { + padding: 0; + margin: 0; + box-sizing: border-box; + text-decoration: auto; + word-break: break-word; +} + +.one-line-display { + word-break: keep-all; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + +.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; +} + +.project { + width: 394px; + margin: 50px auto; + .project-list { + flex-wrap: wrap; + justify-content: space-between; + margin-bottom: 4px; + .item { + width: 460px; + width: 100%; + background-color: rgba(255, 255, 255, 1); + border: 1px solid rgba(242, 242, 242, 1); + // border-radius: 12px; + padding: 20px 16px 10px; + // margin-bottom: 19px; + position: relative; + .school { + font-size: 14px; + color: #333333; + // margin-bottom: 14px; + position: absolute; + top: 20px; + right: 16px; + .icon { + height: 18px; + margin-right: 8px; + } + } + .name { + font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif; + font-weight: 650; + font-style: normal; + font-size: 16px; + color: #000000; + margin-bottom: 6px; + padding-right: 80px; + } + + .english { + font-family: "PingFangSC-Regular", "PingFang SC", sans-serif; + font-weight: 400; + font-style: normal; + font-size: 13px; + margin-bottom: 10px; + color: #7f7f7f; + } + .introduce { + color: #555555; + font-size: 14px; + margin-bottom: 9px; + flex-wrap: wrap; + .quantity { + font-family: "Arial-Black", "Arial Black", sans-serif; + font-weight: 900; + color: #000000; + margin-left: 8px; + } + .line { + color: #d7d7d7; + margin: 0 7px; + } + } + .word { + background-color: rgba(249, 248, 248, 1); + border-radius: 5px; + padding: 9px 10px; + font-size: 14px; + color: #7f7f7f; + margin-bottom: 12px; + + .img { + width: 15px; + height: 10px; + } + } + } + } + + .project-btn { + width: 361px; + height: 40px; + line-height: 40px; + background-color: rgba(51, 51, 51, 1); + border-radius: 141px; + font-size: 16px; + color: #ffffff; + display: flex; + justify-content: center; + align-items: center; + cursor: pointer; + + .img { + width: 18px; + height: 18px; + margin-left: 10px; + } + } + + .tag { + flex-wrap: wrap; + .tag-item { + width: fit-content; + height: 20px; + line-height: 20px; + background-color: rgba(249, 248, 248, 1); + border: 1px solid rgba(170, 170, 170, 1); + border-radius: 6px; + padding: 0 6px; + font-size: 12px; + color: #7f7f7f; + margin-right: 10px; + margin-bottom: 10px; + // flex-wrap: wrap; + display: flex; + align-items: center; + &.gray { + background-color: rgba(51, 51, 51, 1); + color: #ffffff; + border: none; + } + + &.semester { + color: #ffffff; + background-color: rgba(249, 93, 93, 1); + border: none; + } + + &.admissions { + background-color: rgba(115, 209, 229, 1); + border: none; + color: #fff; + } + } + } +} diff --git a/html/indexSide.html b/html/indexSide.html new file mode 100644 index 0000000..507f30e --- /dev/null +++ b/html/indexSide.html @@ -0,0 +1,163 @@ + + +
+ + +