Banner.vue 2.3 KB

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