actu.vue 6.4 KB

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