2024-03-05 01:32:15 -08:00
|
|
|
<!-- Using this to see how the Battery and Connection components look -->
|
2024-03-03 19:33:37 -08:00
|
|
|
|
2024-03-05 01:32:15 -08:00
|
|
|
<script setup>
|
|
|
|
import Battery from './components/VehicleStatus/Battery.vue';
|
|
|
|
import Connection from './components/VehicleStatus/Connection.vue';
|
2024-03-03 19:33:37 -08:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
2024-03-06 00:16:47 -08:00
|
|
|
<!-- <h2>Below is the Connection component</h2>
|
2024-03-05 01:32:15 -08:00
|
|
|
<div class="border_div">
|
2024-03-06 00:16:47 -08:00
|
|
|
<Connection :latency=100 />
|
|
|
|
</div> -->
|
2024-03-03 19:33:37 -08:00
|
|
|
|
|
|
|
|
2024-03-06 00:16:47 -08:00
|
|
|
<!-- <h2>Below is the Battery component</h2>
|
2024-03-03 19:33:37 -08:00
|
|
|
<div class="border_div">
|
2024-03-06 00:16:47 -08:00
|
|
|
<Battery :percentage=12 :charging="false"/> pass in the current percentage into percentage prop. charging is a boolean ! -->
|
|
|
|
<!-- </div> -->
|
|
|
|
|
|
|
|
<h2>Below is both in one div</h2>
|
|
|
|
<div class="border_div_2">
|
|
|
|
<Battery :percentage=12 :charging="false" class="additional_battery_prop"/>
|
|
|
|
<Connection :latency=56 />
|
2024-03-03 19:33:37 -08:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
|
|
|
.border_div {
|
|
|
|
/* display: flex; */
|
|
|
|
border: 0.4em solid black;
|
|
|
|
height: 200px;
|
|
|
|
width: 400px;
|
|
|
|
/* height: 100px;
|
|
|
|
width: 200px; */
|
|
|
|
}
|
|
|
|
|
2024-03-06 00:16:47 -08:00
|
|
|
.border_div_2 {
|
|
|
|
display: flex;
|
|
|
|
border: 0.4em solid black;
|
|
|
|
height: 180px;
|
|
|
|
width: 380px;
|
|
|
|
/* height: 100px;
|
|
|
|
width: 200px; */
|
|
|
|
}
|
|
|
|
|
|
|
|
.additional_battery_prop {
|
|
|
|
top: 4%;
|
|
|
|
margin-right: 2%;
|
|
|
|
}
|
|
|
|
|
2024-03-03 19:33:37 -08:00
|
|
|
</style>
|