<template>
  <div class="mx-auto md:w-bodySet blockChain min-w-1200 relative">
    <ChainCard :msgList="msgList" class="chainCard"></ChainCard>
    <ChainTitle />
    <chain-search
      style="width: 600px;"
      :value="value"
      :setValue="setValue"
      :clickSearch="clickSearch"
    />
    <div class="rect-block"></div>
    <ChainOverview :totalTx="totalTx" />
    <div class="flex justify-between mt-14">
      <latest-block :latestBlocks="latestBlocks"></latest-block>
      <latest-tx :latestTxs="latestTxs"></latest-tx>
    </div>
  </div>
</template>

<script lang="ts">
import VueTypedMixins from 'vue-typed-mixins'
import ChainCard from '@/components/pc/BlockChainBrowser/ChainOverview/ChainCard.vue'
import ChainTitle from '@/components/pc/BlockChainBrowser/ChainTitle.vue'
import ChainSearch from '@/components/pc/BlockChainBrowser/ChainSearch.vue'
import ChainOverview from '@/components/pc/BlockChainBrowser/ChainOverview/index.vue'
import LatestBlock from '@/components/pc/BlockChainBrowser/LatestBlock/index.vue'
import LatestTx from '@/components/pc/BlockChainBrowser/LatestTx/index.vue'

import blockChainBrowserMixin from '@/mixin/blockChainBrowser'

export default VueTypedMixins(blockChainBrowserMixin).extend({
  components: {
    ChainCard,
    ChainTitle,
    ChainSearch,
    ChainOverview,
    LatestBlock,
    LatestTx,
  },
})
</script>

<style scoped>
.blockChain {
  margin-top: 70px;
}
.chainCard {
  position: relative;
  z-index: 1;
}
.rect-block {
  /* position: absolute;
  z-index: 60;
  top: -64px;
  left: 197px;
  width: 600px;
  height: 840px;
  background: #2545cb; */
}
</style>
