sr_only instead of aria-label

This commit is contained in:
hugogogo
2026-11-19 10:00:45 +01:00
parent b92c2523f7
commit 140a2e7a62
+21 -6
View File
@@ -1,4 +1,15 @@
<style>
/* visually hidden text, still read by screen readers
(used for the bilingual accessible names of the titles) */
.sr_only {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip: rect(0 0 0 0);
white-space: nowrap;
}
#hero_section {
min-height: 100vh;
grid-template-columns: 1fr auto 1fr;
@@ -77,7 +88,9 @@
<div>
<!-- prettier-ignore -->
<h1 aria-label="developpement" id="development" class="title">
<h1 id="development" class="title">
<span class="sr_only fr">développement</span>
<span class="sr_only en" lang="en">development</span>
<span aria-hidden="true" class="pre">
<span class="fr">
               
@@ -86,7 +99,7 @@
                 
              
</span>
<span class="en">
<span class="en" lang="en">
             
                
                 
@@ -102,7 +115,7 @@
J'aime explorer de nouvelles solutions techniques et comprendre les
systèmes en profondeur :-]
</span>
<span class="en">
<span class="en" lang="en">
Hello, I am a creative, methodical developer with a passion for computer
science, particularly free and open-source software. I enjoy exploring
new technical solutions and gaining a deep understanding of systems :-]
@@ -125,7 +138,9 @@
<div>
<!-- prettier-ignore -->
<h1 aria-label="fabrication" id="making" class="title">
<h1 id="making" class="title">
<span class="sr_only fr">fabrication</span>
<span class="sr_only en" lang="en">making</span>
<span aria-hidden="true" class="pre">
<span class="fr">
           
@@ -134,7 +149,7 @@
                
              
</span>
<span class="en">
<span class="en" lang="en">
        
         
          
@@ -150,7 +165,7 @@
mêmes méthodes que pour le code, mais avec les mains. J'itère jusqu'à ce
qu'ils me correspondent parfaitement et que la solution soit simple :~)
</span>
<span class="en">
<span class="en" lang="en">
I also develop in the physical world: I make and modify everyday
objects, like clothes or bikes, using the same methods as for code, but
with my hands. I iterate until they fit me perfectly and the solution