ContainerVideo.vue 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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></div>
  24. </LayoutContainer>
  25. </template>
  26. <script setup lang="ts">
  27. import { useDisplay } from 'vuetify'
  28. const { lgAndUp } = useDisplay()
  29. defineProps({
  30. title: {
  31. type: String,
  32. required: true,
  33. },
  34. quote: {
  35. type: String,
  36. required: true,
  37. },
  38. videoUrl: {
  39. type: String,
  40. default: '',
  41. },
  42. })
  43. </script>
  44. <style scoped lang="scss">
  45. .v-container {
  46. padding: 0 !important;
  47. }
  48. .v-row {
  49. width: 90% !important;
  50. margin-left: auto !important;
  51. margin-right: auto !important;
  52. }
  53. .play-icon-container {
  54. position: absolute;
  55. top: 50%;
  56. left: 50%;
  57. transform: translate(-50%, -50%);
  58. font-size: 3rem;
  59. color: #ffffff;
  60. cursor: pointer;
  61. }
  62. .screen-img-3 {
  63. background-image: url('/images/components/presentation/Opentalent-disponible-su-Multi-support.png');
  64. background-size: cover;
  65. background-position: center;
  66. width: 650px;
  67. height: 650px;
  68. @media (max-width: 1240px) {
  69. width: 400px;
  70. height: 400px;
  71. }
  72. }
  73. .quote {
  74. font-style: italic;
  75. font-weight: 300;
  76. font-size: 2rem;
  77. width: 35rem;
  78. line-height: 40px;
  79. color: #ffffff;
  80. margin-top: 27rem;
  81. margin-left: 2rem;
  82. }
  83. .icon-logiciel {
  84. margin-right: 1rem;
  85. }
  86. .container-green {
  87. background: linear-gradient(180deg, rgba(14, 45, 50, 0) 26.84%, #0e2d32 100%),
  88. rgba(7, 27, 31, 0.3);
  89. height: 40rem;
  90. @media (max-width: 1240px) {
  91. height: 400px;
  92. }
  93. }
  94. </style>