diff --git a/src/assets/images/index/brief.png b/src/assets/images/index/brief.png new file mode 100644 index 0000000..3d942ba Binary files /dev/null and b/src/assets/images/index/brief.png differ diff --git a/src/assets/images/index/digital.png b/src/assets/images/index/digital.png new file mode 100644 index 0000000..be66dff Binary files /dev/null and b/src/assets/images/index/digital.png differ diff --git a/src/assets/images/index/guide.png b/src/assets/images/index/guide.png new file mode 100644 index 0000000..8699dda Binary files /dev/null and b/src/assets/images/index/guide.png differ diff --git a/src/assets/images/index/logo.png b/src/assets/images/index/logo.png new file mode 100644 index 0000000..8897e7e Binary files /dev/null and b/src/assets/images/index/logo.png differ diff --git a/src/assets/images/index/newbook.png b/src/assets/images/index/newbook.png new file mode 100644 index 0000000..41a671e Binary files /dev/null and b/src/assets/images/index/newbook.png differ diff --git a/src/assets/images/index/search.png b/src/assets/images/index/search.png new file mode 100644 index 0000000..3eea258 Binary files /dev/null and b/src/assets/images/index/search.png differ diff --git a/src/assets/images/index/title.png b/src/assets/images/index/title.png new file mode 100644 index 0000000..af5d270 Binary files /dev/null and b/src/assets/images/index/title.png differ diff --git a/src/assets/styles/index.scss b/src/assets/styles/index.scss index ed11388..c8d32ac 100644 --- a/src/assets/styles/index.scss +++ b/src/assets/styles/index.scss @@ -8,7 +8,170 @@ background-color: #010326; overflow: hidden; } +.index-box{ + background: url('~@/assets/images/index/bg.png') no-repeat 0 0; + background-size: cover; + header{ + height: 200px; + width: 100%; + display: flex; + align-items: center; + padding: 0 60px; + .logo{ + width: 675px; + height: 90px; + background: url('~@/assets/images/index/logo.png') no-repeat 0 0; + margin-right: 70px; + } + .header-title{ + width: 800px; + height: 100px; + background: url('~@/assets/images/index/title.png') no-repeat 0 0; + } + } + main{ + width: 1200px; + margin: 0 auto; + color: #333; + font-size: 40px; + .up-box{ + height: calc(100vh - 241px); + display: flex; + justify-content: space-between; + width: 100%; + position: relative; + .bg-middle{ + width: 760px; + height: 180px; + .span-middle{ + padding-left: 127px; + position: relative; + line-height: 180px; + &::before{ + display: block; + width: 87px; + height: 80px; + content: ""; + position: absolute; + left: 0; + top: -20px; + } + } + } + .bg-big{ + width: 400px; + height: 620px; + .span-big{ + padding-top: 350px; + display: inline-block; + position: relative; + &::before{ + display: block; + content: ""; + position: absolute; + left: 0; + bottom: 80px; + } + } + } + .bg-small{ + .span-small{ + line-height: 180px; + position: relative; + margin-left: 90px; + &::before{ + display: block; + width: 73px; + height: 59px; + content: ""; + position: absolute; + left: -83px; + top: 50%; + transform: translateY(-50%); + } + } + } + .up-left{ + height: calc(100vh - 255px); + .brief{ + margin-bottom: 40px; + background: url('~@/assets/images/index/760 180 up.png') no-repeat 0 0; + background-size: contain; + span::before{ + background: url('~@/assets/images/index/brief.png') no-repeat 0 0; + background-size: contain; + } + } + .up-left-down{ + width: 760px; + height: 620px; + // height: 100%; + display: flex; + justify-content: space-between; + .guide{ + background: url('~@/assets/images/index/400 620 left.png') no-repeat 0 0; + background-size: contain; + span::before{ + width: 153px; + height: 200px; + background: url('~@/assets/images/index/guide.png') no-repeat 0 0; + background-size: contain; + } + } + .right-of-guide{ + div{ + width: 320px; + height: 180px; + &.new-book{ + background: url('~@/assets/images/index/320 180 up.png') no-repeat 0 0; + background-size: contain; + margin-bottom: 40px; + span::before{ + background: url('~@/assets/images/index/newbook.png') no-repeat 0 0; + background-size: contain; + } + } + &.digital{ + background: url('~@/assets/images/index/320 180 down.png') no-repeat 0 0; + background-size: contain; + span::before{ + background: url('~@/assets/images/index/digital.png') no-repeat 0 0; + background-size: contain; + } + } + } + } + } + } + .up-right{ + background: url('~@/assets/images/index/400 620 right.png') no-repeat 0 0; + background-size: contain; + span::before{ + width: 240px; + height: 200px; + left: -40px !important; + background: url('~@/assets/images/index/search.png') no-repeat 0 0; + background-size: contain; + } + } + .activities{ + background: url('~@/assets/images/index/760 180 down.png') no-repeat 0 0; + background-size: contain; + position: absolute; + right: 0; + top: 660px; + span::before{ + background: url('~@/assets/images/index/activities.png') no-repeat 0 0; + background-size: contain; + } + } + } + } +} +.tac{ + text-align: center; +} // 头部主题标题 .header-container{ position: relative; diff --git a/src/views/index.vue b/src/views/index.vue index 3ec0147..be13904 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -1,46 +1,32 @@