-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 🚚 Moved about to contact page * ♿️ Added aria-label to contact page * 💄 Added custom hover effect to contact list * ♿️ Improved screen reader accessibility * 🚨 Fixed linting error's
- Loading branch information
Showing
21 changed files
with
155 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import { locale } from '$lib/i18n'; | ||
|
||
export const capitalizeFirstLetter = ([first, ...rest]) => | ||
first.toLocaleUpperCase(locale) + rest.join(''); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"title": "kontakt", | ||
"meta": "Kontaktdaten von Wouter van der Wal", | ||
"description": "Hier sind ein paar verschiedene Möglichkeiten, mich zu kontaktieren." | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,5 @@ | |
"theme": "Thema", | ||
"language": "Sprache", | ||
"home": "Start", | ||
"about": "Über" | ||
"contact": "Kontakt" | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"title": "contact", | ||
"meta": "Contact details of Wouter van der Wal", | ||
"description": "Here are a few different ways of contacting me." | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,5 @@ | |
"theme": "Theme", | ||
"language": "Language", | ||
"home": "Home", | ||
"about": "About" | ||
"contact": "Contact" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"title": "contact", | ||
"meta": "Contactgegevens van Wouter van der Wal", | ||
"description": "Hier zijn een paar verschillende manieren om contact met mij op te nemen." | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,5 @@ | |
"theme": "Thema", | ||
"language": "Taal", | ||
"home": "Home", | ||
"about": "Over" | ||
"contact": "Contact" | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
<script lang="ts"> | ||
import { t } from '$lib/i18n'; | ||
import { capitalizeFirstLetter } from '$lib/common'; | ||
import MdEmail from 'svelte-icons/md/MdEmail.svelte'; | ||
import GoMarkGithub from 'svelte-icons/go/GoMarkGithub.svelte'; | ||
import FaLinkedin from 'svelte-icons/fa/FaLinkedin.svelte'; | ||
import FaTwitter from 'svelte-icons/fa/FaTwitter.svelte'; | ||
import FaReddit from 'svelte-icons/fa/FaReddit.svelte'; | ||
</script> | ||
|
||
<svelte:head> | ||
<title>{$t('common.title')} - {$t('contact.title')}</title> | ||
<meta name="description" content={$t('contact.meta')} /> | ||
</svelte:head> | ||
|
||
<h1>{capitalizeFirstLetter($t('contact.title'))}</h1> | ||
|
||
<p>{$t('contact.description')}</p> | ||
|
||
<ul> | ||
<li class="email"> | ||
<MdEmail title="email" /> | ||
<span><a href="mailto:[email protected]">[email protected]</a></span> | ||
</li> | ||
<li class="github"> | ||
<GoMarkGithub title="Github" /> | ||
<span><a href="https://www.github.com/wjtje">wjtje</a></span> | ||
</li> | ||
<li class="linkedin"> | ||
<FaLinkedin title="LinkedIn" /> | ||
<span><a href="https://www.linkedin.com/in/wjtje/">Wouter van der Wal</a></span> | ||
</li> | ||
<li class="reddit"> | ||
<FaReddit title="Reddit" /><span><a href="https://www.reddit.com/u/wjtje">u/wjtje</a></span> | ||
</li> | ||
<li class="twitter"> | ||
<FaTwitter title="twitter" /> | ||
<span><a href="https://twitter.com/wjtje_wal">@wjtje_wal</a></span> | ||
</li> | ||
</ul> | ||
|
||
<style lang="scss"> | ||
h1 { | ||
@apply text-4xl pb-3; | ||
} | ||
p { | ||
@apply pb-2; | ||
} | ||
ul { | ||
li { | ||
@apply h-8 flex flex-row gap-2 items-center mb-2 transition-[color] duration-200 w-auto; | ||
:global(svg) { | ||
@apply h-8 w-8 p-1 fill-current; | ||
} | ||
span { | ||
@apply h-auto whitespace-nowrap; | ||
} | ||
// Custom hover effects | ||
&.email { | ||
@apply hover:text-red-600 dark:hover:text-red-500; | ||
} | ||
// Define brands with custom styles | ||
$brands: linkedin, reddit, twitter; | ||
@each $brand in $brands { | ||
&.#{$brand} { | ||
@apply hover:text-#{$brand}-brand; | ||
} | ||
} | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters