Agenda.vue 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310
  1. <template>
  2. <div id="L'agenda opentalent">
  3. <LayoutContainer :overflow="false">
  4. <v-row>
  5. <v-col cols="4">
  6. <h2 class="title">L'agenda Opentalent</h2>
  7. </v-col>
  8. <v-col cols="4">
  9. <div class="d-flex justify-center align-center">
  10. <div class="carousel-button" @click="goPrevious">
  11. <i class="fas fa-chevron-left" />
  12. </div>
  13. <div class="carousel-button" @click="goNext">
  14. <i class="fas fa-chevron-right" />
  15. </div>
  16. </div>
  17. </v-col>
  18. <v-col cols="4">
  19. <v-btn class="btn-news" text> VOIR TOUTES LES ACTUALITÉS </v-btn>
  20. </v-col>
  21. </v-row>
  22. <p class="agenda-details">
  23. Retrouvez tous les évènements culturels autour de chez vous.
  24. </p>
  25. <v-row>
  26. <v-col cols="12">
  27. <Carousel ref="carousel" :items-to-show="3" :items-to-scroll="2">
  28. <Slide
  29. v-for="(event, eventIndex) in events"
  30. :key="eventIndex"
  31. class="slide-card"
  32. >
  33. <div class="card">
  34. <img
  35. class="card-img-top"
  36. :src="event.img"
  37. alt="Card image cap"
  38. />
  39. <div class="card-body">
  40. <small class="card-rdv">{{ event.rdv }}</small>
  41. <h5 class="card-title">
  42. {{ event.title }}
  43. </h5>
  44. <p class="card-localisation">
  45. {{ event.localisation }}
  46. </p>
  47. </div>
  48. <div class="card-footer">
  49. <v-chip-group active-class="primary--text" column>
  50. <v-chip
  51. v-for="(tag, tagIndex) in event.tags"
  52. :key="tagIndex"
  53. class="ma-2 chip-custom"
  54. :color="tagColor(tag)"
  55. label
  56. >
  57. <span :class="tagTextColor(tag)">{{ tag }}</span>
  58. </v-chip>
  59. </v-chip-group>
  60. </div>
  61. </div>
  62. </Slide>
  63. </Carousel>
  64. </v-col>
  65. </v-row>
  66. </LayoutContainer>
  67. </div>
  68. </template>
  69. <script setup>
  70. import { ref } from "vue";
  71. import { Carousel, Slide } from "vue3-carousel";
  72. import "vue3-carousel/dist/carousel.css";
  73. const tagColor = (tag) => {
  74. switch (tag) {
  75. case "Payant":
  76. return "red";
  77. case "Gratuit":
  78. return "green";
  79. default:
  80. return "primary";
  81. }
  82. };
  83. const tagTextColor = (tag) => {
  84. switch (tag) {
  85. case "Payant":
  86. return "red--text";
  87. case "Gratuit":
  88. return "green--text";
  89. default:
  90. return "black--text";
  91. }
  92. };
  93. const events = ref([
  94. {
  95. rdv: "20h00",
  96. title: "LA NUIT DES RÊVES ",
  97. localisation: "FESTIVALDE musique - LONGCHAMP",
  98. date: "21/06/2023",
  99. img: "/images/agenda/agenda2.jpg",
  100. tags: ["Festival", "Musique", "Tout public", "Payant"],
  101. },
  102. {
  103. rdv: "20h00",
  104. title: "LE LAC DES CYGNES",
  105. localisation: "SPECTACLE DE DANSE - PARIS 1",
  106. date: "22/06/2023",
  107. img: "/images/agenda/agenda3.jpg",
  108. tags: ["Festival", "Musique", "Tout public", "Gratuit"],
  109. },
  110. {
  111. rdv: "20h00",
  112. title: "SOLIDAYS 2023 : 23 > 25 juin",
  113. localisation: "ORCHESTRE DE PARIS - PARIS 12",
  114. date: "23/06/2023",
  115. img: "/images/agenda/agenda4.jpg",
  116. tags: ["Festival", "Musique", "Tout public", "Payant"],
  117. },
  118. {
  119. rdv: "20h00",
  120. title: "LE LAC DES CYGNES",
  121. localisation: "FESTIVALDE musique - LONGCHAMP",
  122. date: "24/06/2023",
  123. img: "/images/agenda/agenda5.jpg",
  124. tags: ["Festival", "Musique", "Tout public", "Payant"],
  125. },
  126. {
  127. rdv: "20h00",
  128. title: "SOLIDAYS 2023 : 23 > 25 juin ",
  129. localisation: "SPECTACLE DE DANSE - PARIS 1",
  130. date: "20/06/2023",
  131. img: "/images/agenda/agenda1.jpg",
  132. tags: ["Festival", "Musique", "Tout public", "Payant"],
  133. },
  134. ]);
  135. let carousel;
  136. const goPrevious = () => carousel.prev();
  137. const goNext = () => carousel.next();
  138. </script>
  139. <style scoped>
  140. .green--text {
  141. color: green;
  142. }
  143. .red--text {
  144. color: red;
  145. }
  146. .black--text {
  147. color: black;
  148. }
  149. .btn-news {
  150. color: #9edbdd;
  151. border-radius: 2rem;
  152. font-family: "Barlow";
  153. background: transparent;
  154. border: 1px solid #9edbdd;
  155. border-radius: 6px;
  156. font-style: normal;
  157. font-weight: 600;
  158. text-transform: uppercase;
  159. display: flex;
  160. flex-direction: row;
  161. align-items: center;
  162. padding: 25px;
  163. font-size: 10px;
  164. line-height: 15px;
  165. }
  166. .chip-detail {
  167. color: #000000;
  168. }
  169. .chip-custom {
  170. color: white;
  171. border: 1px solid #0e2d32;
  172. border-radius: 3rem;
  173. text-transform: uppercase;
  174. font-family: "Barlow";
  175. font-style: normal;
  176. display: flex;
  177. align-items: center;
  178. text-align: center;
  179. }
  180. .card-localisation {
  181. letter-spacing: 0.18em;
  182. text-transform: uppercase;
  183. font-size: 10px;
  184. color: #112528;
  185. }
  186. .card {
  187. border-radius: 15px 15px 0 0;
  188. margin-bottom: 2rem;
  189. width: 90%;
  190. }
  191. .icon-title {
  192. color: #64afb7;
  193. margin-top: 4.5rem;
  194. }
  195. .container-title {
  196. display: flex;
  197. align-items: center;
  198. margin-left: 2rem;
  199. margin-top: 4.5rem;
  200. }
  201. .carousel-button i {
  202. color: #000000;
  203. }
  204. .card-text {
  205. mily: "Barlow";
  206. font-style: normal;
  207. font-weight: 500;
  208. font-size: 16px;
  209. line-height: 18px;
  210. margin-bottom: 1rem;
  211. color: #091d20;
  212. }
  213. .card-title {
  214. font-family: "Barlow";
  215. font-style: normal;
  216. font-weight: 500;
  217. font-size: 20px;
  218. line-height: 24px;
  219. display: flex;
  220. align-items: center;
  221. letter-spacing: 0.18em;
  222. text-transform: uppercase;
  223. }
  224. .card-date {
  225. font-size: 0.8em;
  226. color: #888;
  227. margin-left: 1rem;
  228. }
  229. .card-footer {
  230. display: flex;
  231. justify-content: space-between;
  232. align-items: center;
  233. margin-left: 4rem;
  234. }
  235. .card-body {
  236. text-align: left;
  237. margin-bottom: 1rem;
  238. margin-left: 5rem;
  239. font-family: "Barlow";
  240. font-style: normal;
  241. font-weight: 500;
  242. line-height: 24px;
  243. color: #112528;
  244. }
  245. .card-img-top {
  246. border-radius: 9px 9px 0 0;
  247. max-width: 400px;
  248. min-width: 400px;
  249. min-height: 300px;
  250. max-height: 300px;
  251. object-fit: cover;
  252. object-position: center;
  253. }
  254. .title,
  255. .carousel-button,
  256. .btn-news {
  257. margin-top: 2rem;
  258. margin-bottom: 2rem;
  259. }
  260. .agenda-details {
  261. font-family: "Barlow";
  262. font-style: normal;
  263. font-weight: 300;
  264. font-size: 16px;
  265. line-height: 20px;
  266. margin-left: 2rem;
  267. color: #091d20;
  268. margin-bottom: 3rem;
  269. width: 15rem;
  270. }
  271. .title {
  272. font-family: "Barlow";
  273. font-style: normal;
  274. font-weight: 600;
  275. font-size: 42px;
  276. line-height: 42px;
  277. margin-left: 2rem;
  278. color: #071b1f;
  279. }
  280. .carousel-button {
  281. display: flex;
  282. justify-content: center;
  283. align-items: center;
  284. width: 40px;
  285. height: 40px;
  286. background-color: transparent;
  287. border: 2px solid #000000;
  288. cursor: pointer;
  289. margin-right: 1rem;
  290. }
  291. </style>