<template>
 <div v-loading="relativeUProfitEthLoading">
        <!-- 公式 -->
        <el-row type="flex" justify="center">
        <p class="indexBox" style="font-weight:550;color:rgba(0,0,0,0.6)">Unrealized Profit = value · (price <span style="color:rgba(0,0,0,0.4)">[USD]</span>  - price  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="indexs2">created</span> &nbsp;<span style="color:rgba(0,0,0,0.4)">[USD]</span>)</p>
       
      </el-row>

      <p class="indexBox2" >(of all UTXOs where price  > price &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="formulaFont2">created</span>)</p>


   <!-- 对数线性显示切换 -->

    <el-row class="switch">
      <el-col>
         <el-button @click="handelLineSwitch"
         style="margin-left:100px;height:35px;border-radius:6px;"
         >{{ $t(`home.switch`)
          }}<span class="according"> {{ $t(switch3) }}</span></el-button
        >
      </el-col>
    </el-row>
    <el-row>
      <el-col :span="24">      
        <div
          id="relativeUProfitEthBox"
          style="width: 100%; min-height: 700px"
        ></div>
      </el-col>
    </el-row>

    <!-- <div class="formulaBox">
      <p>{{  $t(`home.formula`) }}</p>
      <p>Unrealized Profit = value . (price[USD] - price<span class="formulaFont"> created </span> [USD])</p>
      <p>(of all UTXOs where price > price<span class="formulaFont">created</span>)</p>
    </div> -->
  </div>
</template>

<script>
import IndexJs from "../relativeUProfitEth/index"
export default {
  mixins:[IndexJs]
}
</script>


<style lang="scss" scoped>
.formulaBox{
  // outline: 1px solid  red ;
  width: 98.7%;
  padding: 10px 0px;
  margin-bottom: -30px;
  // height: 60px;
  background: #e5e5e5;
  color: rgba(0, 0, 0, 0.7);
  p{
    margin: 0px;
    height: 30px;
    padding: 0px 10px;
  }
  p:nth-of-type(3) {
    margin-left: 130px;
    color: rgba(0, 0, 0, 0.5);
  }
}
  .formulaFont{
    font-size: 12px;
  
  }

  .indexBox{
    // outline: 1px solid red;
    position: relative;
    margin-bottom: 20px;
    .indexs{
      font-size: 12px;
      position: absolute;
      left: 48%;
      top: 10px;
      color: rgba(0, 0, 0, 0.5);
    }
    .indexs2{
      font-size: 12px;
      position: absolute;
      left: 78%;
      top: 10px;
      color: rgba(0, 0, 0, 0.5);

    }
  }
  .indexBox2{
    position: relative;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.4);
    // outline: 1px solid red;
    box-sizing: border-box;
    padding-left: 45%;
    margin: 0px;
    position: absolute;
    top: 40px;
    .formulaFont{
      position: absolute;
      left: 86%;
      font-size: 12px;
      top: 10px;
    }
    .formulaFont2{
      position: absolute;
      left: 94%;
      font-size: 12px;
      top: 10px;

    }

  }
</style>