<template>
  <LayoutContainer>
    <v-row class="custom-row">
      <LayoutUISubTitle class="mb-12">
        Quelques chiffres
      </LayoutUISubTitle>
    </v-row>

    <v-container>
      <v-row class="card-container mb-12">
        <v-col
          lg="3"
          class="d-flex justify-center align-center small-padding"
        >
          <CommonCardStat
            number="184 634"
            text="Utilisateurs"
          />
        </v-col>

        <v-col lg="3" class="d-flex justify-center align-center">
          <CommonCardStat
            number="3 424"
            text="Structures"
          />
        </v-col>

        <v-col lg="3" class="d-flex justify-center align-center">
          <CommonCardStat
            number="13"
            text="Années d'expérience"
          />
        </v-col>
      </v-row>
    </v-container>

    <CommonCarouselClients :items="items" >
      <template v-slot:title>
        Plus de <span class="alt-color">3400 structures</span> nous ont déjà adoptées
      </template>
    </CommonCarouselClients>
  </LayoutContainer>
</template>

<script setup lang="ts">
const items: Ref<Array<{ src: string }>> = ref([
  { src: "/images/reviews/artist/review1.jpeg" },
  { src: "/images/reviews/artist/review2.jpg" },
  { src: "/images/reviews/artist/review3.jpeg" },
  { src: "/images/reviews/artist/review4.jpg" },
  { src: "/images/reviews/artist/review5.png" },
  { src: "/images/reviews/artist/review6.jpeg" },
]);
</script>

<style scoped lang="scss">
.custom-row {
  width: 90%;
  margin-right: auto;
  margin-left: auto;
}

.card-container {
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.alt-color {
  color: var(--on-primary-color-alt);
}
</style>
