chore: add accessibility enhancements

This commit is contained in:
Marios Antonoudiou
2023-12-04 17:12:00 +02:00
parent 419802607d
commit 29b70afd48
3 changed files with 9 additions and 0 deletions

View File

@@ -10,6 +10,9 @@ useSeoMeta({
});
useHead({
htmlAttrs: {
lang: "en",
},
bodyAttrs: {
class: "dark:bg-slate-900",
},

View File

@@ -5,6 +5,9 @@ interface Props {
}
const props = defineProps<Props>();
const titleRef = ref();
const altContent = computed(() => titleRef.value?.$el.textContent);
</script>
<template>
@@ -13,6 +16,7 @@ const props = defineProps<Props>();
<NuxtImg
placeholder
:src="props.logo"
:alt="altContent"
class="block rounded min-w-[50px]"
format="webp"
height="50"
@@ -25,6 +29,7 @@ const props = defineProps<Props>();
:href="props.href"
target="_blank"
class="md:text-xl text-lg font-semibold hover:underline hover:underline-offset-4"
ref="titleRef"
>
<slot name="title">Company</slot>
</NuxtLink>

View File

@@ -2,6 +2,7 @@
<UContainer class="flex flex-col md:gap-12 gap-5">
<nuxt-img
placeholder
alt="Marios Antonoudiou"
src="mariosant.webp"
width="64"
height="64"