index.vue 1.37 KB
Newer Older
Z's avatar
Z committed
1 2
<template>
  <d2-container>
xd's avatar
xd committed
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
    <div class="container">
      <div class="left">
        <div class="img"><img src="../img/active1.png" alt=""></div>
        <div class="btn">
          <div class="btn-l">配置</div>
          <div class="btn-r">预览</div>
        </div>
      </div>
      <div class="right">
        <div class="img"><img src="../img/active2.png" alt=""></div>
        <div class="btn">
          <div class="btn-l">配置</div>
          <div class="btn-r">预览</div>
        </div>
      </div>
    </div>
Z's avatar
Z committed
19 20
  </d2-container>
</template>
xd's avatar
xd committed
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
<script>
export default {};
</script>
<style scoped>
.container {
  padding: 16px;
  display: flex;
}
.left,.right{
  display: flex;
  flex-direction: column;
  width: 440px;
  height: 500px;
  background: #f8f8f8;
  margin-right: 24px;
  box-sizing:border-box;
  padding: 16px; 
}
.img {
  width: 408px;
  height: 408px;
}
.img img {
  width: 100%;
}
.btn {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.btn-l,.btn-r {
  width:198px;
  height:40px;
  background:rgba(232,233,254,1);
  box-shadow:0px 1px 3px 0px rgba(221,221,221,1);
  border-radius:4px;
  border:1px solid rgba(78,89,199,1);
  font-size: 14px;
  font-weight:800;
  color:rgba(78,89,199,1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-r {
  background:rgba(78,89,199,1);
  color:#fff;
}
</style>