diff --git a/config/Head.ts b/config/Head.ts index 3fa20ad..6f4bb04 100644 --- a/config/Head.ts +++ b/config/Head.ts @@ -1,5 +1,4 @@ export default { - title: 'artsite', meta: [ { charset: 'utf-8' }, { name: 'viewport', content: 'width=device-width, initial-scale=1' }, diff --git a/config/Translation.ts b/config/Translation.ts new file mode 100644 index 0000000..2ee8df3 --- /dev/null +++ b/config/Translation.ts @@ -0,0 +1,22 @@ +export default { + locales: [ + { + code: 'en', + name: 'English', + file: 'en-US.ts', + }, + { + code: 'fr', + name: 'Français', + file: 'fr-FR.ts', + }, + ], + strategy: 'no_prefix', + defaultLocale: 'en', + langDir: 'locales/', + lazy: true, + seo: true, + vueI18n: { + fallbackLocale: 'en', + }, +} diff --git a/config/index.ts b/config/index.ts index 3c800ff..5ce54b0 100644 --- a/config/index.ts +++ b/config/index.ts @@ -2,5 +2,6 @@ import Axios from './Axios' import Head from './Head' import ColorMode from './ColorMode' import Tailwind from './Tailwind' +import Translation from './Translation' -export { Axios, Head, ColorMode, Tailwind } +export { Axios, Head, ColorMode, Tailwind, Translation } diff --git a/nuxt.config.js b/nuxt.config.js index 812b35d..2962c3c 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -1,4 +1,4 @@ -import { Axios, Head, ColorMode, Tailwind } from './config' +import { Axios, Head, ColorMode, Tailwind, Translation } from './config' export default { head: Head, @@ -23,7 +23,8 @@ export default { ], modules: [ - ['@nuxtjs/axios', Axios] + ['@nuxtjs/axios', Axios], + ['nuxt-i18n', Translation] ], buildDir: 'build', diff --git a/package.json b/package.json index be13530..9a0bc9f 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "@nuxtjs/axios": "5.12.1", "core-js": "^3.7.0", "nuxt": "^2.14.6", + "nuxt-i18n": "^6.15.4", "sass": "^1.29.0", "sass-loader": "^10.1.0" }, diff --git a/src/assets/css/style.scss b/src/assets/css/style.scss index 0713e35..50bf7f3 100644 --- a/src/assets/css/style.scss +++ b/src/assets/css/style.scss @@ -8,6 +8,6 @@ img, svg { } * { - @apply select-none outline-none ; + @apply select-none outline-none; } diff --git a/src/assets/css/tailwind.css b/src/assets/css/tailwind.css index 38191fb..a906b99 100644 --- a/src/assets/css/tailwind.css +++ b/src/assets/css/tailwind.css @@ -1,4 +1,5 @@ @import url('https://fonts.googleapis.com/css2?family=Raleway&display=swap'); +@import url('https://fonts.googleapis.com/css2?family=Open+Sans&family=Roboto&display=swap'); @import "./style.scss"; @tailwind base; diff --git a/src/components/EnvGroup.vue b/src/components/EnvGroup.vue new file mode 100644 index 0000000..4edc414 --- /dev/null +++ b/src/components/EnvGroup.vue @@ -0,0 +1,15 @@ + + + + + diff --git a/src/components/EnvList.vue b/src/components/EnvList.vue new file mode 100644 index 0000000..2b92416 --- /dev/null +++ b/src/components/EnvList.vue @@ -0,0 +1,15 @@ + + + + + diff --git a/src/components/EnvListItem.vue b/src/components/EnvListItem.vue new file mode 100644 index 0000000..56fd79f --- /dev/null +++ b/src/components/EnvListItem.vue @@ -0,0 +1,30 @@ + + + + + diff --git a/src/components/EnvTitle.vue b/src/components/EnvTitle.vue new file mode 100644 index 0000000..2cc208f --- /dev/null +++ b/src/components/EnvTitle.vue @@ -0,0 +1,22 @@ + + + + + diff --git a/src/components/Experience.vue b/src/components/Experience.vue index 8f82c30..1b237b5 100644 --- a/src/components/Experience.vue +++ b/src/components/Experience.vue @@ -1,11 +1,11 @@