瀏覽代碼

finalize responsiveness for school page

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

+ 4 - 0
assets/style/main.scss

@@ -21,6 +21,10 @@ body {
   width: 90%;
   width: 90%;
   margin-right: auto;
   margin-right: auto;
   margin-left: auto;
   margin-left: auto;
+
+  @media (max-width: 600px) {
+    width: 96%;
+  }
 }
 }
 .v-row.center-90 {
 .v-row.center-90 {
   margin: -12px auto;
   margin: -12px auto;

+ 2 - 1
components/Common/Table/Comparatif.vue

@@ -95,7 +95,7 @@
           v-model="carouselPos"
           v-model="carouselPos"
           :hide-delimiters="true"
           :hide-delimiters="true"
           :show-arrows="false"
           :show-arrows="false"
-          :height="800"
+          :height="height"
         >
         >
           <v-carousel-item>
           <v-carousel-item>
             <h4>Standard</h4>
             <h4>Standard</h4>
@@ -210,6 +210,7 @@ const props = defineProps({
   }
   }
 });
 });
 
 
+const height = computed(() => 150 + props.items.length * 48)
 
 
 const carouselPos = ref(0)
 const carouselPos = ref(0)
 
 

+ 21 - 5
components/Layout/Footer/Solutions.vue

@@ -17,13 +17,13 @@
         v-if="showArtist"
         v-if="showArtist"
         class="row-artist"
         class="row-artist"
       >
       >
-        <v-col cols="2">
+        <v-col cols="6" md="2">
           <NuxtLink to="/opentalent_artist">
           <NuxtLink to="/opentalent_artist">
             <v-img src="/images/logo/logiciels/Artist-noir.png" class="logo" />
             <v-img src="/images/logo/logiciels/Artist-noir.png" class="logo" />
           </NuxtLink>
           </NuxtLink>
         </v-col>
         </v-col>
 
 
-        <v-col cols="10">
+        <v-col cols="6" md="10">
           <!-- list v-chip-->
           <!-- list v-chip-->
           <v-chip-group column disabled>
           <v-chip-group column disabled>
             <v-chip class="ma-2 chip-custom" label>
             <v-chip class="ma-2 chip-custom" label>
@@ -49,13 +49,13 @@
         v-if="showManager"
         v-if="showManager"
         class="row-manager"
         class="row-manager"
       >
       >
-        <v-col cols="2">
+        <v-col cols="6" md="2">
           <NuxtLink to="/opentalent_manager">
           <NuxtLink to="/opentalent_manager">
           <v-img src="/images/logo/logiciels/Manager-noir.png" class="logo" />
           <v-img src="/images/logo/logiciels/Manager-noir.png" class="logo" />
         </NuxtLink>
         </NuxtLink>
         </v-col>
         </v-col>
 
 
-        <v-col cols="10">
+        <v-col cols="6" md="10">
           <!-- list v-chip-->
           <!-- list v-chip-->
           <v-chip-group column disabled>
           <v-chip-group column disabled>
             <v-chip class="ma-2 chip-custom" color="primary" label>
             <v-chip class="ma-2 chip-custom" color="primary" label>
