소스 검색

Merge tag '1.2' into develop

Vincent 4 달 전
부모
커밋
f0eed0a509
4개의 변경된 파일28개의 추가작업 그리고 16개의 파일을 삭제
  1. 27 15
      components/Home/Promotion.vue
  2. 1 1
      components/Layout/Navigation.vue
  3. 0 0
      pages/nous-rejoindre/[id].vue.off
  4. 0 0
      pages/nous-rejoindre/index.vue.off

+ 27 - 15
components/Home/Promotion.vue

@@ -57,22 +57,17 @@
           />
         </v-img>
 
-        <video
+        <iframe
           v-else
-          controls
-          autoPlay
           class="screen"
+          :src="`https://www.youtube.com/embed/Gpl4gAWNc3s?autoplay=1&controls=1`"
+          title="Vidéo corporate Opentalent"
+          frameborder="0"
+          allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
+          allowfullscreen
           aria-label="Vidéo corporate Opentalent"
           aria-description="Vidéo corporate Opentalent : découvrez l’histoire de l’entreprise, son agenda et ses logiciels culturels"
-        >
-          <source
-            :src="
-              runtimeConfig.public.fileStorageBaseUrl +
-              '/Video_Corporate_Opentalent-Agenda_et_logiciels_culturels.mp4'
-            "
-            type="video/mp4"
-          />
-        </video>
+        ></iframe>
       </v-col>
     </v-row>
 
@@ -143,8 +138,6 @@
 </template>
 
 <script setup lang="ts">
-const runtimeConfig = useRuntimeConfig()
-
 const playVideo: Ref<boolean> = ref(false)
 </script>
 
@@ -228,7 +221,6 @@ const playVideo: Ref<boolean> = ref(false)
     position: relative;
     width: 900px;
     max-width: 900px;
-    height: 675px;
     object-fit: cover;
     margin: 2rem auto;
     text-align: center;
@@ -237,12 +229,32 @@ const playVideo: Ref<boolean> = ref(false)
     bottom: 30rem;
   }
 
+  @media (min-width: 980px) {
+    .screen {
+      height: 675px;
+    }
+  }
+
+  @media (max-width: 980px) {
+    .screen {
+      max-width: 90%;
+    }
+  }
+
   video.screen {
     object-fit: contain;
     background: black;
     transform: scale(1.1);
   }
 
+  iframe.screen {
+    object-fit: contain;
+    background: black;
+    transform: scale(1.1);
+    border: none;
+    aspect-ratio: 16/9;
+  }
+
   @media (max-width: 1280px) {
     .screen {
       margin-top: -12px;

+ 1 - 1
components/Layout/Navigation.vue

@@ -40,7 +40,7 @@ const menu: Array<MainMenuItem> = [
     children: [
       { label: 'Qui sommes-nous', to: '/qui-sommes-nous' },
       { label: 'Nos partenaires', to: '/nos-partenaires' },
-      { label: 'Nous rejoindre', to: '/nous-rejoindre' },
+      // { label: 'Nous rejoindre', to: '/nous-rejoindre' },
     ],
   },
   { label: 'Actualités', to: '/actualites' },

+ 0 - 0
pages/nous-rejoindre/[id].vue → pages/nous-rejoindre/[id].vue.off


+ 0 - 0
pages/nous-rejoindre/index.vue → pages/nous-rejoindre/index.vue.off