Adjust accessibility

This commit is contained in:
Kevin Kandlbinder 2021-09-25 15:55:11 +02:00
parent ffc7c9e291
commit 70f50b78bb
6 changed files with 42 additions and 14 deletions

View file

@ -45,13 +45,18 @@
display: flex; display: flex;
padding: 10px; padding: 10px;
text-align: center; text-align: center;
background: $accentColor; background: $accentColorDarker;
color: white; color: white;
text-decoration: none; text-decoration: none;
box-shadow: 0 0 33px -10px rgba($accentColor, 0.5); box-shadow: 0 0 33px -10px rgba($accentColor, 0.5);
transition: box-shadow 0.25s; transition: box-shadow 0.25s;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
text-shadow: 0 0 10px black;
@media(prefers-color-scheme: light) {
background-color: $accentColor;
}
svg { svg {
margin-left: 10px; margin-left: 10px;

View file

@ -1,5 +1,6 @@
$layoutWidth: 1200px; $layoutWidth: 1200px;
$accentColor: #e52b3e; $accentColor: #e52b3e;
$accentColorDarker: darken($accentColor, 5);
$background: #070707; $background: #070707;
$lightBackground: #fff; $lightBackground: #fff;
$textColor: white; $textColor: white;

View file

@ -7,7 +7,7 @@ export default function LanguageSwitcher() {
const { languages, originalPath } = useI18next(); const { languages, originalPath } = useI18next();
return ( return (
<div className={styles.languageModal} id="languageChooser"> <div className={styles.languageModal} id="languageChooser" role="dialog">
<div className={styles.languageModalInner}> <div className={styles.languageModalInner}>
<h2> <h2>
Languages ( Languages (

View file

@ -68,9 +68,6 @@ section > article,
} }
article { article {
p {
text-align: justify;
}
a { a {
color: $accentColor; color: $accentColor;

View file

@ -113,7 +113,7 @@ const IndexPage = (props) => {
return ( return (
<Layout title="Kevin Kandlbinder" transparentTopbar={true} description={t("siteDescription")} <Layout title="Kevin Kandlbinder" transparentTopbar={true} description={t("siteDescription")}
image={meta.siteUrl + "/owner.jpg"} image={"/owner.jpg"}
speakable={{ speakable={{
"@type": "SpeakableSpecification", "@type": "SpeakableSpecification",
"xPath": [ "xPath": [

View file

@ -241,21 +241,46 @@
color: #e52b3e; color: #e52b3e;
} }
&.skill_language {
color: #6848da;
}
&.skill_platform { &.skill_platform {
color: #e5752b; color: #e5752b;
} }
&.skill_os {
color: #2b66e5;
}
&.skill_program { &.skill_program {
color: #18bb20; color: #18bb20;
} }
&.skill_os {
color: #6d94e9;
}
&.skill_language {
color: #886af5;
}
@media(prefers-color-scheme: light) {
&.skill_os {
color: #2b66e5;
}
&.skill_language {
color: #6848da;
}
&.skill_framework {
color: #db1e31;
}
&.skill_platform {
color: #aa4f12;
}
&.skill_program {
color: #17681b;
}
}
} }
} }
} }