update header

This commit is contained in:
lb 2023-09-08 11:12:58 +08:00
parent 168f4af5fc
commit 2c2790a473
4 changed files with 34 additions and 29 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 141 KiB

After

Width:  |  Height:  |  Size: 309 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 8.2 KiB

View File

@ -1,5 +1,5 @@
<template> <template>
<header class="header relative"> <header class="header">
<div> <div>
<span class="header--logo"> <span class="header--logo">
<!-- <img src="../../assets/logo.png" alt="logo"> --> <!-- <img src="../../assets/logo.png" alt="logo"> -->
@ -8,20 +8,20 @@
</div> </div>
<span class="header--wing absolute company"></span> <span class="header--wing absolute company"></span>
<span class="header--wing absolute datetime"> <span class="header--wing absolute datetime">
{{ moment(today).format('YYYY.M.D dddd HH:mm:ss') }} {{ moment(today).format("YYYY.M.D dddd HH:mm:ss") }}
</span> </span>
</header> </header>
</template> </template>
<script> <script>
import moment from 'moment' import moment from "moment";
export default { export default {
name: "Header", name: "Header",
data() { data() {
return { return {
today: new Date(), today: new Date(),
time: "00:00:00", time: "00:00:00",
moment moment,
}; };
}, },
computed: { computed: {
@ -41,10 +41,10 @@ export default {
}, },
}, },
mounted() { mounted() {
moment.locale('zh-cn') moment.locale("zh-cn");
// this.time = this.getTime().join(":"); // this.time = this.getTime().join(":");
setInterval(() => { setInterval(() => {
this.today = new Date() this.today = new Date();
// this.time = this.getTime().join(":"); // this.time = this.getTime().join(":");
}, 1000); }, 1000);
}, },
@ -66,19 +66,26 @@ export default {
@import "../../assets/styles/variables"; @import "../../assets/styles/variables";
header { header {
background: url(../../assets/header.png) center/contain no-repeat; position: absolute;
background-size: 100%; width: 100%;
height: 141px; top: 0;
width: 2672px; left: 0;
z-index: 10000;
background: url(../../assets/header.png) no-repeat;
background-position: center;
background-size: contain;
// background-size: 100%;
height: 146px;
display: grid; display: grid;
place-items: center; place-content: center;
> div { > div {
display: flex; display: flex;
align-items: center; align-items: center;
margin-bottom: adjust(10px); margin-bottom: 0;
.header--logo { .header--logo {
margin-top: 12px;
width: 64px; width: 64px;
height: 94px; height: 94px;
background: url(../../assets/logo.png) center/contain no-repeat; background: url(../../assets/logo.png) center/contain no-repeat;
@ -87,12 +94,9 @@ header {
h1 { h1 {
margin-left: 36px; margin-left: 36px;
font-size: 72px; font-size: 72px;
// line-height: adjust(100px);
// background: #eee;
user-select: none; user-select: none;
letter-spacing: 12px; letter-spacing: 14px;
font-weight: 400; font-weight: 400;
// color: #6bf2ff;
color: $main-color; color: $main-color;
font-family: "微软雅黑", sans-serif; font-family: "微软雅黑", sans-serif;
} }
@ -101,25 +105,26 @@ header {
.header--wing { .header--wing {
left: 0; left: 0;
bottom: adjust(10px); bottom: -20px;
height: adjust(h(78px)); height: 72px;
} }
.company { .company {
margin-left: adjust(w(1460px)); margin-left: 1458px;
width: adjust(w(1320px)); width: 768px;
height: adjust(h(48px)); height: 67px;
background: url("../../assets/company.png") center/cover no-repeat; background: url("../../assets/company.png") center/cover no-repeat;
} }
.datetime { .datetime {
color: $main-color; color: $main-color;
font-size: adjust(26px); font-size: 48px;
text-align: center; text-align: center;
// display: inline-block; // display: inline-block;
margin-left: adjust(w(6150px)); left: unset;
width: adjust(w(1320px)); right: 1573px;
height: adjust(h(48px)); width: 646px;
height: 67px;
background: url("../../assets/date.png") center/cover no-repeat; background: url("../../assets/date.png") center/cover no-repeat;
} }
</style> </style>

View File

@ -8,9 +8,8 @@
<!-- <div class="bg-layer"></div> --> <!-- <div class="bg-layer"></div> -->
<LeftSide /> <LeftSide />
<section class="center"> <section class="center">
<header style="height: 1px"></header> <BigHeader />
<!-- <BigHeader /> --> <MainPanel style="height: 1px; flex: 1" />
<MainPanel style="height: 1px; flex: 1;" />
<!-- <Main /> --> <!-- <Main /> -->
</section> </section>
<RightSide /> <RightSide />
@ -103,6 +102,7 @@ export default {
} }
.center { .center {
position: relative;
width: 6592px; width: 6592px;
// flex: 1; // flex: 1;
display: flex; display: flex;
@ -120,7 +120,7 @@ export default {
background: #fff; background: #fff;
position: fixed; position: fixed;
// bottom: 64px; // bottom: 64px;
bottom: 0; top: 0;
opacity: 0; opacity: 0;
left: 50%; left: 50%;
transform: translateX(-50%); transform: translateX(-50%);