Banner.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <template>
  2. <LayoutContainer>
  3. <div class="container-title">
  4. <v-col cols="12" >
  5. <h1 class="formation">Formation</h1>
  6. <h4 class="subtitle-formation">Prise en main ou piqûre de rappel, on est toujours à vos côtés.</h4>
  7. </v-col>
  8. </div>
  9. <v-row>
  10. <v-col cols="12">
  11. <img
  12. src="/images/formation/banner.jpg"
  13. alt="line"
  14. class="cover-image"
  15. />
  16. </v-col>
  17. </v-row>
  18. <v-row>
  19. <v-col cols="12" class="menu-container">
  20. <div v-for="menu in menus" :key="menu.label">
  21. <v-chip v-if="state.activeMenu === menu.label" class="active-menu">{{
  22. menu.label
  23. }}</v-chip>
  24. <span v-else>{{ menu.label }}</span>
  25. </div>
  26. </v-col>
  27. </v-row>
  28. </LayoutContainer>
  29. </template>
  30. <script setup>
  31. const state = ref({
  32. activeMenu: "Présentation",
  33. });
  34. const menus = [
  35. { label: "Présentation" },
  36. { label: "catalogue" },
  37. { label: "FINANCEMENT" },
  38. { label: "CERTIFICATION" },
  39. { label: "INSCRIPTION" },
  40. { label: "ÉVALUATION" }
  41. ];
  42. </script>
  43. <style scoped>
  44. .subtitle-formation {
  45. font-family: 'Barlow';
  46. font-style: normal;
  47. font-weight: 600;
  48. font-size: 30px;
  49. line-height: 35px;
  50. text-align: center;
  51. color: #000000;
  52. margin-left: 34rem;
  53. margin-right: 34rem;
  54. }
  55. .formation {
  56. font-family: 'Barlow';
  57. font-style: normal;
  58. font-weight: 600;
  59. font-size: 90px;
  60. line-height: 85px;
  61. text-align: center;
  62. color: #000000;
  63. margin-bottom: 1rem;
  64. }
  65. .container-title {
  66. display: flex;
  67. flex-direction: row;
  68. justify-content: space-around;
  69. border-bottom: 0.1rem solid #eaeaea;
  70. }
  71. .menu-container {
  72. display: flex;
  73. justify-content: space-around;
  74. padding: 1rem 10rem;
  75. background: white;
  76. color: #bbb8b8;
  77. font-family: "Barlow";
  78. font-size: 12px;
  79. line-height: 16px;
  80. display: flex;
  81. align-items: center;
  82. text-align: center;
  83. letter-spacing: 0.18em;
  84. text-transform: uppercase;
  85. border-bottom: 0.1rem solid #eaeaea;
  86. }
  87. .v-chip.active-menu {
  88. background: black;
  89. color: white;
  90. }
  91. .cover-image {
  92. width: 100%;
  93. height: 35rem;
  94. object-fit: cover;
  95. object-position: center 10%;
  96. margin: 0 auto;
  97. transform: scaleX(-1);
  98. }
  99. </style>