103 lines
2.0 KiB
Vue
103 lines
2.0 KiB
Vue
<template>
|
|
<div id="app">
|
|
<div class="top">
|
|
<div class="topLeft">
|
|
<div style="color:rgb(56,171,192)">
|
|
2023-02-09
|
|
</div>
|
|
|
|
|
<div>
|
|
2:37:05
|
|
</div>
|
|
</div>
|
|
<div class="topCenter">
|
|
<div class="topText" text="国网南京雨花供电营业厅">
|
|
国网南京雨花供电营业厅
|
|
</div>
|
|
|
|
</div>
|
|
<div class="topRight"></div>
|
|
</div>
|
|
<div class="main">
|
|
<router-view />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
|
|
export default {
|
|
name: 'App',
|
|
components: {
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
@import "./assets/index.css";
|
|
#app {
|
|
font-family: Avenir, Helvetica, Arial, sans-serif;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
text-align: center;
|
|
/* background: url("./assets/images/bj1.png") no-repeat; */
|
|
/* background-size: 100% 100%; */
|
|
background: #040f26;
|
|
}
|
|
body{
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
</style>
|
|
<style lang="less" scoped>
|
|
.top{
|
|
width: 100%;
|
|
height: 93px;
|
|
display: flex;
|
|
jjustify-content: space-evenly;
|
|
.topLeft{
|
|
width: 11%;
|
|
height: 55%;
|
|
color: #ffffff;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
justify-content: space-evenly;
|
|
font-size: 20px;
|
|
}
|
|
.topCenter{
|
|
width: 76%;
|
|
height: 100%;
|
|
background: url("./assets/images/topBg.png") no-repeat;
|
|
background-size: 100% 100%;
|
|
display: flex;
|
|
justify-content: center;
|
|
.topText{
|
|
height: 65%;
|
|
font-size: 35px;
|
|
display: flex;
|
|
align-items: center;
|
|
color: #ffffff;
|
|
}
|
|
.topText:before{
|
|
content: attr(text);
|
|
position: absolute;
|
|
z-index: 10;
|
|
color:rgb(86, 254, 246);
|
|
-webkit-mask:linear-gradient(to top , transparent,);
|
|
}
|
|
}
|
|
.topRight{
|
|
width: 11%;
|
|
height: 100%;
|
|
border: 1px solid blue;
|
|
}
|
|
}
|
|
.main{
|
|
height: calc(1080px - 93px);
|
|
width: 100%;
|
|
position: relative;
|
|
top: -40px;
|
|
}
|
|
</style>
|