index.vue 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  1. <template>
  2. <PageMeta
  3. title="Olivier Massot - Fullstack developer"
  4. description=""
  5. />
  6. <div class="banner">
  7. <h1>
  8. {{ $t('Fullstack developer') }}
  9. </h1>
  10. <h2>
  11. {{ $t('x_years_experience', { years: XP_YEARS }) }}
  12. </h2>
  13. </div>
  14. <v-card class="introduction">
  15. <div>
  16. {{ $t('intro_short') }}
  17. </div>
  18. <div v-html="$t('intro_part_4')" />
  19. <v-expand-transition>
  20. <div v-if="showLongIntro" class="long-intro">
  21. <div>
  22. {{ $t('intro_part_1') }}
  23. </div>
  24. <div>
  25. {{ $t('intro_part_2') }}
  26. </div>
  27. <div>
  28. {{ $t('intro_part_3') }}
  29. </div>
  30. </div>
  31. </v-expand-transition>
  32. <v-btn
  33. size="small"
  34. variant="text"
  35. :prepend-icon="showLongIntro ? 'fas fa-caret-up' : 'fas fa-caret-down'"
  36. :height="36"
  37. @click="showLongIntro=!showLongIntro"
  38. >
  39. {{ showLongIntro ? $t('show_less') : $t('show_more') }}
  40. </v-btn>
  41. <div class="banner-buttons">
  42. <DownloadPdfBtn />
  43. <v-btn variant="outlined" to="#contact" :active="false">
  44. {{$t('contact_me')}}
  45. </v-btn>
  46. </div>
  47. <h5 class="find-me-on">
  48. {{ $t('find_me_on')}}
  49. </h5>
  50. <div class="logos mt-2">
  51. <BannerLogo
  52. href="https://github.com/olinox14"
  53. :img="theme.global.name.value === 'light' ? '/images/logos/github_large_light.png' : '/images/logos/github_large_dark.png'"
  54. :alt="i18n.t('Find me on Github')"
  55. />
  56. <BannerLogo
  57. href="https://stackoverflow.com/users/4279120/olinox14"
  58. :img="theme.global.name.value === 'light' ? '/images/logos/stackoverflow.svg' : '/images/logos/stackoverflow-dark.svg'"
  59. :alt="i18n.t('Find me on Stackoverflow')"
  60. :height="30"
  61. />
  62. <BannerLogo
  63. href="https://www.linkedin.com/in/olivier-massot-60b87b181"
  64. img="/images/logos/linkedin.png"
  65. :alt="i18n.t('Find me on LinkedIn')"
  66. :height="22"
  67. />
  68. <BannerLogo
  69. href="https://www.codingame.com/profile/75dcc329745def530c02ddb4485f22235683081"
  70. img="/images/logos/codingame.svg"
  71. :alt="i18n.t('Find me on Codingame')"
  72. />
  73. </div>
  74. </v-card>
  75. <div class="content">
  76. <div class="badges">
  77. <h3>{{ $t("Competences") }}</h3>
  78. <BadgeSection />
  79. </div>
  80. <div class="cursus">
  81. <h3>{{ $t("Cursus") }}</h3>
  82. <Cursus />
  83. </div>
  84. </div>
  85. <div id="contact">
  86. <h3>{{ $t("Contact") }}</h3>
  87. <Contact />
  88. </div>
  89. </template>
  90. <script setup lang="ts">
  91. import { useTheme } from 'vuetify'
  92. import type { Ref } from '@vue/reactivity'
  93. import BadgeSection from '~/components/BadgeSection.vue'
  94. const i18n = useI18n()
  95. const theme = useTheme()
  96. const START_YEAR = 2011
  97. const CURRENT_YEAR = new Date().getFullYear();
  98. const XP_YEARS = CURRENT_YEAR - START_YEAR
  99. const showLongIntro: Ref<boolean> = ref(false)
  100. </script>
  101. <style scoped lang="scss">
  102. .banner {
  103. display: flex;
  104. flex-direction: column;
  105. justify-content: center;
  106. align-items: center;
  107. text-align: center;
  108. padding: 20px;
  109. color: rgb(var(--v-theme-on-background));
  110. h2 {
  111. margin: 18px 0 36px 0;
  112. border-bottom: none;
  113. }
  114. }
  115. .introduction {
  116. padding: 36px 64px;
  117. border-radius: 6px;
  118. text-align: justify;
  119. margin: 0 auto;
  120. width: 100%;
  121. @media (max-width: 600px) {
  122. padding: 36px 10%;
  123. }
  124. :deep(a) {
  125. color: rgb(var(--v-theme-on-primary--clickable));
  126. }
  127. div {
  128. max-width: 900px;
  129. margin: 0 auto 16px auto;
  130. }
  131. .v-btn {
  132. width: 100%;
  133. margin: 2px auto 16px auto;
  134. }
  135. :deep(a) {
  136. font-weight: 900;
  137. text-decoration: none;
  138. padding: 3px 1px;
  139. }
  140. .banner-buttons {
  141. display: flex;
  142. flex-direction: row;
  143. justify-content: center;
  144. :deep(.v-btn) {
  145. margin: 6px 24px;
  146. width: 160px;
  147. border-radius: 18px;
  148. font-weight: 500;
  149. }
  150. @media (max-width: 600px) {
  151. flex-direction: column;
  152. align-items: center;
  153. :deep(.v-btn) {
  154. margin: 12px auto;
  155. }
  156. }
  157. }
  158. .find-me-on {
  159. margin: 16px auto 0 auto;
  160. text-transform: uppercase;
  161. text-align: center;
  162. font-size: 12px;
  163. font-weight: 400;
  164. }
  165. .logos {
  166. display: flex;
  167. flex-direction: row;
  168. max-width: 600px;
  169. margin: 0 auto;
  170. justify-content: center;
  171. align-items: center;
  172. @media (max-width: 540px) {
  173. flex-direction: column;
  174. }
  175. }
  176. }
  177. h3 {
  178. margin: 12px 0 24px 0;
  179. }
  180. .content {
  181. display: flex;
  182. flex-direction: row;
  183. justify-content: space-around;
  184. .badges {
  185. max-width: 65%;
  186. min-width: 65%;
  187. }
  188. .cursus {
  189. max-width: 35%;
  190. min-width: 35%;
  191. padding: 24px;
  192. }
  193. @media (max-width: 1280px) {
  194. flex-direction: column;
  195. .badges {
  196. max-width: 100%;
  197. }
  198. .cursus {
  199. max-width: 100%;
  200. }
  201. }
  202. }
  203. .badges {
  204. padding: 18px;
  205. }
  206. </style>