@@ -138,6 +138,11 @@ const props = defineProps({
 <style scoped lang="scss">
 <style scoped lang="scss">
 .chip-detail {
 .chip-detail {
   color: var(--on-neutral-color);
   color: var(--on-neutral-color);
+
+  @media (max-width: 600px) {
+    width: 100%;
+    text-align: center;
+  }
 }
 }
 
 
 .chip-custom {
 .chip-custom {
@@ -147,12 +152,23 @@ const props = defineProps({
   border-radius: 3rem;
   border-radius: 3rem;
   text-transform: uppercase;
   text-transform: uppercase;
   font-weight: 500;
   font-weight: 500;
-  font-size: 10px;
   line-height: 16px;
   line-height: 16px;
   display: flex;
   display: flex;
   align-items: center;
   align-items: center;
   text-align: center;
   text-align: center;
   letter-spacing: 0.2em;
   letter-spacing: 0.2em;
+
+  @media (max-width: 600px) {
+    font-size: 10px !important;
+    width: 90%;
+    margin-left: auto;
+    margin-right: auto;
+    text-align: center;
+
+    :deep(.v-chip__content) {
+      width: 100%;
+    }
+  }
 }
 }
 
 
 .row-artist,
 .row-artist,

+ 7 - 0
components/Layout/UI/Title.vue

@@ -17,5 +17,12 @@
     font-size: 3rem;
     font-size: 3rem;
     line-height: 3rem;
     line-height: 3rem;
     margin-left: 1rem;
     margin-left: 1rem;
+
+    @media (max-width: 600px) {
+      font-size: 2rem;
+      line-height: 2rem;
+      margin-left: 12px;
+      width: 100%;
+    }
   }
   }
 </style>
 </style>

+ 28 - 9
components/Logiciels/School/Contact.vue

@@ -3,15 +3,19 @@
     <LayoutContainer>
     <LayoutContainer>
       <!-- Section "Appelez nous" -->
       <!-- Section "Appelez nous" -->
       <v-row>
       <v-row>
-        <v-col cols="6">
+        <LayoutUISubTitle v-if="smAndDown">
+          Contactez-nous
+        </LayoutUISubTitle>
+
+        <v-col cols="12" md="6">
           <v-img
           <v-img
             src="/images/contact/contact.jpg"
             src="/images/contact/contact.jpg"
             class="help-img"
             class="help-img"
           />
           />
         </v-col>
         </v-col>
 
 
-        <v-col cols="5">
-          <LayoutUISubTitle>
+        <v-col cols="12" lg="5">
+          <LayoutUISubTitle v-if="mdAndUp">
             Contactez-nous
             Contactez-nous
           </LayoutUISubTitle>
           </LayoutUISubTitle>
 
 
@@ -39,7 +43,7 @@
 
 
       <!-- Section "Adhérent CMF" -->
       <!-- Section "Adhérent CMF" -->
       <v-row class="center-90" >
       <v-row class="center-90" >
-        <v-col cols="6" >
+        <v-col cols="12" lg="6" >
           <LayoutUISubTitle>
           <LayoutUISubTitle>
             Adhérents CMF
             Adhérents CMF
           </LayoutUISubTitle>
           </LayoutUISubTitle>
@@ -71,12 +75,12 @@
               target="_blank"
               target="_blank"
               class="btn-contact"
               class="btn-contact"
             >
             >
-              Je souhaite obtenir mon code d'accès
+              Obtenir mon code d'accès
             </v-btn>
             </v-btn>
           </div>
           </div>
         </v-col>
         </v-col>
 
 
-        <v-col cols="6">
+        <v-col cols="12" md="6">
            <v-img
            <v-img
              src="/images/logiciels/school/CMF-vivre_la_musique_ensemble.jpg"
              src="/images/logiciels/school/CMF-vivre_la_musique_ensemble.jpg"
              class="logo-cmf mt-12"
              class="logo-cmf mt-12"
@@ -88,6 +92,10 @@
 </template>
 </template>
 <script setup>
 <script setup>
 import AnchoredSection from "~/components/Layout/AnchoredSection.vue";
 import AnchoredSection from "~/components/Layout/AnchoredSection.vue";
+import { useDisplay } from "vuetify";
+
+const { smAndDown, mdAndUp } = useDisplay()
+
 </script>
 </script>
 
 
 <style scoped>
 <style scoped>
@@ -103,6 +111,10 @@ import AnchoredSection from "~/components/Layout/AnchoredSection.vue";
   background-size: contain;
   background-size: contain;
   width: 80%;
   width: 80%;
   height: 100%;
   height: 100%;
+
+  @media (max-width: 600px) {
+    margin: 0 auto !important;
+  }
 }
 }
 
 
 .btn-contact {
 .btn-contact {
@@ -113,13 +125,14 @@ import AnchoredSection from "~/components/Layout/AnchoredSection.vue";
   color: var(--on-secondary-color);
   color: var(--on-secondary-color);
   padding: 19px 28px;
   padding: 19px 28px;
   gap: 9px;
   gap: 9px;
+  max-width: 90%;
 }
 }
 
 
 .subtitle {
 .subtitle {
   font-weight: 400;
   font-weight: 400;
   font-size: 34px;
   font-size: 34px;
   line-height: 38px;
   line-height: 38px;
-  color: var(--primary-color);
+  color: var(--on-neutral-color);
   margin-bottom: 2rem;
   margin-bottom: 2rem;
 }
 }
 
 
@@ -127,13 +140,19 @@ import AnchoredSection from "~/components/Layout/AnchoredSection.vue";
   font-weight: 300;
   font-weight: 300;
   font-size: 16px;
   font-size: 16px;
   line-height: 20px;
   line-height: 20px;
-  color: var(--primary-color);
+  color: var(--on-neutral-color);
   text-align: justify;
   text-align: justify;
 }
 }
 
 
-@media (max-width: 1600px) {
+@media (max-width: 1600px) and (min-width: 600px) {
   .contact-details {
   .contact-details {
     width: 30rem !important;
     width: 30rem !important;
   }
   }
 }
 }
+
+@media (max-width: 600px) {
+  .contact-details {
+    width: 90%;
+  }
+}
 </style>
 </style>

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

