<template>
  <div class="info-left">
    <div class="info-electric">
      <div><span>{{num}}</span></div>
      <div>{{unit}}</div>
    </div>
    <div class="line"><span></span><span></span></div>
    <div class="info-text">{{text}}</div>
  </div>
</template>

<script>
export default {
  name: "BatteryInfo",
  props:["num","unit","text"]
};
</script>

<style lang="scss" scoped>
.info-left {
  display: flex;
  flex-direction: column;
  width: 46%;
  margin-bottom: 2vh;
  .info-electric {
    width: 100%;
    display: flex;
    justify-content: space-between;
    height: 10px;

    div:first-child {
      border: #1a222f solid 1px;
      background-color: #0e1420;
      height: 10px;
      color: white;
      border-radius: 8px;
      font-size: 16px;
      font-weight: 600;
      width: 80%;

      span {
        position: relative;
        bottom: 5px;
      }
    }

    div:last-child {
      position: relative;
      bottom: 1px;
      font-weight: 600;
      font-size: 16px;
    }
  }
  .line {
    display: flex;
    margin-top: 5px;
    :first-child {
      width: 2%;
      background-color: white;
      height: 2px;
    }
    :last-child {
      height: 2px;
      width: 96%;
      background-color: #14172a;
      margin-left: 5px;
    }
  }
  .info-text {
    width: 100%;
    margin-top: 3px;
  }
}
</style>