index.vue 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  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" :active="false" @click="onContactMeClick">
  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. const onContactMeClick = () => {
  101. window.scrollTo({ top: document.body.scrollHeight, behavior: 'smooth' });
  102. }
  103. </script>
  104. <style scoped lang="scss">
  105. .banner {
  106. display: flex;
  107. flex-direction: column;
  108. justify-content: center;
  109. align-items: center;
  110. text-align: center;
  111. padding: 20px;
  112. color: rgb(var(--v-theme-on-background));
  113. h2 {
  114. margin: 18px 0 36px 0;
  115. border-bottom: none;
  116. }
  117. }
  118. .introduction {
  119. padding: 36px 64px;
  120. border-radius: 6px;
  121. text-align: justify;
  122. margin: 0 auto;
  123. width: 100%;
  124. @media (max-width: 600px) {
  125. padding: 36px 10%;
  126. }
  127. :deep(a) {
  128. color: rgb(var(--v-theme-on-primary--clickable));
  129. }
  130. div {
  131. max-width: 900px;
  132. margin: 0 auto 16px auto;
  133. }
  134. .v-btn {
  135. width: 100%;
  136. margin: 2px auto 16px auto;
  137. }
  138. :deep(a) {
  139. font-weight: 900;
  140. text-decoration: none;
  141. padding: 3px 1px;
  142. }
  143. .banner-buttons {
  144. display: flex;
  145. flex-direction: row;
  146. justify-content: center;
  147. :deep(.v-btn) {
  148. margin: 6px 24px;
  149. width: 160px;
  150. border-radius: 18px;
  151. font-weight: 500;
  152. }
  153. @media (max-width: 600px) {
  154. flex-direction: column;
  155. align-items: center;
  156. :deep(.v-btn) {
  157. margin: 12px auto;
  158. }
  159. }
  160. }
  161. .find-me-on {
  162. margin: 16px auto 0 auto;
  163. text-transform: uppercase;
  164. text-align: center;
  165. font-size: 12px;
  166. font-weight: 400;
  167. }
  168. .logos {
  169. display: flex;
  170. flex-direction: row;
  171. max-width: 600px;
  172. margin: 0 auto;
  173. justify-content: center;
  174. align-items: center;
  175. @media (max-width: 540px) {
  176. flex-direction: column;
  177. }
  178. }
  179. }
  180. h3 {
  181. margin: 12px 0 24px 0;
  182. }
  183. .content {
  184. display: flex;
  185. flex-direction: row;
  186. justify-content: space-around;
  187. .badges {
  188. max-width: 65%;
  189. min-width: 65%;
  190. }
  191. .cursus {
  192. max-width: 35%;
  193. min-width: 35%;
  194. padding: 24px;
  195. }
  196. @media (max-width: 1280px) {
  197. flex-direction: column;
  198. .badges {
  199. max-width: 100%;
  200. }
  201. .cursus {
  202. max-width: 100%;
  203. }
  204. }
  205. }
  206. .badges {
  207. padding: 18px;
  208. }
  209. </style>