<template>
  <div class="card shadow-shadow1">
    <div class="top relative">
      <img
        src="@/assets/images/blockChainBrowser/home/ycc-icon.png"
        class="icon"
        alt=""
      />
      <div class="price">
        {{ price }}
        0192380192
      </div>
      <div
        class="quoteChange flex items-center justify-center mt-1 text-my-red"
      >
        {{ quoteChange }}
        +9.5%
      </div>
      <div class="tip mt-14">{{ $t('lang.price.realTimeQuotes') }}</div>
      <div class="tip mt-2">{{ $t('lang.price._24hourVolatility') }}</div>
    </div>
    <div class="bottom text-center">
      <div class="marketValueTitle text-text-color mt-6">
        {{ $t('lang.price.marketValueInDollars') }}
      </div>
      <div class="marketValue text-footer-color">
        {{ marketValue }}1029381023
      </div>
    </div>
  </div>
</template>

<script lang="ts">
import Vue from 'vue'
export default Vue.extend({
  props: {
    price: [String, Number],
    quoteChange: [String],
    marketValue: Number,
  },
})
</script>

<style scoped>
.card {
  display: flow-root;
  width: 350px;
  height: 450px;
  background: #ffffff;
  border-radius: 4px;
}
.top {
  padding-top: 50px;
  padding-left: 30px;
  width: 350px;
  height: 350px;
  background-image: url('../../../../assets/images/blockChainBrowser/home/beautiful-rect.png');
  background-size: contain;
}
.tip {
  font-size: 16px;
  font-family: PingFang-SC-Bold, PingFang-SC;
  font-weight: bold;
  color: #ffffff;
}
.price {
  font-size: 40px;
  font-family: DINAlternate-Bold, DINAlternate;
  font-weight: bold;
  color: #ffffff;
  line-height: 47px;
}
.quoteChange {
  width: 100px;
  height: 40px;
  background: #ffffff;
  border-radius: 4px;
  font-size: 20px;
  font-family: DINAlternate-Bold, DINAlternate;
  font-weight: bold;
}
.icon {
  width: 30px;
  height: 30px;
  margin-bottom: 16px;
}
.marketValueTitle {
  font-size: 14px;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
}
.marketValue {
  font-size: 24px;
  font-family: DINAlternate-Bold, DINAlternate;
  font-weight: bold;
}
</style>
