Caroussel.vue 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314
  1. <template>
  2. <LayoutContainer :overflow="false">
  3. <div v-if="smAndDown">
  4. <h1 class="title-page">Une <span class="color-solution">solution</span> adapatée à chaque structure culturelle</h1>
  5. </div>
  6. <v-carousel
  7. ref="carousel"
  8. v-model="activeIndex"
  9. :show-arrows="false"
  10. :class="smAndDown ? 'carousel-sm' : 'carousel' "
  11. :hide-delimiter-background="true"
  12. :show-delimiters="false"
  13. :touch="true"
  14. >
  15. <v-carousel-item v-for="(item, index) in carouselItems" :key="index">
  16. <v-row>
  17. <v-col :cols="smAndDown ? 12 : 6">
  18. <v-row :class=" !smAndDown ? 'align-start': '' ">
  19. <v-img v-if="!smAndDown" class="logo-school" :src="item.logo"></v-img>
  20. </v-row>
  21. <v-row class="align-start">
  22. <p :class="smAndDown ? 'description-sm' : 'description'">{{ item.description }}</p>
  23. </v-row>
  24. <v-row class="align-start">
  25. <nuxt-link :to="item.link">
  26. <v-btn :class="item.buttonClass">En savoir plus</v-btn>
  27. </nuxt-link>
  28. </v-row>
  29. </v-col>
  30. <v-col :cols="smAndDown ? 12 : 6">
  31. <v-row class="justify-end">
  32. <div
  33. :class="smAndDown ? 'background-rectangle-sm' : 'background-rectangle'"
  34. :style="{ backgroundColor: item.color }"
  35. ></div>
  36. <v-card v-if="!smAndDown" class="card" elevation="5">
  37. <v-img
  38. class="profile-image"
  39. :src="item.avatar"
  40. alt="Profile Image"
  41. contain
  42. rounded
  43. ></v-img>
  44. <v-card-text>
  45. <v-card-title class="name">{{ item.name }}</v-card-title>
  46. <p class="school">{{ item.school }}</p>
  47. <p class="status">{{ item.status }}</p>
  48. </v-card-text>
  49. </v-card>
  50. <v-img :src="item.image" :class="smAndDown ? 'image-sm' : 'image'"></v-img>
  51. </v-row>
  52. </v-col>
  53. </v-row>
  54. </v-carousel-item>
  55. <div class="custom-controls">
  56. <div
  57. v-for="(item, index) in carouselItems"
  58. :key="index"
  59. :class="{ 'active-control': index === activeIndex }"
  60. @click="changeSlide(index)"
  61. ></div>
  62. </div>
  63. </v-carousel>
  64. </LayoutContainer>
  65. </template>
  66. <script setup>
  67. import { useDisplay } from "vuetify";
  68. const { lgAndUp, smAndDown } = useDisplay();
  69. let activeIndex = ref(0);
  70. const changeSlide = (index) => {
  71. activeIndex.value = index;
  72. };
  73. const carouselItems = ref([
  74. {
  75. logo: "/images/carousel/school/school.png",
  76. description:
  77. "Pour les petits comme pour les grans établissements d’enseignement artistique.Il permet la gestion au quotidien et en temps réel de votre établissement, de gérer vos élèves et vos professeurs, vos emplois du temps, le suivi pédagogique, vos salles, la facturation et les encaissements...",
  78. buttonClass: "btn-school",
  79. image: "/images/carousel/school/Fille_School.png",
  80. color: "rgba(32, 147, 190, 0.4)",
  81. link: "/logiciels/school",
  82. name: "Cindy Blanchard",
  83. school: "Conservatoire d'Anemasse",
  84. status: "Eleve",
  85. avatar: "/images/carousel/school/avatar.png",
  86. },
  87. {
  88. logo: "/images/carousel/artist/artist.png",
  89. description:
  90. "Pour les structures culturelles pratiquantes telles que les orchestres, les chorales, les compagnies de cirque, théâtre et danse.Gérez votre activité avec un logiciel de gestion et communication au service de votre passion.",
  91. buttonClass: "btn-artist",
  92. image: "/images/carousel/artist/musician.png",
  93. color: "rgba(250, 194, 10, 0.4)",
  94. link: "/logiciels/artist",
  95. name: "Thierry Dupont ",
  96. school: "Orchestre d’harmonie de Cluse",
  97. status: "Admin",
  98. avatar: "/images/carousel/artist/avatar.png",
  99. },
  100. {
  101. logo: "/images/carousel/manager/manager.png",
  102. description:
  103. "La solution de mise en réseau des organisations culturelles. Fédérations, confédérations et collectivités, utilisez une solution collaborative innovante et unique spécialement développée pour les réseaux culturels.",
  104. buttonClass: "btn-manager",
  105. image: "/images/carousel/manager/fédération.png",
  106. color: "rgba(216, 5, 11, 0.4)",
  107. link: "/logiciels/manager",
  108. name: "Marie Voisin",
  109. school: "Confédération Musicale de France",
  110. status: "ADMIN",
  111. avatar: "/images/carousel/manager/avatar.png",
  112. },
  113. ]);
  114. </script>
  115. <style scoped>
  116. ::v-deep .v-carousel__controls {
  117. display: none;
  118. }
  119. .color-solution {
  120. color: rgba(32, 147, 190, 0.9);
  121. }
  122. .title-page{
  123. font-family: "Barlow";
  124. font-style: normal;
  125. font-weight: bold;
  126. font-size: 2rem;
  127. line-height: 2.5rem;
  128. text-align: left;
  129. color: #000000;
  130. margin-bottom: 2rem;
  131. width: 25rem;
  132. }
  133. .card {
  134. height: 20%;
  135. width: 27%;
  136. border-radius: 1rem;
  137. margin-top: 1rem;
  138. }
  139. .profile-image {
  140. width: 40%;
  141. margin: auto;
  142. height: 12vh;
  143. }
  144. .name {
  145. text-align: center;
  146. font-size: 100%;
  147. font-weight: bold;
  148. margin-bottom: 1vh;
  149. font-family: "Barlow";
  150. font-style: normal;
  151. }
  152. .school,
  153. .status {
  154. text-align: center;
  155. font-size: 80%;
  156. color: #888888;
  157. margin-bottom: 1vh;
  158. }
  159. .background-rectangle {
  160. position: absolute;
  161. width: 70%;
  162. height: 20rem;
  163. left: 72%;
  164. top: 50%;
  165. transform: translate(-50%, -50%);
  166. border-radius: 200px 0px 0px 15rem;
  167. z-index: -1;
  168. }
  169. .background-rectangle-sm {
  170. position: absolute;
  171. width: 100%;
  172. height: 15rem;
  173. left: 72%;
  174. top: 50%;
  175. transform: translate(-50%, -50%);
  176. border-radius: 200px 0px 0px 15rem;
  177. z-index: -1;
  178. }
  179. .align-start {
  180. align-items: flex-start;
  181. }
  182. .carousel-sm {
  183. height:44rem !important;
  184. margin-bottom: -14.3rem;
  185. margin-top: 2rem;
  186. }
  187. .carousel{
  188. margin-top: 1rem;
  189. height: 900% !important;
  190. margin-bottom: -2rem;
  191. }
  192. .logo-school {
  193. max-width: 35vw;
  194. height: 25vh;
  195. margin-top: 10px;
  196. margin-bottom: 2vh;
  197. }
  198. .image {
  199. height: 35rem;
  200. margin-top: 6rem;
  201. right: 20%;
  202. }
  203. .image-sm {
  204. height: 20rem;
  205. margin-top: 9rem;
  206. left: 10%;
  207. bottom: 10rem;
  208. }
  209. .description {
  210. text-align: left;
  211. margin-right: 9vw;
  212. margin-left: 7vw;
  213. width: 25vw;
  214. margin-bottom: 1rem;
  215. }
  216. .description-sm {
  217. margin-top: 1rem;
  218. width: 100%;
  219. text-align: left;
  220. margin-left: 1rem;
  221. margin-bottom: 1rem;
  222. }
  223. .custom-controls {
  224. position: absolute;
  225. top: 50%;
  226. right: 1vw;
  227. transform: translateY(-50%);
  228. display: flex;
  229. flex-direction: column;
  230. gap: 1vh;
  231. }
  232. .custom-controls div {
  233. width: 1vh;
  234. height: 1vh;
  235. border-radius: 50%;
  236. background-color: grey;
  237. cursor: pointer;
  238. }
  239. .custom-controls .active-control {
  240. background-color: #000;
  241. margin-right: 2rem;
  242. }
  243. .btn-school {
  244. background: rgba(32, 147, 190, 0.4);
  245. border-radius: 0.5rem;
  246. margin-left: 7vw;
  247. padding: 25px;
  248. gap: 9px;
  249. font-weight: 700;
  250. font-size: 10px;
  251. line-height: 15px;
  252. width: 10rem;
  253. height: 4rem;
  254. font-family: "Barlow";
  255. font-style: normal;
  256. }
  257. .btn-artist {
  258. background: rgba(250, 194, 10, 0.4);
  259. border-radius: 0.5rem;
  260. margin-left: 7vw;
  261. padding: 25px;
  262. gap: 9px;
  263. font-weight: 700;
  264. font-size: 10px;
  265. line-height: 15px;
  266. width: 10rem;
  267. height: 4rem;
  268. font-family: "Barlow";
  269. font-style: normal;
  270. }
  271. .btn-manager {
  272. background: rgba(216, 5, 11, 0.4);
  273. border-radius: 0.5rem;
  274. margin-left: 7vw;
  275. padding: 25px;
  276. gap: 9px;
  277. font-weight: 700;
  278. font-size: 10px;
  279. line-height: 15px;
  280. width: 10rem;
  281. height: 4rem;
  282. font-family: "Barlow";
  283. font-style: normal;
  284. }
  285. </style>