vehicle-monitor/src/components/CommonHeader/CommonHeader.vue

72 lines
1.4 KiB
Vue
Raw Normal View History

2025-02-28 22:57:26 +08:00
<script lang="ts" setup>
import { useRouter } from 'vue-router';
2025-03-01 21:32:03 +08:00
import BarOp from '@/components/CommonHeader/HeaderBarOp.vue';
2025-03-01 20:52:06 +08:00
import { resetRouter } from '@/router';
2025-02-28 22:57:26 +08:00
const router = useRouter();
</script>
2025-02-25 23:14:50 +08:00
<template>
<header class="h-[105px]">
2025-02-27 13:41:42 +08:00
<div class="time c-primary">2025年2月25日22:45:14</div>
2025-02-25 23:14:50 +08:00
<div class="title">
2025-02-27 13:41:42 +08:00
<h1 class="c-white">智慧智能监管中心</h1>
<h2 class="c-primary-secondary">车辆监控中心</h2>
2025-02-28 22:57:26 +08:00
<img
alt="icon-setting"
class="ml-[-284px]"
src="@/assets/images/icon/icon-home.png"
2025-03-01 20:52:06 +08:00
@click="resetRouter()"
2025-02-28 22:57:26 +08:00
/>
<img alt="icon-home" class="ml-[284px]" src="@/assets/images/icon/icon-setting.png" />
2025-02-25 23:14:50 +08:00
</div>
2025-02-28 22:57:26 +08:00
<BarOp />
2025-02-25 23:14:50 +08:00
</header>
</template>
<style lang="scss" scoped>
header {
position: relative;
2025-02-28 20:48:27 +08:00
background: url('@/assets/images/header/bg-parking-header.png') no-repeat center;
2025-02-25 23:14:50 +08:00
background-size: cover;
}
.time {
position: absolute;
2025-02-27 13:41:42 +08:00
margin: 0 0 0 41px;
2025-02-25 23:14:50 +08:00
line-height: 60px;
font-size: 14px;
}
.title {
2025-02-28 22:57:26 +08:00
position: relative;
2025-02-27 13:41:42 +08:00
text-align: center;
2025-02-28 22:57:26 +08:00
img {
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 60px;
height: 60px;
object-fit: cover;
z-index: 1;
cursor: pointer;
}
2025-02-25 23:14:50 +08:00
h1 {
font-size: 42px;
line-height: 60px;
}
h2 {
font-size: 24px;
line-height: 45px;
2025-02-26 22:04:47 +08:00
font-weight: lighter;
2025-02-25 23:14:50 +08:00
}
}
</style>