Reviews.vue 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <template>
  2. <LayoutContainer>
  3. <v-row>
  4. <v-col cols="4">
  5. <h3>C'est eux qui en parlent le mieux</h3>
  6. </v-col>
  7. <v-col cols="8">
  8. <!-- slide card-->
  9. <v-sheet
  10. class="mx-auto"
  11. elevation="8"
  12. max-width="800"
  13. >
  14. <v-slide-group
  15. v-model="model"
  16. class="pa-4"
  17. selected-class="bg-success"
  18. show-arrows
  19. >
  20. <v-slide-group-item
  21. v-for="n in 15"
  22. :key="n"
  23. v-slot="{ isSelected, toggle, selectedClass }"
  24. >
  25. <v-card
  26. color="grey-lighten-1"
  27. :class="['ma-4', selectedClass]"
  28. height="200"
  29. width="100"
  30. @click="toggle"
  31. >
  32. <div class="d-flex fill-height align-center justify-center">
  33. <v-scale-transition>
  34. <v-icon
  35. v-if="isSelected"
  36. color="white"
  37. size="48"
  38. icon="mdi-close-circle-outline"
  39. ></v-icon>
  40. </v-scale-transition>
  41. </div>
  42. </v-card>
  43. </v-slide-group-item>
  44. </v-slide-group>
  45. </v-sheet>
  46. </v-col>
  47. </v-row>
  48. </LayoutContainer>
  49. </template>
  50. <script>
  51. </script>
  52. <style scoped>
  53. </style>