@@ -10,7 +10,8 @@
 
 
         <v-row class="formation pb-6 align-center">
         <v-row class="formation pb-6 align-center">
           <v-col
           <v-col
-            cols="6"
+            cols="12"
+            md="6"
             v-for="(formation, index) in formations"
             v-for="(formation, index) in formations"
             :key="index"
             :key="index"
           >
           >
@@ -131,5 +132,19 @@ const formations: Array<Formation> = [
     line-height: 1.5rem;
     line-height: 1.5rem;
     color: var(--on-primary-color);
     color: var(--on-primary-color);
   }
   }
+
+  @media (max-width: 600px) {
+    .v-btn {
+      height: 96px;
+    }
+
+    :deep(.v-btn__content) {
+      white-space: pre-wrap;
+      line-height: 1.2em;
+      padding: auto;
+      text-align: center;
+    }
+  }
+
 }
 }
 </style>
 </style>

+ 4 - 4
components/Logiciels/School/SomeNumbers.vue

@@ -17,7 +17,7 @@
     <v-container>
     <v-container>
       <v-row class="mb-12 card-container custom-row">
       <v-row class="mb-12 card-container custom-row">
         <v-col
         <v-col
-          cols="3"
+          lg="3"
           class="d-flex justify-center align-center small-padding"
           class="d-flex justify-center align-center small-padding"
         >
         >
           <CommonCardStat
           <CommonCardStat
@@ -26,7 +26,7 @@
           />
           />
         </v-col>
         </v-col>
         <v-col
         <v-col
-          cols="3"
+          lg="3"
           class="d-flex justify-center align-center"
           class="d-flex justify-center align-center"
         >
         >
           <CommonCardStat
           <CommonCardStat
@@ -35,7 +35,7 @@
           />
           />
         </v-col>
         </v-col>
         <v-col
         <v-col
-          cols="3"
+          lg="3"
           class="d-flex justify-center align-center"
           class="d-flex justify-center align-center"
         >
         >
           <CommonCardStat
           <CommonCardStat
@@ -44,7 +44,7 @@
           />
           />
         </v-col>
         </v-col>
         <v-col
         <v-col
-          cols="3"
+          lg="3"
           class="d-flex justify-center align-center"
           class="d-flex justify-center align-center"
         >
         >
           <CommonCardStat
           <CommonCardStat

+ 2 - 2
pages/opentalent_manager.vue

@@ -18,7 +18,7 @@
       logoSrc="/images/logo/logiciels/Manager-noir.png"
       logoSrc="/images/logo/logiciels/Manager-noir.png"
     />
     />
 
 
-    <CommonMenuScroll :menus="menus" class="mb-6" />
+    <CommonMenuScroll v-if="lgAndUp" :menus="menus" class="mb-6" />
 
 
     <CommonActionMenu :actions="stickyMenuActions" />
     <CommonActionMenu :actions="stickyMenuActions" />
 
 
@@ -47,7 +47,7 @@ import type { MenuScroll, ActionMenuItem } from "~/types/interface";
 import { ActionMenuItemType } from "~/types/enum/layout";
 import { ActionMenuItemType } from "~/types/enum/layout";
 import { useDisplay } from "vuetify";
 import { useDisplay } from "vuetify";
 
 
-const { mdAndUp } = useDisplay()
+const { mdAndUp, lgAndUp } = useDisplay()
 
 
 const menus: Array<MenuScroll> = ref([
 const menus: Array<MenuScroll> = ref([
   { anchor: "presentation", label: "Présentation" },
   { anchor: "presentation", label: "Présentation" },

+ 2 - 2
pages/opentalent_school.vue

@@ -19,7 +19,7 @@
       :logo-alt-theme="true"
       :logo-alt-theme="true"
     />
     />
 
 
-    <CommonMenuScroll :menus="menus" class="mb-6" />
+    <CommonMenuScroll v-if="lgAndUp" :menus="menus" class="mb-6" />
 
 
     <CommonActionMenu :actions="stickyMenuActions" />
     <CommonActionMenu :actions="stickyMenuActions" />
 
 
@@ -50,7 +50,7 @@ import type { MenuScroll, ActionMenuItem } from "~/types/interface";
 import { ActionMenuItemType } from "~/types/enum/layout";
 import { ActionMenuItemType } from "~/types/enum/layout";
 import { useDisplay } from "vuetify";
 import { useDisplay } from "vuetify";
 
 
-const { mdAndUp } = useDisplay()
+const { mdAndUp, lgAndUp } = useDisplay()
 
 
 const menus: Array<MenuScroll> = [
 const menus: Array<MenuScroll> = [
   { anchor: "presentation", label: "Présentation" },
   { anchor: "presentation", label: "Présentation" },