2024-03-01 03:27:33 -08:00
|
|
|
<script setup lang="ts">
|
2024-03-06 00:16:47 -08:00
|
|
|
import Battery from '../components/VehicleStatus/Battery.vue';
|
|
|
|
import Connection from '../components/VehicleStatus/Connection.vue';
|
2024-03-01 03:27:33 -08:00
|
|
|
|
|
|
|
import Camera from "../components/Camera.vue";
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<div class="grid">
|
2024-03-08 01:02:53 -08:00
|
|
|
<div style="position: relative; display: flex;">
|
2024-03-06 00:16:47 -08:00
|
|
|
<Camera :cameraNumber="2"/>
|
2024-03-08 01:02:53 -08:00
|
|
|
<Battery :percentage=85 :charging="false" class="battery_test"/>
|
|
|
|
<Connection :latency=65 class="connection_test"/>
|
|
|
|
<!-- the Battery and Connection component's size is dependent on its parent element. So changing 'status_div' size will change their size-->
|
|
|
|
<!-- <div class="status_div">
|
2024-03-06 00:16:47 -08:00
|
|
|
<Battery :percentage=89 :charging="false" class="adjust_Battery"/>
|
|
|
|
<Connection :latency=65 />
|
2024-03-08 01:02:53 -08:00
|
|
|
</div> -->
|
2024-03-01 03:27:33 -08:00
|
|
|
</div>
|
2024-03-06 00:16:47 -08:00
|
|
|
|
2024-03-08 01:02:53 -08:00
|
|
|
<div style="position: relative; display: flex;">
|
2024-03-03 00:12:50 -08:00
|
|
|
<Camera :cameraNumber="2"/>
|
2024-03-08 01:02:53 -08:00
|
|
|
<Battery :percentage=12 :charging="false" class="battery_test"/>
|
|
|
|
<Connection :latency=3 class="connection_test"/>
|
|
|
|
<!-- <div class="status_div">
|
2024-03-06 00:16:47 -08:00
|
|
|
<Battery :percentage=12 :charging="false" class="adjust_Battery"/>
|
|
|
|
<Connection :latency=3 />
|
2024-03-08 01:02:53 -08:00
|
|
|
</div> -->
|
2024-03-01 03:27:33 -08:00
|
|
|
</div>
|
2024-03-06 00:16:47 -08:00
|
|
|
|
2024-03-08 01:02:53 -08:00
|
|
|
<div style="position: relative; display: flex;">
|
2024-03-03 00:12:50 -08:00
|
|
|
<Camera :cameraNumber="2"/>
|
2024-03-08 01:02:53 -08:00
|
|
|
<Battery :percentage=46 :charging="false" class="battery_test"/>
|
|
|
|
<Connection :latency=82 class="connection_test"/>
|
|
|
|
<!-- <div class="status_div">
|
2024-03-06 00:16:47 -08:00
|
|
|
<Battery :percentage=46 :charging="false" class="adjust_Battery"/>
|
|
|
|
<Connection :latency=82 />
|
2024-03-08 01:02:53 -08:00
|
|
|
</div> -->
|
2024-03-01 03:27:33 -08:00
|
|
|
</div>
|
2024-03-06 00:16:47 -08:00
|
|
|
|
2024-03-08 01:02:53 -08:00
|
|
|
<div style="position: relative; display: flex;">
|
2024-03-03 00:12:50 -08:00
|
|
|
<Camera :cameraNumber="1"/>
|
2024-03-08 01:02:53 -08:00
|
|
|
<Battery :percentage=0 :charging="false" class="battery_test"/>
|
|
|
|
<Connection :latency=5 class="connection_test"/>
|
|
|
|
<!-- <div class="status_div">
|
2024-03-06 00:16:47 -08:00
|
|
|
<Battery :percentage=0 :charging="false" class="adjust_Battery"/>
|
|
|
|
<Connection :latency=5 />
|
2024-03-08 01:02:53 -08:00
|
|
|
</div> -->
|
2024-03-01 03:27:33 -08:00
|
|
|
</div>
|
|
|
|
</div>
|
2024-03-06 00:16:47 -08:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
/* currently Battery and Connection's sizes are dependent on the parent element (status_div). If we want their own fixed size, can change
|
|
|
|
it directly in their file component's style*/
|
|
|
|
.status_div {
|
|
|
|
display: flex;
|
|
|
|
position: absolute;
|
|
|
|
top: 1%;
|
|
|
|
left:4%;
|
|
|
|
/* border: 0.4em solid black; */
|
|
|
|
height: 130px;
|
|
|
|
width: 260px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.adjust_Battery {
|
|
|
|
top: 5%;
|
|
|
|
margin-right: 3%;
|
|
|
|
}
|
2024-03-08 01:02:53 -08:00
|
|
|
|
|
|
|
.battery_test {
|
|
|
|
position:absolute;
|
|
|
|
height: 7%;
|
|
|
|
width: 6.3%;
|
|
|
|
top: 4%;
|
|
|
|
left: 2%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.connection_test {
|
|
|
|
position:absolute;
|
|
|
|
height: 11%;
|
|
|
|
width: 4%;
|
|
|
|
top: 1%;
|
|
|
|
left: 9.5%;
|
|
|
|
}
|
2024-03-06 00:16:47 -08:00
|
|
|
</style>
|