<template>
  <LayoutContainer :overflow="false">
    <div class="title-container">
      <h2 class="title">
        Retrouvez tous vos évènements dans l'agenda et référencez vous dans
        l'annuaire
      </h2>
    </div>

    <v-row>
      <v-col
        cols="12"
        :class="lgAndUp ? 'btn-container' : ''"
      >
        <v-col
          md="12"
          :cols="smAndDown ? 12 : 6"
          class="d-flex justify-center"
        >
          <v-btn :class="smAndDown ? 'btn-event-sm' : 'btn-event'">
            Découvrir les évènements
            <v-icon class="fa-solid fa-arrow-right icon-arrow" />
          </v-btn>
        </v-col>

        <v-col
          md="12"
          col="6"
        >
          <v-btn
            v-if="lgAndUp"
            class="btn-event"
          >
            Découvrir l’ANNUAIRE
            <v-icon class="fa-solid fa-arrow-right icon-arrow" />
          </v-btn>
        </v-col>
      </v-col>
    </v-row>
  </LayoutContainer>
</template>

<script setup>
import { useDisplay } from "vuetify";
const { lgAndUp, smAndDown } = useDisplay();
</script>

<style scoped>


.icon-arrow {
  font-size: 1rem;
  margin-left: 1rem;
}
.btn-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20rem;
}
.btn-event {
  border-radius: 0.5rem;
  margin-left: 9vw;
  gap: 9px;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 15px;
  width: 18rem;
  margin-top: 3rem;
  padding: 2.4rem 4rem;
  min-width: 20rem;
}
.btn-event-sm {
  border-radius: 0.5rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
  margin-top: 3rem;
  
}
.title {
  height: 9rem;
  font-weight: 400;
  font-size: 3rem;
  line-height: 3rem;
  text-align: center;
  margin-bottom: 3rem;
  margin-top: 4rem;
  color: #ffffff;
  width: 45rem;
}

.title-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.container, 
.container-sm
{
  height: 30rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
    linear-gradient(
      180deg,
      rgba(14, 45, 50, 0.04) 0%,
      rgba(14, 45, 50, 0.2) 100%
    ),
    linear-gradient(0deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
    url("/images/eventAgenda/eventAgenda.jpg") no-repeat center 60%;
  background-size: cover;
}

.container-sm {
  margin-bottom: 60rem;
}


</style>
