From a11c01dc63f2b22f9654dd8acf2bef781841800f Mon Sep 17 00:00:00 2001 From: lb Date: Tue, 11 Jul 2023 11:20:17 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E5=AE=8C=E6=88=90header=E7=9A=84?= =?UTF-8?q?=E9=87=8D=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/layout/Header.vue | 47 ++++++++++----------------- src/utils/slider.vue | 45 ++++++++++++++++++++++++++ src/views/HomeView.vue | 55 +++++++++++++++++++++++--------- src/views/LeftSide.vue | 26 +++++++++++++++ src/views/RightSide.vue | 26 +++++++++++++++ 5 files changed, 154 insertions(+), 45 deletions(-) create mode 100644 src/utils/slider.vue create mode 100644 src/views/LeftSide.vue create mode 100644 src/views/RightSide.vue diff --git a/src/components/layout/Header.vue b/src/components/layout/Header.vue index a079ed9..ec262fa 100644 --- a/src/components/layout/Header.vue +++ b/src/components/layout/Header.vue @@ -70,33 +70,30 @@ export default { @import "../../assets/styles/variables"; header { - background: url(../../assets/header.png) center / 65% 100% no-repeat; - // background-size: 100% 100%; - // background-size: 13515px 634px; - // background-position: bottom; - height: adjust(h(580px)); - width: adjust(w(21120px)); + width: 100%; + height: 628px; + background: url(../../assets/header.png) no-repeat; display: grid; place-items: center; - // padding-bottom: adjust(2px); >div { + margin-bottom: 72px; display: flex; align-items: center; - margin-bottom: adjust(10px); - margin-left: adjust(64px); .header--logo { - width: adjust(128px); - height: adjust(h(337px)); + width: 648px; + height: 337px; + margin-right: 96px; background: url(../../assets/logo.png) center/contain no-repeat; } h1 { - margin-left: adjust(20px); - font-size: adjust(42px); + font-size: 220px; + line-height: 330px; + margin: 0; + letter-spacing: 36px; user-select: none; - letter-spacing: adjust(6px); font-weight: 600; color: $main-color; font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, "微软雅黑", Arial, Helvetica, sans-serif; @@ -105,34 +102,24 @@ header { } .header--wing { - top: adjust(h(128px)); + top: 138px; left: 0; - bottom: adjust(10px); - height: adjust(h(130px)); + line-height: 130px; + font-size: 130px; font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, "微软雅黑", Arial, Helvetica, sans-serif; } .company { - margin-left: adjust(w(4035px)); - height: adjust(h(130px)); - // font-weight: 600; + left: 240px; text-align: center; color: lighten($main-color, 8); - font-size: adjust(h(90px)); - letter-spacing: unset; - // background: red; - // width: adjust(w(1320px)); - // background: url("../../assets/company.png") center/cover no-repeat; } .datetime { + left: unset; + right: 160px; color: $main-color; - font-size: adjust(h(90px)); text-align: center; - margin-left: adjust(w(15420px)); color: lighten($main-color, 8); - height: adjust(h(130px)); - // width: adjust(w(1764px)); - // background: url("../../assets/date.png") center/cover no-repeat; } diff --git a/src/utils/slider.vue b/src/utils/slider.vue new file mode 100644 index 0000000..a76ec44 --- /dev/null +++ b/src/utils/slider.vue @@ -0,0 +1,45 @@ + + + + + diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue index 140a736..0307358 100644 --- a/src/views/HomeView.vue +++ b/src/views/HomeView.vue @@ -1,37 +1,62 @@ diff --git a/src/views/LeftSide.vue b/src/views/LeftSide.vue new file mode 100644 index 0000000..cbfdbb8 --- /dev/null +++ b/src/views/LeftSide.vue @@ -0,0 +1,26 @@ + + + + + diff --git a/src/views/RightSide.vue b/src/views/RightSide.vue new file mode 100644 index 0000000..c2a39fe --- /dev/null +++ b/src/views/RightSide.vue @@ -0,0 +1,26 @@ + + + + +