Skip to content

Commit 694a7d2

Browse files
committed
Fix accesbility - thanks to Erwan C.
1 parent 509d044 commit 694a7d2

2 files changed

Lines changed: 46 additions & 12 deletions

File tree

index.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,8 @@
186186

187187
</head>
188188
<body>
189+
<a href="#main-content" class="skip-link">Passer au contenu principal</a>
190+
<main id="main-content">
189191
<section
190192
id="hello"
191193
class="hero-section uk-section uk-padding uk-flex uk-flex-middle"
@@ -459,7 +461,7 @@ <h3 class="client-card-name">Orange</h3>
459461
</div>
460462

461463
<div class="uk-margin-large-top">
462-
<blockquote class="uk-text-lead uk-text-center uk-text-muted">
464+
<blockquote class="uk-text-lead uk-text-center uk-text-muted" lang="en">
463465
<p>
464466
He is a top-notch specialist and full-stack developer who brings
465467
great benefits to the project. He is very responsible and
@@ -783,6 +785,8 @@ <h2 class="uk-heading-small uk-text-center">
783785
</div>
784786
</section>
785787

788+
</main>
789+
786790
<!-- Scroll indicator -->
787791
<nav class="scroll-indicator" aria-label="Navigation sections">
788792
<a href="#hello" class="scroll-dot active" data-section="hello"><span class="scroll-dot-label">Accueil</span></a>

style.css

Lines changed: 41 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,36 @@
22
--main-bg-color: rgb(229, 77, 66);
33
}
44

5+
/* Skip navigation link */
6+
.skip-link {
7+
position: absolute;
8+
top: -100%;
9+
left: 16px;
10+
background: var(--main-bg-color);
11+
color: white;
12+
padding: 8px 16px;
13+
border-radius: 0 0 6px 6px;
14+
font-family: 'Raleway', sans-serif;
15+
font-size: 0.9rem;
16+
font-weight: 600;
17+
text-decoration: none;
18+
z-index: 9999;
19+
transition: top 0.2s;
20+
}
21+
.skip-link:focus {
22+
top: 0;
23+
color: white;
24+
}
25+
26+
/* Visible focus states */
27+
a:focus-visible,
28+
button:focus-visible,
29+
[tabindex]:focus-visible {
30+
outline: 2px solid var(--main-bg-color);
31+
outline-offset: 3px;
32+
border-radius: 3px;
33+
}
34+
535
.hero-section {
636
position: relative;
737
background-image: linear-gradient(
@@ -77,7 +107,7 @@ h3 {
77107
}
78108
p,
79109
a {
80-
font-weight: 100;
110+
font-weight: 400;
81111
font-family: 'Raleway', sans-serif !important;
82112
}
83113

@@ -160,7 +190,7 @@ a:hover {
160190
font-size: 0.8rem;
161191
text-transform: uppercase;
162192
letter-spacing: 2px;
163-
color: #999;
193+
color: #767676;
164194
margin: 0 0 8px 0;
165195
}
166196

@@ -385,7 +415,7 @@ section#contact-me {
385415
font-size: 0.9rem;
386416
line-height: 1.6;
387417
margin: 0 0 20px 0;
388-
font-weight: 100;
418+
font-weight: 400;
389419
}
390420

391421
.expertise-card-list {
@@ -399,7 +429,7 @@ section#contact-me {
399429
color: #444;
400430
padding: 5px 0 5px 18px;
401431
position: relative;
402-
font-weight: 100;
432+
font-weight: 400;
403433
font-family: 'Raleway', sans-serif;
404434
}
405435

@@ -427,8 +457,8 @@ section#contact-me {
427457

428458
.expertise-card-footer span {
429459
font-size: 0.8rem;
430-
color: #999;
431-
font-weight: 100;
460+
color: #767676;
461+
font-weight: 400;
432462
}
433463

434464
/* Client cards */
@@ -462,9 +492,9 @@ section#contact-me {
462492
position: absolute;
463493
bottom: 12px;
464494
left: 12px;
465-
background: rgba(229, 77, 66, 0.9);
495+
background: #c94438;
466496
color: white;
467-
font-size: 0.7rem;
497+
font-size: 0.75rem;
468498
font-weight: 600;
469499
font-family: 'Raleway', sans-serif;
470500
letter-spacing: 0.5px;
@@ -490,7 +520,7 @@ section#contact-me {
490520

491521
.client-card-meta {
492522
font-size: 0.75rem;
493-
color: #888;
523+
color: #767676;
494524
text-transform: uppercase;
495525
letter-spacing: 1.5px;
496526
margin: 0 0 16px 0;
@@ -502,7 +532,7 @@ section#contact-me {
502532
color: #333;
503533
line-height: 1.7;
504534
margin: 0;
505-
font-weight: 100;
535+
font-weight: 400;
506536
}
507537

508538
/* Process timeline */
@@ -570,5 +600,5 @@ section#contact-me {
570600
font-size: 1rem;
571601
line-height: 1.6;
572602
margin: 0;
573-
font-weight: 100;
603+
font-weight: 400;
574604
}

0 commit comments

Comments
 (0)