<template>
|
<div class="container">
|
<div class="title">
|
<i></i>物联设备
|
</div>
|
<div class="devices-container">
|
<div class="online">
|
<span>
|
<i>964</i> 台
|
</span>
|
<img src="/zhjg/img/home/在线.png" alt />在线
|
</div>
|
<div class="offline">
|
<span>
|
<i>86</i> 台
|
</span>
|
<img src="/zhjg/img/home/离线.png" alt />离线
|
</div>
|
</div>
|
</div>
|
</template>
|
|
<script>
|
export default {
|
data () {
|
return {
|
}
|
},
|
|
|
}
|
</script>
|
|
<style lang="scss" scoped>
|
.container {
|
position: relative;
|
width: 400px;
|
height: 100%;
|
background: url(/zhjg/img/home/juxing2.png) no-repeat;
|
background-size: 100% 100%;
|
.title {
|
position: absolute;
|
display: flex;
|
top: 16px;
|
left: 16px;
|
width: 78px;
|
height: 18px;
|
color: #ffffff;
|
font-size: 16px;
|
font-weight: 400;
|
vertical-align: middle;
|
justify-content: space-between;
|
align-items: center;
|
i {
|
display: inline-block;
|
width: 3px;
|
height: 16px;
|
background-color: #28f2ff;
|
}
|
}
|
.devices-container {
|
padding-top: 50px;
|
display: flex;
|
height: calc(100% - 50px);
|
justify-content: space-around;
|
div {
|
position: relative;
|
text-align: center;
|
color: #e9f2f3;
|
font-size: 16px;
|
display: flex;
|
flex-direction: column;
|
span {
|
position: absolute;
|
left: 50%;
|
top: 93px;
|
transform: translateX(-50%);
|
i {
|
font-size: 22px;
|
font-weight: bold;
|
}
|
}
|
}
|
.online i {
|
color: #30ffd1;
|
}
|
.offline i {
|
color: #ffcf29;
|
}
|
}
|
}
|
</style>
|