BadgeSection.vue 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308
  1. <!--suppress TypeScriptValidateTypes -->
  2. <template>
  3. <v-container>
  4. <v-row>
  5. <v-col
  6. v-for="col in cols"
  7. cols="12"
  8. sm="6"
  9. md="4"
  10. >
  11. <div
  12. v-for="item in col"
  13. :key="item.title"
  14. class="badges-section"
  15. >
  16. <h4>{{ item.title }}</h4>
  17. <Badge
  18. v-for="badge in item.badges"
  19. :title="badge.title"
  20. :img="badge.logo.value"
  21. :subtitle="badge.subtitle"
  22. :details="badge.details"
  23. :small="badge.small ?? false"
  24. />
  25. </div>
  26. </v-col>
  27. </v-row>
  28. </v-container>
  29. <!-- <div class="badges-section">-->
  30. <!-- <h4>Languages</h4>-->
  31. <!-- <Badge title="English" img="" :subtitle="$t('good')" />-->
  32. <!-- <Badge title="French" img="" :subtitle="$t('native')" />-->
  33. <!-- <Badge title="Spanish" img="" :subtitle="$t('basic')" />-->
  34. <!-- </div>-->
  35. </template>
  36. <script setup lang="ts">
  37. import { useTheme } from 'vuetify'
  38. const theme = useTheme()
  39. const i18n = useI18n()
  40. const col1 = [
  41. {
  42. title: 'Languages',
  43. badges: [
  44. {
  45. title: 'Python',
  46. logo: ref('/images/logos/python.svg'),
  47. subtitle: i18n.t('x_years', { years: 11 }),
  48. details: ''
  49. },
  50. {
  51. title: 'PHP',
  52. logo: ref('/images/logos/php.svg'),
  53. subtitle: i18n.t('x_years', { years: 5 }),
  54. details: ''
  55. },
  56. {
  57. title:
  58. 'Node.js',
  59. logo: computed(() => theme.global.name.value === 'light' ? '/images/logos/nodejs_light.svg' : '/images/logos/nodejs_dark.svg'),
  60. subtitle: i18n.t('x_years', { years: 6 }),
  61. details: ''
  62. },
  63. {
  64. title: 'C#',
  65. logo: ref('/images/logos/csharp.png'),
  66. subtitle: i18n.t('x_years', { years: 2 }),
  67. details: ''
  68. },
  69. ]
  70. },
  71. {
  72. title: 'Frameworks',
  73. badges: [
  74. {
  75. 'title': 'Symfony',
  76. logo: ref('/images/logos/symfony.svg'),
  77. subtitle: i18n.t('x_years', { years: 5 }),
  78. details: ''
  79. },
  80. {
  81. 'title': 'Vue.js',
  82. logo: ref('/images/logos/vue.png'),
  83. subtitle: i18n.t('x_years', { years: 4 }),
  84. details: ''
  85. },
  86. {
  87. 'title': 'Nuxt.js',
  88. logo: ref('/images/logos/nuxt.svg'),
  89. subtitle: i18n.t('x_years', { years: 4 }),
  90. details: ''
  91. },
  92. {
  93. 'title': '.Net',
  94. logo: ref('/images/logos/dotnet.svg'),
  95. subtitle: i18n.t('x_years', { years: 2 }),
  96. details: ''
  97. },
  98. {
  99. 'title': 'Jquery',
  100. logo: computed(() => theme.global.name.value === 'light' ? '/images/logos/jquery.png' : '/images/logos/jquery_dark.png'),
  101. subtitle: i18n.t('x_years', { years: 3 }),
  102. details: ''
  103. },
  104. {
  105. 'title': 'Django',
  106. logo: computed(() => theme.global.name.value === 'light' ? '/images/logos/django-light.svg' : '/images/logos/django-dark.svg'),
  107. subtitle: i18n.t('x_years', { years: 4 }),
  108. details: ''
  109. },
  110. ]
  111. }
  112. ]
  113. const col2 = [
  114. {
  115. title: 'Data',
  116. badges: [
  117. {
  118. title: 'Mysql',
  119. logo: ref('/images/logos/mysql.png'),
  120. subtitle: i18n.t('x_years', { years: 7 }),
  121. details: ''
  122. },
  123. {
  124. title: 'MariaDb',
  125. logo: computed(() => theme.global.name.value === 'light' ? '/images/logos/mariadb.svg': '/images/logos/mariadb_dark.svg'),
  126. subtitle: i18n.t('x_years', { years: 7 }),
  127. details: ''
  128. },
  129. {
  130. title: 'Postgresql',
  131. logo: ref('/images/logos/postgresql.svg'),
  132. subtitle: i18n.t('x_years', { years: 5 }),
  133. details: ''
  134. },
  135. {
  136. title: 'SQL-Server',
  137. logo: ref('/images/logos/sql-server.svg'),
  138. subtitle: i18n.t('x_years', { years: 6 }),
  139. details: ''
  140. },
  141. {
  142. title: 'Sqlite',
  143. logo: ref('/images/logos/sqlite.svg'),
  144. subtitle: i18n.t('x_years', { years: 5 }),
  145. details: ''
  146. },
  147. {
  148. title: 'Solr',
  149. logo: computed(() => theme.global.name.value === 'light' ? '/images/logos/solr_light.png' : '/images/logos/solr_dark.png'),
  150. subtitle: i18n.t('x_years', { years: 2 }),
  151. details: ''
  152. },
  153. ]
  154. },
  155. {
  156. title: 'DevOps',
  157. badges: [
  158. {
  159. 'title': 'Docker',
  160. logo: ref('/images/logos/docker.svg'),
  161. subtitle: i18n.t('x_years', { years: 5 }),
  162. details: ''
  163. },
  164. {
  165. 'title': 'Gitlab CI',
  166. logo: ref('/images/logos/gitlab.svg'),
  167. subtitle: i18n.t('x_years', { years: 9 }),
  168. details: ''
  169. },
  170. {
  171. 'title': 'Github Actions',
  172. logo: computed(() => theme.global.name.value === 'light' ? '/images/logos/github-light.svg' : '/images/logos/github-dark.svg'),
  173. subtitle: i18n.t('x_years', { years: 3 }),
  174. details: ''
  175. },
  176. {
  177. 'title': 'Jenkins',
  178. logo: ref('/images/logos/jenkins.png'),
  179. subtitle: i18n.t('x_years', { years: 3 }),
  180. details: ''
  181. }
  182. ]
  183. }
  184. ]
  185. const col3 = [
  186. {
  187. title: 'Other',
  188. badges: [
  189. {
  190. title: 'Mercure (SSE)',
  191. logo: ref('/images/logos/docker.svg'),
  192. subtitle: i18n.t('x_years', { years: 4 }),
  193. details: ''
  194. },
  195. {
  196. title: 'Nextcloud',
  197. logo: ref('/images/logos/gitlab.svg'),
  198. subtitle: i18n.t('x_years', { years: 9 }),
  199. details: ''
  200. },
  201. {
  202. title: i18n.t('system_administration'),
  203. logo: computed(() => theme.global.name.value === 'light' ? '/images/command-line_light.png' : '/images/command-line_dark.png'),
  204. subtitle: i18n.t('x_years', { years: 9 }),
  205. details: '',
  206. small: true
  207. },
  208. {
  209. title: 'Git-Flow',
  210. logo: computed(() => theme.global.name.value === 'light' ? '/images/logos/git-flow-light.svg' : '/images/logos/git-flow-dark.svg'),
  211. subtitle: i18n.t('x_years', { years: 4 }),
  212. details: ''
  213. },
  214. {
  215. title: 'Typo3 (dev)',
  216. logo: ref('/images/logos/typo3.png'),
  217. subtitle: i18n.t('x_years', { years: 5 }),
  218. details: ''
  219. },
  220. ]
  221. },
  222. {
  223. title: 'Management',
  224. badges: [
  225. {
  226. title: 'Management',
  227. logo: ref('/images/team-management.png'),
  228. subtitle: i18n.t('x_years', { years: 11 }),
  229. details: ''
  230. },
  231. {
  232. title: 'Product Owner',
  233. logo: ref('/images/product-management.png'),
  234. subtitle: i18n.t('x_years', { years: 11 }),
  235. details: ''
  236. },
  237. {
  238. title: i18n.t('continuous_improvement'),
  239. logo: ref('/images/continuous-improvement.png'),
  240. subtitle: i18n.t('x_years', { years: 10 }),
  241. details: '',
  242. small: true
  243. },
  244. {
  245. title: 'SCRUM',
  246. logo: ref('/images/scrum.png'),
  247. subtitle: i18n.t('x_years', { years: 9 }),
  248. details: ''
  249. },
  250. {
  251. title: 'Tutoring',
  252. logo: ref('/images/teacher.png'),
  253. subtitle: i18n.t('x_years', { years: 7 }),
  254. details: ''
  255. }
  256. ]
  257. }
  258. ]
  259. const cols = [
  260. col1,
  261. col2,
  262. col3
  263. ]
  264. </script>
  265. <style scoped lang="scss">
  266. .v-container {
  267. padding: 0 !important;
  268. }
  269. .v-col {
  270. display: flex;
  271. flex-direction: column;
  272. }
  273. .badges-section {
  274. display: flex;
  275. flex-direction: column;
  276. flex-wrap: wrap;
  277. justify-content: flex-start;
  278. margin: 24px 0;
  279. padding: 12px 6px;
  280. border: solid 1px rgba(var(--v-theme-on-background), 0.2);
  281. border-radius: 16px;
  282. flex: 1;
  283. h4 {
  284. font-size: 16px;
  285. margin: -24px 24px 6px 24px;
  286. padding: 0 12px;
  287. background: rgb(var(--v-theme-background));;
  288. }
  289. .v-card {
  290. margin: 6px auto;
  291. }
  292. }
  293. </style>