瀏覽代碼

fix responsive errors for md screens (index and soft pages)

Olivier Massot 1 年之前
父節點
當前提交
f9c0edff29

+ 2 - 1
components/Common/Banner.vue

@@ -77,7 +77,8 @@ const props = defineProps({
 .banner-container {
 .banner-container {
   position: relative;
   position: relative;
   overflow: hidden;
   overflow: hidden;
-
+  min-height: 400px;
+  max-height: 400px;
   .image-text {
   .image-text {
     position: absolute;
     position: absolute;
     top: 40px;
     top: 40px;

+ 20 - 5
components/Common/Contact.vue

@@ -15,7 +15,7 @@
           />
           />
         </v-col>
         </v-col>
 
 
-        <v-col cols="12" lg="5">
+        <v-col cols="12" lg="5" class="contact-section">
           <LayoutUISubTitle v-if="mdAndUp">
           <LayoutUISubTitle v-if="mdAndUp">
             Contactez-nous
             Contactez-nous
           </LayoutUISubTitle>
           </LayoutUISubTitle>
@@ -43,7 +43,7 @@
       </v-row>
       </v-row>
 
 
       <!-- Section "Adhérent CMF" -->
       <!-- Section "Adhérent CMF" -->
-      <v-row class="center-90" >
+      <v-row class="center-90 cmf-section" >
         <v-col cols="12" lg="6" >
         <v-col cols="12" lg="6" >
           <LayoutUISubTitle>
           <LayoutUISubTitle>
             Adhérents CMF
             Adhérents CMF
@@ -58,7 +58,7 @@
               N'attendez plus, appelez-nous
               N'attendez plus, appelez-nous
             </h6>
             </h6>
 
 
-            <p class="contact-details mr-12">
+            <p class="contact-details">
               Si votre établissement d’enseignement artistique est adhérent à la
               Si votre établissement d’enseignement artistique est adhérent à la
               Confédération Musicale de France (CMF), vous bénéficiez
               Confédération Musicale de France (CMF), vous bénéficiez
               gratuitement, dans le cadre de votre adhésion, de la version
               gratuitement, dans le cadre de votre adhésion, de la version
@@ -114,8 +114,8 @@ const { smAndDown, mdAndUp } = useDisplay()
   width: 80%;
   width: 80%;
   height: 100%;
   height: 100%;
 
 
-  @media (max-width: 600px) {
-    margin: 0 auto !important;
+  @media (max-width: 1240px) {
+    margin: 12px auto 48px auto !important;
   }
   }
 }
 }
 
 
@@ -144,6 +144,21 @@ const { smAndDown, mdAndUp } = useDisplay()
   line-height: 20px;
   line-height: 20px;
   color: var(--on-neutral-color);
   color: var(--on-neutral-color);
   text-align: justify;
   text-align: justify;
+  max-width: 80%;
+}
+
+@media (max-width: 1240px) {
+  .contact-section {
+    text-align: center;
+  }
+
+  .cmf-section {
+    text-align: center;
+  }
+
+  .contact-details {
+    margin: 0 auto;
+  }
 }
 }
 
 
 @media (max-width: 1600px) and (min-width: 600px) {
 @media (max-width: 1600px) and (min-width: 600px) {

+ 14 - 6
components/Common/ReviewSection.vue

@@ -7,7 +7,7 @@
               Ce sont eux qui en parlent le mieux
               Ce sont eux qui en parlent le mieux
             </h3>
             </h3>
 
 
-            <div v-if="lgAndUp" class="carousel-controls">
+            <div class="carousel-controls">
               <v-btn
               <v-btn
                 icon="fas fa-chevron-left"
                 icon="fas fa-chevron-left"
                 @click="goPrevious"
                 @click="goPrevious"
@@ -26,7 +26,7 @@
             :items-to-show="lgAndUp ? 3 : 1"
             :items-to-show="lgAndUp ? 3 : 1"
             :wrapAround="true"
             :wrapAround="true"
             :show-arrows="false"
             :show-arrows="false"
-            height="350"
+            snapAlign="center"
             class="carousel"
             class="carousel"
           >
           >
             <Slide
             <Slide
@@ -130,10 +130,19 @@ const goNext = () => {
     margin-right: 1rem;
     margin-right: 1rem;
     margin-bottom: 2rem;
     margin-bottom: 2rem;
     border-radius: 0;
     border-radius: 0;
+
+    @media (max-width: 1240px) {
+      margin-top: 2rem;
+      margin-bottom: 1rem;
+    }
   }
   }
 }
 }
 
 
 .carousel {
 .carousel {
+  @media (max-width: 1240px) {
+    left: -36px;
+  }
+
   .v-card {
   .v-card {
     display: flex;
     display: flex;
     flex-direction: column;
     flex-direction: column;
@@ -145,9 +154,8 @@ const goNext = () => {
     margin-bottom: 0.6rem;
     margin-bottom: 0.6rem;
 
 
     @media (max-width: 1240px) {
     @media (max-width: 1240px) {
-      min-height: 120px;
       max-width: 70%;
       max-width: 70%;
-      margin: 0 auto;
+      margin: 0 auto 48px auto;
     }
     }
   }
   }
 
 
@@ -222,8 +230,8 @@ const goNext = () => {
   border-radius: 1rem;
   border-radius: 1rem;
 
 
   @media (max-width:1240px) {
   @media (max-width:1240px) {
-    margin-left: 15%;
-    max-width: 70%;
+    //margin-left: 15%;
+    //max-width: 70%;
   }
   }
 }
 }
 
 

+ 1 - 1
components/Home/Promotion.vue

@@ -169,7 +169,7 @@ const { mdAndUp } = useDisplay()
       line-height: 3.5rem;
       line-height: 3.5rem;
       height: 10rem;
       height: 10rem;
       width: 40rem;
       width: 40rem;
-      margin: 3rem 2rem 5rem;
+      margin: 3rem auto 5rem;
     }
     }
 
 
     .v-img {
     .v-img {

+ 2 - 2
components/Home/Reviews.vue

@@ -172,7 +172,7 @@
         </v-col>
         </v-col>
       </v-row>
       </v-row>
 
 
-      <v-row class="justify-center align-center">
+      <v-row class="justify-center align-center mb-8">
         <v-col class="d-flex justify-space-around align-center">
         <v-col class="d-flex justify-space-around align-center">
           <v-btn
           <v-btn
             icon="fas fa-arrow-left-long"
             icon="fas fa-arrow-left-long"
@@ -195,7 +195,7 @@
         </v-col>
         </v-col>
       </v-row>
       </v-row>
 
 
-      <CommonCarouselClients :items="items" class="alt-theme"/>
+      <CommonCarouselClients :items="items" class="alt-theme pt-12"/>
     </div>
     </div>
   </LayoutContainer>
   </LayoutContainer>
 </template>
 </template>

+ 7 - 3
components/Home/Solution.vue

@@ -45,7 +45,7 @@ Section "Solutions" de la page d'accueil
             </nuxt-link>
             </nuxt-link>
 
 
             <v-row class="details">
             <v-row class="details">
-              <v-col cols="12" md="6">
+              <v-col cols="12" sm="6">
                 <ul>
                 <ul>
                   <li
                   <li
                     v-for="(sol, i) in solution.solutions.slice(0, 4)"
                     v-for="(sol, i) in solution.solutions.slice(0, 4)"
@@ -56,7 +56,7 @@ Section "Solutions" de la page d'accueil
                 </ul>
                 </ul>
               </v-col>
               </v-col>
 
 
-              <v-col cols="12" md="6">
+              <v-col cols="12" sm="6">
                 <ul>
                 <ul>
                   <li
                   <li
                     v-for="(sol, i) in solution.solutions.slice(4)"
                     v-for="(sol, i) in solution.solutions.slice(4)"
@@ -265,7 +265,7 @@ h4 {
     font-size: 0.8rem;
     font-size: 0.8rem;
     border-radius: 6px;
     border-radius: 6px;
     background: var(--secondary-color);
     background: var(--secondary-color);
-    color: var(--on-primary-color);
+    color: var(--on-secondary-color);
 
 
     @media (min-width: 1240px) {
     @media (min-width: 1240px) {
       position: absolute;
       position: absolute;
@@ -276,6 +276,7 @@ h4 {
     }
     }
 
 
     @media (max-width: 1240px) {
     @media (max-width: 1240px) {
+      left: auto;
       width: 90%;
       width: 90%;
       margin: 24px auto;
       margin: 24px auto;
     }
     }
@@ -336,6 +337,9 @@ h4 {
       }
       }
     }
     }
 
 
+    @media (max-width: 1240px) {
+      margin: 0 auto;
+    }
 
 
     @media (max-width: 600px) {
     @media (max-width: 600px) {
       padding: 18px;
       padding: 18px;

+ 5 - 0
components/Layout/FAQ.vue

@@ -115,7 +115,12 @@ h3 {
   z-index: 2;
   z-index: 2;
   text-transform: none !important;
   text-transform: none !important;
   line-height: 1rem;
   line-height: 1rem;
+  margin-right: auto;
 
 
+  @media (max-width: 1240px) {
+    width: 40%;
+    margin-left: 30%;
+  }
 
 
   @media (max-width: 600px) {
   @media (max-width: 600px) {
     width: 90%;
     width: 90%;

+ 19 - 13
components/Layout/Navigation/Md.vue

@@ -2,21 +2,23 @@
   <div class="app-container">
   <div class="app-container">
     <v-app class="navigation-sm">
     <v-app class="navigation-sm">
       <!-- Top bar -->
       <!-- Top bar -->
-      <v-app-bar app>
-        <v-app-bar-nav-icon
-          @click="toggleMenu"
-        />
-
-        <nuxt-link to="/">
-          <v-img
-            class="logo-md"
-            :src="smAndUp ? '/images/logo/navigation-logo.png' : '/images/Opentalent_Griffe.png'"
+      <v-app-bar>
+        <template #prepend>
+          <v-app-bar-nav-icon
+            @click="toggleMenu"
           />
           />
-        </nuxt-link>
+        </template>
 
 
-        <v-spacer />
+        <v-app-bar-title>
+          <nuxt-link to="/">
+            <v-img
+              class="logo-md"
+              :src="smAndUp ? '/images/logo/navigation-logo.png' : '/images/Opentalent_Griffe.png'"
+            />
+          </nuxt-link>
+        </v-app-bar-title>
 
 
-        <div class="mx-4">
+        <template #append>
           <v-btn
           <v-btn
             href="https://admin.opentalent.fr/#/login/"
             href="https://admin.opentalent.fr/#/login/"
             icon="fas fa-user"
             icon="fas fa-user"
@@ -35,7 +37,7 @@
               class="icon"
               class="icon"
             />
             />
           </AgendaLink>
           </AgendaLink>
-        </div>
+        </template>
       </v-app-bar>
       </v-app-bar>
 
 
       <!-- Tiroir de navigation principal -->
       <!-- Tiroir de navigation principal -->
@@ -147,6 +149,10 @@ const withAnimation = (callback: () => void) => {
   height: 54px;
   height: 54px;
 }
 }
 
 
+.v-app-bar {
+  max-width: 100vw;
+}
+
 .navigation-sm {
 .navigation-sm {
   background-color: var(--neutral-color);
   background-color: var(--neutral-color);
   position: fixed;
   position: fixed;

+ 13 - 1
components/Logiciels/School/Formations.vue

@@ -138,6 +138,19 @@ const formations: Array<Formation> = [
     color: var(--on-primary-color);
     color: var(--on-primary-color);
   }
   }
 
 
+  @media (max-width: 1240px) {
+    .background-img, h3, h4, .details {
+      margin-left: auto;
+      margin-right: auto;
+      text-align: center;
+    }
+
+    .v-btn {
+      width: 80%;
+      margin-left: 10%;
+    }
+  }
+
   @media (max-width: 600px) {
   @media (max-width: 600px) {
     .v-btn {
     .v-btn {
       height: 96px;
       height: 96px;
@@ -150,6 +163,5 @@ const formations: Array<Formation> = [
       text-align: center;
       text-align: center;
     }
     }
   }
   }
-
 }
 }
 </style>
 </style>

+ 0 - 13
pages/actualites/index.vue

@@ -16,19 +16,6 @@
     imageAlt="Journaux pliés en deux posés les uns à côté des autres"
     imageAlt="Journaux pliés en deux posés les uns à côté des autres"
   />
   />
 
 
-  <v-row class="mb-12 center-90">
-    <v-col class="d-flex align-items-center">
-      <v-btn
-        to="/"
-        prepend-icon="fas fa-arrow-left"
-        variant="outlined"
-        class="back-button"
-      >
-        Retour aux actualités
-      </v-btn>
-    </v-col>
-  </v-row>
-
   <v-row class="center-90">
   <v-row class="center-90">
     <v-col cols="12">
     <v-col cols="12">
       <NewsList />
       <NewsList />