ContainerVideo.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <template>
  2. <LayoutContainer>
  3. <div v-if="videoUrl" class="container-green">
  4. <v-row class="mt-12">
  5. <v-row>
  6. <v-col cols="6">
  7. <LayoutUISubTitle class="mt-6">
  8. {{ title }}
  9. </LayoutUISubTitle>
  10. <p v-if="lgAndUp" class="quote">
  11. {{ quote }}
  12. </p>
  13. </v-col>
  14. <v-col cols="6">
  15. <div class="screen-img-3" />
  16. <div class="play-icon-container">
  17. <i class="fas fa-play"></i>
  18. </div>
  19. </v-col>
  20. </v-row>
  21. </v-row>
  22. </div>
  23. <div v-else>
  24. </div>
  25. </LayoutContainer>
  26. </template>
  27. <script setup lang="ts">
  28. import { useDisplay } from "vuetify";
  29. const { mdAndUp, lgAndUp } = useDisplay()
  30. const props = defineProps({
  31. title: {
  32. type: String,
  33. required: true
  34. },
  35. quote: {
  36. type: String,
  37. required: true
  38. },
  39. videoUrl: {
  40. type: String,
  41. default: ""
  42. }
  43. })
  44. </script>
  45. <style scoped lang="scss">
  46. .v-container {
  47. padding: 0 !important;
  48. }
  49. .v-row {
  50. width: 90% !important;
  51. margin-left: auto !important;
  52. margin-right: auto !important;
  53. }
  54. .play-icon-container {
  55. position: absolute;
  56. top: 50%;
  57. left: 50%;
  58. transform: translate(-50%, -50%);
  59. font-size: 3rem;
  60. color: #ffffff;
  61. cursor: pointer;
  62. }
  63. .screen-img-3 {
  64. background-image: url("/images/components/presentation/Ordinateur_avec_ecran_fiche_adherent_du_logiciel_Opentalent_Artist.png");
  65. background-size: cover;
  66. background-position: center;
  67. width: 650px;
  68. height: 650px;
  69. @media (max-width: 1240px) {
  70. width: 400px;
  71. height: 400px;
  72. }
  73. }
  74. .quote {
  75. font-style: italic;
  76. font-weight: 300;
  77. font-size: 2rem;
  78. width: 35rem;
  79. line-height: 40px;
  80. color: #ffffff;
  81. margin-top: 27rem;
  82. margin-left: 2rem;
  83. }
  84. .icon-logiciel {
  85. margin-right: 1rem;
  86. }
  87. .container-green {
  88. background: linear-gradient(180deg, rgba(14, 45, 50, 0) 26.84%, #0e2d32 100%),
  89. rgba(7, 27, 31, 0.3);
  90. height: 40rem;
  91. @media (max-width: 1240px) {
  92. height: 400px;
  93. }
  94. }
  95. </style>