diff --git a/src/assets/images/bg.png b/src/assets/images/bg.png new file mode 100644 index 0000000..655c21a Binary files /dev/null and b/src/assets/images/bg.png differ diff --git a/src/assets/images/bottom-bg.png b/src/assets/images/bottom-bg.png new file mode 100644 index 0000000..af4972f Binary files /dev/null and b/src/assets/images/bottom-bg.png differ diff --git a/src/assets/images/header-bg.png b/src/assets/images/header-bg.png index 84d92c1..57bc167 100644 Binary files a/src/assets/images/header-bg.png and b/src/assets/images/header-bg.png differ diff --git a/src/assets/images/location.png b/src/assets/images/location.png deleted file mode 100644 index a4debb6..0000000 Binary files a/src/assets/images/location.png and /dev/null differ diff --git a/src/assets/images/map.png b/src/assets/images/map.png deleted file mode 100644 index 61e2a58..0000000 Binary files a/src/assets/images/map.png and /dev/null differ diff --git a/src/assets/styles/index.scss b/src/assets/styles/index.scss index 50eab48..6877614 100644 --- a/src/assets/styles/index.scss +++ b/src/assets/styles/index.scss @@ -1,17 +1,18 @@ #screen-container { width: 100%; height: 100vh; - padding: 0 0.175rem; + // padding: 0 0.175rem; font-size: 0.25rem; line-height: 0.35rem; color: #fff; - background-color: #010326; overflow: hidden; + background: url('~@/assets/images/bg.png') no-repeat top center #02061A; + background-size: cover; } .loading{ position: fixed; - top: 1.125rem; + top: 1rem; width: 100%; height:100%; display: flex; @@ -25,53 +26,79 @@ .header-container{ position: relative; width: 100%; - height: 1.125rem; + height: 1rem; font-size: 0.3rem; color: #fff; - &::before, - &::after{ - content: ""; - position: absolute; - top: 0; - width: 6.2rem; - height: 1.05rem; - } - &::before{ - left: 0; - background: url('~@/assets/images/header-left.png') no-repeat top center; - } - &::after{ - right: 0; - background: url('~@/assets/images/header-right.png') no-repeat top center; - } + // &::before, + // &::after{ + // content: ""; + // position: absolute; + // top: 0; + // width: 6.2rem; + // height: 1.05rem; + // } + // &::before{ + // left: 0; + // background: url('~@/assets/images/header-left.png') no-repeat top center; + // } + // &::after{ + // right: 0; + // background: url('~@/assets/images/header-right.png') no-repeat top center; + // } .header-title{ position: relative; - width: 15.85rem; - height: 1.075rem; + width: 15.67rem; + height: 1rem; margin: 0 auto; - background: url('~@/assets/images/header-bg.png') no-repeat top center; + background: url('~@/assets/images/header-bg.png') no-repeat top left; background-size: cover; h2{ - font-size: 0.6rem; - font-family: "ZhenyanGB"; - font-weight: normal; - line-height: 1.125rem; + font-size: 0.3rem; + font-weight: bold; + line-height: .6rem; text-align: center; - letter-spacing: 0.2rem; - background: linear-gradient(180deg, #FFFFFF 0%, #1AC9FF 100%); + /* 文字渐变色 */ + background: -webkit-linear-gradient(180deg, #fff 30%, #77BAFF 100%); + background: linear-gradient(180deg, #fff 30%, #77BAFF 100%); + -webkit-background-clip: text; background-clip: text; + -webkit-text-fill-color: transparent; color: transparent; + /* 底部阴影 */ + text-shadow: 0 4px 4px rgba(0, 0, 0, 0.2); } } .header-text{ position: absolute; - top: 0.65rem; + } .header-weather { - left: 0.6rem; + top: .15rem; + right: 0.08rem; + width: 2.3rem; + overflow: hidden; } .header-date { - right: 0.375rem; + top: .17rem; + left: .17rem; + display: flex; + justify-content: flex-start; + align-items: center; + .time{ + font-size: .3rem; + font-weight: bold; + line-height: .3rem; + padding-right: .17rem; + border-right: 1px solid rgba(255,255,255,.5); + } + .time-other{ + font-size: .14rem; + line-height: .22rem; + padding-left: .17rem; + span{ + display: block; + } + } } } @@ -117,6 +144,38 @@ } } +.bottom-bg{ + position: fixed; + bottom: 0; + left: 50%; + transform: translateX(-50%); + width: 15.82rem; + height: .48rem; + background: url('~@/assets/images/bottom-bg.png') no-repeat top left; + background-size: cover; +} + +// pageOne +.pageOne-database{ + display: flex; + justify-content: space-between; + margin-bottom: .46rem; + .database-left, + .database-right{ + width: 463px; + height: 419px; + background-color: #041231; + } + .database-middle{ + flex: 1 ; + } + .database-title{ + + } +} + + + // 主题内部部分 .screen-main{ display: flex; diff --git a/src/views/header/index.vue b/src/views/header/index.vue index 227c5c1..e6824bd 100644 --- a/src/views/header/index.vue +++ b/src/views/header/index.vue @@ -1,32 +1,38 @@