<template>
  <div class="common-banner"><img :src="img" alt="" srcset=""></div>
</template>

<script>
export default {
  props: {
    img: {
      type: String,
      default: ''
    }
  },
  data() {
    return {
      // bannerImg: require('~/assets/images/products/product_banner.png')
    }
  }
}
</script>

<style lang="scss">
.common-banner {
  width: 100%;
  height: 521px;
  position: relative;
  font-size: 0;
  img {
    position: absolute;
    top: 0px;
    left: 50%;
    bottom: 0px;
    right: 0px;
    z-index: 1;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    max-width: 2560px;
    max-height: 521px;
    height: 521px;
    display: block;
  }
}
</style>
