1 Commits
Author SHA1 Message Date
hugogogo 140a2e7a62 sr_only instead of aria-label 2026-11-19 10:00:45 +01:00
+21 -6
View File
@@ -1,4 +1,15 @@
<style> <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 { #hero_section {
min-height: 100vh; min-height: 100vh;
grid-template-columns: 1fr auto 1fr; grid-template-columns: 1fr auto 1fr;
@@ -77,7 +88,9 @@
<div> <div>
<!-- prettier-ignore --> <!-- 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 aria-hidden="true" class="pre">
<span class="fr"> <span class="fr">
                               
@@ -86,7 +99,7 @@
                                   
                             
</span> </span>
<span class="en"> <span class="en" lang="en">
                           
                                 
                                   
@@ -102,7 +115,7 @@
J'aime explorer de nouvelles solutions techniques et comprendre les J'aime explorer de nouvelles solutions techniques et comprendre les
systèmes en profondeur :-] systèmes en profondeur :-]
</span> </span>
<span class="en"> <span class="en" lang="en">
Hello, I am a creative, methodical developer with a passion for computer Hello, I am a creative, methodical developer with a passion for computer
science, particularly free and open-source software. I enjoy exploring science, particularly free and open-source software. I enjoy exploring
new technical solutions and gaining a deep understanding of systems :-] new technical solutions and gaining a deep understanding of systems :-]
@@ -125,7 +138,9 @@
<div> <div>
<!-- prettier-ignore --> <!-- 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 aria-hidden="true" class="pre">
<span class="fr"> <span class="fr">
                       
@@ -134,7 +149,7 @@
                                 
                             
</span> </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 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 :~) qu'ils me correspondent parfaitement et que la solution soit simple :~)
</span> </span>
<span class="en"> <span class="en" lang="en">
I also develop in the physical world: I make and modify everyday 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 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 with my hands. I iterate until they fit me perfectly and the solution