generated from fluid-project/trivet
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add language selection landing page, redirect accordingly
- Loading branch information
1 parent
3aa8155
commit 0ca43ae
Showing
17 changed files
with
159 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
title: Page Not Found / Page non trouvée | ||
eleventyExcludeFromCollections: true | ||
layout: layouts/base | ||
permalink: /404.html | ||
--- | ||
<div class="flow"> | ||
<div lang="en-CA"> | ||
|
||
The page you were looking for does not exist. Go back to the [home page?](/en/) | ||
|
||
</div> | ||
<div lang="fr-CA"> | ||
|
||
La page que vous recherchez n'existe pas. Retournez à la [page d'accueil?](/fr/) | ||
|
||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{% extends "layouts/base.njk" %} | ||
|
||
{% block pageHeader %} | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<div class="content"> | ||
<div class="flow"> | ||
<div lang="en-CA"> | ||
<a href=="/en/" hreflang="en-CA">English</a> | ||
</div> | ||
<div lang="fr-CA"> | ||
<a href=="/fr/" hreflang="fr-CA">Français</a> | ||
</div> | ||
</div> | ||
</div> | ||
<script> | ||
const savedLanguage = localStorage.getItem("lang") ?? null; | ||
if (savedLanguage) { | ||
shortLanguage = savedLanguage.split('-')[0]; | ||
window.location.replace(shortLanguage); | ||
} | ||
document.addEventListener('click', (event) => { | ||
event.preventDefault(); | ||
const selectedLanguage = event.target.getAttribute('hreflang'); | ||
localStorage.setItem("lang", selectedLanguage); | ||
shortLanguage = selectedLanguage.split('-')[0]; | ||
window.location.replace(shortLanguage); | ||
}); | ||
</script> | ||
{% endblock %} | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
<header role="banner"> | ||
<div class="container"> | ||
{% include "partials/components/brand.njk" %} | ||
{% if not eleventyExcludeFromCollections and lang %} | ||
{% include "partials/components/navigation.njk" %} | ||
{% endif %} | ||
</div> | ||
</header> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
--- | ||
title: Page Not Found | ||
eleventyExcludeFromCollections: true | ||
permalink: /404.html | ||
permalink: /en/404.html | ||
layout: layouts/base | ||
--- | ||
The page you were looking for does not exist. Go back to the [home page?](/) | ||
The page you were looking for does not exist. Go back to the [home page?](/en/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
title: Conference Submissions | ||
excerpt: Welcome to Accessible Canada — Accessible World, a conference that aims to advance accessibility and inclusive design in various domains. | ||
permalink: / | ||
permalink: /en/ | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
--- | ||
title: Qui et qu'est-ce qui nous manque ? | ||
title: Qui et quoi nous manque-t-il ? | ||
uuid: b70c8f53-7613-434c-9b2e-f76da3cc57f3 | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
title: Accessible Canada, Accessible World / Un Canada accessible, Un monde accessible | ||
permalink: /index.html | ||
layout: layouts/index | ||
bodyClass: index | ||
--- | ||
|
||
<div class="flow"> | ||
<div lang="en-CA"> | ||
|
||
[English](/en/) | ||
|
||
</div> | ||
<div lang="fr-CA"> | ||
|
||
[Français](/fr/) | ||
|
||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters