1
0
Fork 0
forked from Deuxfleurs/site

Compare commits

..

23 commits

Author SHA1 Message Date
Tixie 091f4ddc4a
Merge branch preprod into main
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2024-06-10 11:45:21 +02:00
Tixie 9ff1b20248 Merge pull request 'Ralentir les animations ASCII si on détecte que l'utilisateur'trice a demandé au système de minimiser la quantité d'animation ou de mouvement.' (#44) from feat/a11y into preprod
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Reviewed-on: Deuxfleurs/site#44
2024-06-10 09:43:37 +00:00
Tixie 351931fdeb
Ralentir les animations ASCII si la media feature prefers-reduced-motion is activée
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pull_request_closed/woodpecker Pipeline was successful
2024-06-10 11:30:14 +02:00
Tixie 31aa58a863 Merge pull request 'Merge accessibility and design improvements' (#43)
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Reviewed-on: Deuxfleurs/site#43
2024-06-09 16:26:29 +00:00
Tixie 4978b26ef6 fix yaml de la task pour désindexer le site si c'est un déploiement en preprod
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline was successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pull_request_closed/woodpecker Pipeline failed
2024-06-09 16:21:27 +00:00
Tixie b75294cc96 highlight contact infos 2024-06-09 16:21:27 +00:00
Tixie 821f38c112 Améliorer l'affordance des liens vers les services 2024-06-09 16:21:27 +00:00
Tixie a007d29a9f CI: Ajout d'une task pour désindexer le site si c'est un déploiement en preprod
Pour éviter que les moteurs de recherche flag du duplicate content parce qu'on a plusieurs sites identiques en ligne
2024-06-09 16:21:27 +00:00
Tixie fd276e5dc2
Merge pull request 'Accessibilité web: Améliorations sémantique' (#42) from preprod to main
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2024-06-09 17:48:12 +02:00
Tixie 3a404c162c
Merge branch 'a11y/semantic' into preprod
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2024-06-09 17:41:22 +02:00
Tixie b4e50788a6
fix(layout.css): Remove old underline 2024-06-09 17:40:09 +02:00
Tixie a2edf9bde5
CI(tidy-html): ignore empty tag, generating warning
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2024-06-09 17:33:42 +02:00
Tixie 66bb48aaa7
Merge branch 'a11y/semantic' into preprod
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2024-06-09 16:56:21 +02:00
Tixie 352c25ed3e
Fix HTML closing tag 2024-06-09 16:52:44 +02:00
Tixie c5dd5467a4 Merge pull request 'Rendre le header selectionnable' (#40)
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Reviewed-on: Deuxfleurs/site#40
Reviewed-by: aeddis <aeddis@noreply.localhost>
2024-06-08 19:10:49 +00:00
Tixie 6ae76f5b93 Merge pull request 'Acessibilité web: Améliorations sémantique' (#42)
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Reviewed-on: Deuxfleurs/site#42
Reviewed-by: aeddis <aeddis@noreply.localhost>
2024-06-08 19:08:56 +00:00
Adrian Rosin 469d165852 Merge remote-tracking branch 'origin/feat/UnderlignedTitle'
Some checks failed
ci/woodpecker/pull_request_closed/woodpecker Pipeline failed
# Conflicts:
#	static/css/home.css
#	static/css/layout.css
#	static/index.html
2024-06-07 18:11:09 +00:00
Adrian Rosin 99b6eaae61 added role and aria-label to the div ordinateur #28 2024-06-07 18:11:09 +00:00
Adrian Rosin 5f67856c95 added rapport.md 2024-06-07 18:11:09 +00:00
Adrian Rosin 547235a400 fix: removed li role=none & aria-orintation=vertical #29
# Conflicts:
#	static/index.html
2024-06-07 18:11:09 +00:00
Tixie 9a230c545d
CI: Ajout d'une task pour désindexer le site si c'est un déploiement en preprod
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Pour éviter que les moteurs de recherche flag du duplicate content parce qu'on a plusieurs sites identiques en ligne
2024-06-07 19:13:39 +02:00
Adrian Rosin 8619254c73
feat: join us link
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
# Conflicts:
#	static/index.html
2024-06-07 17:38:48 +02:00
Tixie 68e1e57468
Rendre le header selectionnable
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
ci/woodpecker/pull_request_closed/woodpecker Pipeline was successful
2024-06-07 16:42:46 +02:00
2 changed files with 57 additions and 54 deletions

View file

@ -66,17 +66,17 @@
<li>
<a href="https://guide.deuxfleurs.fr/" role="menuitem" aria-label="wiki" class="icone">
<pre aria-hidden="true">
(((((((()
|-------|
| GUIDE |
|-------|
|_______| </pre>
((((((()
|------|
| WIKI |
|------|
|______| </pre>
<pre class="img_top" aria-hidden="true">
(((((((()
/------/|
/------/ |
/______/ |
|_______| </pre>
((((((()
/-----/|
/-----/ |
/_____/ |
|______| </pre>
</a>
</li>
<li>

View file

@ -1,44 +1,47 @@
// dictionary to keep track of frame count for each animation
let frameCounts = {};
function animate(id, delay) {
// get the container and frames for the amination
const container = document.getElementById(id);
const frames = container.children;
// set up the frame counter
frameCounts[id] = 0;
// hide all frames except for the first
frames[0].style.display = "flex";
for (let i = 1; i < frames.length; i++) {
frames[i].style.display = "none";
}
// start the animation
const interval = setInterval(updateAnimation, delay, id, frames, frames.length);
}
function updateAnimation(id, frames, totalFrames) {
// increment the frame counter for the given id
frameCounts[id] = (frameCounts[id] + 1) % totalFrames;
// show the next frame
frames[frameCounts[id]].style.display = "flex";
// hide the previous frame
if (frameCounts[id] == 0) {
frames[totalFrames - 1].style.display = "none";
} else {
frames[frameCounts[id] - 1].style.display = "none";
}
}
animate("illustration-accueil", 500);
animate("rennes", 1000);
animate("orsay", 2000);
animate("parterre", 1500);
// dictionary to keep track of frame count for each animation
let frameCounts = {};
function animate(id, delay) {
// get the container and frames for the amination
const container = document.getElementById(id);
const frames = container.children;
// set up the frame counter
frameCounts[id] = 0;
// hide all frames except for the first
frames[0].style.display = "flex";
for (let i = 1; i < frames.length; i++) {
frames[i].style.display = "none";
}
// start the animation
const interval = setInterval(updateAnimation, delay, id, frames, frames.length);
}
function updateAnimation(id, frames, totalFrames) {
// increment the frame counter for the given id
frameCounts[id] = (frameCounts[id] + 1) % totalFrames;
// show the next frame
frames[frameCounts[id]].style.display = "flex";
// hide the previous frame
if (frameCounts[id] == 0) {
frames[totalFrames - 1].style.display = "none";
} else {
frames[frameCounts[id] - 1].style.display = "none";
}
}
// If the user have a setting on their device to minimize the amount of non-essential motion
const preferReduceMotion = window.matchMedia("(prefers-reduced-motion)").matches;
animate("illustration-accueil", preferReduceMotion ? 1500 : 500); // Reduce framerate if use preference is to reduce motion
animate("rennes", preferReduceMotion ? 3000 : 1000); // Reduce framerate if use preference is to reduce motion
animate("orsay", preferReduceMotion ? 4000 : 2000); // Reduce framerate if use preference is to reduce motion
animate("parterre", 1500);