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>
|
|
|
|
<h2>Below is the Connection component</h2>
|
2024-03-05 01:32:15 -08:00
|
|
|
<div class="border_div">
|
2024-03-05 12:53:41 -08:00
|
|
|
<Connection :latency=56 /> <!-- pass in latency into latency prop !-->
|
2024-03-05 01:32:15 -08:00
|
|
|
</div>
|
2024-03-03 19:33:37 -08:00
|
|
|
|
|
|
|
|
|
|
|
<h2>Below is the Battery component</h2>
|
|
|
|
<div class="border_div">
|
2024-03-05 12:53:41 -08:00
|
|
|
<Battery :percentage=12 :charging="false"/> <!-- pass in the current percentage into percentage prop. charging is a boolean !-->
|
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; */
|
|
|
|
}
|
|
|
|
|
|
|
|
</style>
|