add Header

This commit is contained in:
lb
2023-05-08 15:15:43 +08:00
parent bf70872359
commit 822df97edd
14 changed files with 162 additions and 3 deletions

66
src/components/Header.vue Normal file
View File

@@ -0,0 +1,66 @@
<template>
<header class="header relative">
<div>
<span style="width: 50px; height: 50px; background: red"></span>
<h1>凯盛晶华玻璃院公司800t/d特种玻璃生产线大数据指挥中心</h1>
</div>
<span class="header--wing absolute company"></span>
<span class="header--wing absolute datetime"></span>
</header>
</template>
<script>
export default {
name: "Header",
};
</script>
<style scoped lang="scss">
@import "../assets/styles/functions";
@import "../assets/styles/variables";
header {
background: url(../assets/header.png) center/cover no-repeat;
height: h(300px);
width: $actual_width;
display: grid;
place-items: center;
> div {
display: flex;
align-items: center;
margin-bottom: 20px;
h1 {
margin-left: 20px;
font-size: 40px;
// line-height: 100px;
// background: #eee;
user-select: none;
letter-spacing: 8px;
font-weight: 500;
// color: #6bf2ff;
color: $main-color;
font-family: "微软雅黑", "MS YaHei", "Helvicate", sans-serif;
}
}
}
.header--wing {
left: 0;
bottom: 10px;
height: h(78px);
}
.company {
margin-left: w(1180px);
width: w(1460px);
background: url("../assets/company.png") center/cover no-repeat;
}
.datetime {
margin-left: w(6300px);
width: w(1407px);
background: url("../assets/date.png") center/cover no-repeat;
}
</style>

27
src/components/Main.vue Normal file
View File

@@ -0,0 +1,27 @@
<template>
<main>
main content
</main>
</template>
<script>
export default {
name: "Main",
props: {},
data() {
return {};
},
created() {},
mounted() {},
methods: {},
};
</script>
<style scoped lang="scss">
@import '../assets/styles/functions';
main {
height: 1px;
flex: 1;
}
</style>