diff --git a/src/App.vue b/src/App.vue index 02b8155..d1cebdd 100644 --- a/src/App.vue +++ b/src/App.vue @@ -5,10 +5,12 @@ --> @@ -171,15 +223,16 @@ const openNewProject = () => { padding: 12px; display: flex; flex-direction: column; - justify-content: space-between; background-color: #181818; + justify-content: space-between; } /* 用户信息区 */ .user-section { text-align: center; - margin-bottom: 20px; + margin-top: 20px; display: flex; + justify-content: space-around; } .avatar { @@ -187,17 +240,33 @@ const openNewProject = () => { height: 60px; background: #444; border-radius: 50%; - margin: 0 auto 8px; + overflow: hidden; + + img { + width: 100%; + height: 100%; + } } .user-id { font-size: 14px; font-weight: 500; + line-height: 20px; +} + +.user-info { + height: 60px; + display: flex; + flex-direction: column; + justify-content: space-around; } .user-label { font-size: 12px; - color: #999; + color: #fff; + background: rgba(255, 255, 255, 0.2); + border-radius: 2px; + line-height: 20px; } /* 导航菜单 */ @@ -215,7 +284,7 @@ const openNewProject = () => { margin: 4px 0; box-sizing: border-box; display: flex; - color: #ffffff99; + color: #f8f8ff99; .el-icon { margin-right: 6px; @@ -228,7 +297,7 @@ const openNewProject = () => { } .nav-menu li.active { - background: rgb(5, 85, 158); + background: #0078d4; font-weight: 500; } @@ -249,11 +318,16 @@ const openNewProject = () => { } .ad-img { - width: 80px; + width: 80%; height: 80px; background: #444; border-radius: 4px; margin: 0 auto 12px; + + img { + width: 100%; + height: 100%; + } } .ad-title { @@ -305,33 +379,38 @@ const openNewProject = () => { height: 300px; position: relative; text-align: center; - margin-bottom: 24px; - background-image: url("@/assets/banner.png"); - background-size: cover; - background-repeat: no-repeat; - background-position: center center; - - &::before { - content: ""; - left: 0; - right: 0; - top: 0; - bottom: 0; - background: rgba(0, 0, 0, 0.5); - position: absolute; - z-index: 9; - } h1 { margin: 0; } .banner-content { - position: absolute; - z-index: 20; - left: 50%; - top: 50%; - transform: translate3d(-50%, -50%, 0); + position: relative; + height: 100%; + width: 100%; + background-image: url("@/assets/banner.png"); + background-size: cover; + background-repeat: no-repeat; + background-position: center center; + + &::before { + content: ""; + left: 0; + right: 0; + top: 0; + bottom: 0; + background: rgba(0, 0, 0, 0.5); + position: absolute; + z-index: 9; + } + + &-info { + position: absolute; + left: 50%; + top: 50%; + transform: translate3d(-50%, -50%, 0); + z-index: 200; + } } } @@ -377,10 +456,14 @@ const openNewProject = () => { /* 项目操作栏 */ .project-actions { - display: flex; justify-content: space-between; align-items: center; - margin-bottom: 24px; + padding: 16px; + position: relative; +} + +.action-buttons { + display: flex; } .action-buttons button { @@ -392,10 +475,16 @@ const openNewProject = () => { color: #fff; margin-right: 8px; transition: background 0.3s; + display: flex; + + .el-icon { + margin-right: 4px; + } } .action-buttons button:hover { - background: #383838; + background: #0078d4; + border: 1px solid #0078d4; } .tab-group span { @@ -413,6 +502,12 @@ const openNewProject = () => { font-weight: 500; } +.search-box { + position: absolute; + right: 20px; + top: 60px; +} + .search-box input { background: rgb(26, 27, 29); border: 1px solid #444; @@ -431,15 +526,19 @@ const openNewProject = () => { display: flex; flex-wrap: wrap; gap: 24px; + padding: 16px; + padding-top: 0; } .project-card { - width: 240px; + width: 300px; + height: 220px; background: rgb(26, 27, 29); border-radius: 8px; - padding: 16px; + padding: 18px; text-align: center; transition: transform 0.3s; + cursor: pointer; } .project-card:hover { @@ -448,7 +547,7 @@ const openNewProject = () => { .card-img { width: 100%; - height: 120px; + height: 170px; background: #444; border-radius: 4px; margin-bottom: 12px; @@ -478,4 +577,59 @@ const openNewProject = () => { width: 160px; background: rgb(15, 15, 15); } +.splitdot { + margin: 0 20px !important; + display: inline-block; +} +.split-line { + height: 1px; + width: 160px; + background: rgba(0, 0, 0, 0.7); + margin: 30px auto; +} +.demo-tabs > .el-tabs__content { + padding: 32px; + color: #6b778c; + font-size: 32px; + font-weight: 600; +} +::v-deep { + .el-tabs__item { + color: #ffffff80; + } + .el-tabs__item.is-active { + color: #fff !important; + } + .el-tabs__nav-wrap::after { + background-color: rgba(255, 255, 255, 0.1); + } + .el-input__wrapper { + background: rgba(0, 0, 0, 0.3); + box-shadow: none; + border: 1px solid rgba(255, 255, 255, 0.2); + } + .card-body { + background: transparent; + padding: 0; + } + .el-card { + background: transparent; + border: 0; + } +} +.card-content { + width: 100%; + border-radius: 8px; + overflow: hidden; + height: 270px; + img { + height: 280px; + } +} + +.project-item-info { + display: flex; + justify-content: space-between; + margin-bottom: 16px; +} \ No newline at end of file