<template>
  <div class="divMaster row ">
    <div
      id="carouselExampleControls"
      class="carousel slide col-12 mx-auto"
      data-ride="carousel"
    >
      <div class="carousel-inner">
        <div
          class="carousel-item"
          v-bind:key="img.id"
          v-for="(img, idx) in imgs"
          :class="{ active: idx == 0 }"
        >
          <img :src="img" class="d-block w-100 img-fluid" alt="img" />
        </div>
      </div>
      <a
        class="carousel-control-prev"
        href="#carouselExampleControls"
        role="button"
        data-slide="prev"
      >
        <span class="carousel-control-prev-icon" aria-hidden="true"></span>
        <span class="sr-only">Previous</span>
      </a>
      <a
        class="carousel-control-next"
        href="#carouselExampleControls"
        role="button"
        data-slide="next"
      >
        <span class="carousel-control-next-icon" aria-hidden="true"></span>
        <span class="sr-only">Next</span>
      </a>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      imgs: [
        'https://www.acatlan.unam.mx/images/1410.jpg',
        'https://www.acatlan.unam.mx/images/1402.jpg',
        'https://www.acatlan.unam.mx/images/1421.jpg', 
        'https://www.acatlan.unam.mx/images/1330.jpg'

      ]
    };
  }
};
</script>

<style scoped>
.divMaster {
  height: auto;
}
</style>