<template>
  <div class="intro brightness" v-clickoutside="handleoutside">
    <div>
      <div>
        <img :src="`${g_CDN}images/share.jpg`" alt="" />
      </div>
      <img
      class="close"
      @click.stop="$emit('close')"
      :src="require('@/assets/images/close.png')"
    />
    </div>
  </div>
</template>

<script>
export default {
  methods:{
    handleoutside(){
      this.$emit('close')
    }
  }
}
</script>

<style lang="less" scoped>
@bx: 0 3px 6px rgba(0, 0, 0, 1);
@bc: rgba(12, 91, 246, 0.8);
@animation: 0.3s ease all;
.intro{
  text-align: center;
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  >div{
    padding: 10px;
    width: 90%;
    transform: translate(-50%,-50%);
    top: 50%;
    left: 50%;
    position: fixed;
    background-color: rgba(0, 0, 0, 0.5);
    height: 90vh;
    border-radius: 10px;
    box-sizing: content-box;
    >div{
      height: 100%;
      >img{
        height: 100%;
      }
    }
    .close {
      position: absolute;
      bottom: -18px;
      width: 36px;
      padding: 8px;
      left: 50%;
      transform: translateX(-50%);
      border-radius: 30px;
      box-shadow: @bx;
      background-color: @bc;
    }
  }
}
</style>