<!--
Section "Agenda" de la page d'accueil
-->
<template>
  <LayoutContainer>
    <div class="container">
      <div class="d-flex align-center justify-center">
        <h3>
          Retrouvez tous vos évènements dans l'agenda et référencez vous dans
          l'annuaire
        </h3>
      </div>

      <v-row justify="center">
        <div class="btn-container">
          <v-col cols="12" md="6">
            <AgendaLink href="/">
              <v-btn
                append-icon="fas fa-arrow-right"
                class="btn-event"
              >
                Découvrir l'agenda
              </v-btn>
            </AgendaLink>
          </v-col>

          <v-col cols="12" md="6">
            <AgendaLink href="/annuaire">
              <v-btn
                append-icon="fas fa-arrow-right"
                class="btn-event"
              >
                Découvrir l’annuaire
              </v-btn>
            </AgendaLink>
          </v-col>
        </div>
      </v-row>
    </div>
  </LayoutContainer>
</template>

<script setup>
import { useDisplay } from "vuetify";
import AgendaLink from "~/components/Common/AgendaLink.vue";
const { mdAndDown } = useDisplay();
</script>

<style scoped>

@media (min-width: 600px) {
  .container {
    height: 35rem;
    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;
  }
}

h3 {
  height: 9rem;
  font-weight: 400;
  font-size: 3rem;
  line-height: 3rem;
  text-align: center;
  margin-bottom: 3rem;
  margin-top: 4rem;
  color: var(--on-primary-color);
  width: 45rem;
}

.btn-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20rem;
}

@media (max-width: 960px) {
  .btn-container {
    padding: 0 5rem;
  }
}

.btn-event {
  border-radius: 0.5rem;
  gap: 9px;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 15px;
  width: 18rem;
  margin-top: 3rem;
  min-width: 20rem;
  max-width: 20rem;
  height: 3.5rem;
}
</style>
