diff --git a/.vscode/settings.json b/.vscode/settings.json index 61087f6..429353b 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -2,5 +2,8 @@ "files.autoSave": "onFocusChange", "editor.formatOnPaste": true, "editor.formatOnSave": true, - "editor.defaultFormatter": "esbenp.prettier-vscode" + "editor.defaultFormatter": "esbenp.prettier-vscode", + "[html]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + } } diff --git a/src/lib/common.ts b/src/lib/common.ts new file mode 100644 index 0000000..7b00c71 --- /dev/null +++ b/src/lib/common.ts @@ -0,0 +1,4 @@ +import { locale } from '$lib/i18n'; + +export const capitalizeFirstLetter = ([first, ...rest]) => + first.toLocaleUpperCase(locale) + rest.join(''); diff --git a/src/lib/components/Profile.svelte b/src/lib/components/Profile.svelte index 3dd5c98..f05ed6c 100644 --- a/src/lib/components/Profile.svelte +++ b/src/lib/components/Profile.svelte @@ -8,9 +8,9 @@ alt="headshot" /> -

{$t('profile.name')}

+

{$t('home.name')}

-

{$t('profile.about')}

+

{$t('home.about')}

diff --git a/src/routes/[lang]/contact.svelte b/src/routes/[lang]/contact.svelte new file mode 100644 index 0000000..fae81dd --- /dev/null +++ b/src/routes/[lang]/contact.svelte @@ -0,0 +1,79 @@ + + + + {$t('common.title')} - {$t('contact.title')} + + + +

{capitalizeFirstLetter($t('contact.title'))}

+ +

{$t('contact.description')}

+ + + + diff --git a/src/routes/__layout.svelte b/src/routes/__layout.svelte index 38476e2..ce06027 100644 --- a/src/routes/__layout.svelte +++ b/src/routes/__layout.svelte @@ -30,8 +30,8 @@ name: $t('navigation.home') }, { - path: `about`, - name: $t('navigation.about') + path: `contact`, + name: $t('navigation.contact') } ]; diff --git a/static/sitemap.xml b/static/sitemap.xml index 3738ba1..f8da838 100644 --- a/static/sitemap.xml +++ b/static/sitemap.xml @@ -7,10 +7,10 @@ - https://wjtje.ga/en/about + https://wjtje.ga/en/contact 0.8 - - - + + + \ No newline at end of file diff --git a/tailwind.config.cjs b/tailwind.config.cjs index dc41f53..1c21fd0 100644 --- a/tailwind.config.cjs +++ b/tailwind.config.cjs @@ -2,7 +2,13 @@ module.exports = { content: ['./src/**/*.{html,svelte,ts,js}'], darkMode: 'class', theme: { - extend: {} + extend: { + colors: { + 'reddit-brand': '#ff4500', + 'twitter-brand': '#009EF7', + 'linkedin-brand': '#0A66C2' + } + } }, plugins: [require('tailwindcss-global-dark')] };