Skip to content

Commit 4cc562a

Browse files
committed
Thematic AI answers: adding thematic
1 parent c98381d commit 4cc562a

File tree

7 files changed

+94
-1
lines changed

7 files changed

+94
-1
lines changed

_data/méli-mélo.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
"th-winterlude",
3030
"th-zev",
3131
"th-empathy",
32-
"th-choose-canada"
32+
"th-choose-canada",
33+
"th-ai-answers"
3334
]
3435
}
3536
],
@@ -104,6 +105,10 @@
104105
"nom": "2024-10-datatable-utilities",
105106
"mainpage": "index-en.html"
106107
},
108+
{
109+
"nom": "th-ai-answers",
110+
"mainpage": "index-en.html"
111+
},
107112
{
108113
"nom": "th-choose-canada",
109114
"mainpage": "index.html"
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/**
2+
* @title WET-BOEW GC AI answers thematic
3+
* @overview AI answers thematic
4+
* @license wet-boew.github.io/wet-boew/License-en.html / wet-boew.github.io/wet-boew/Licence-fr.html
5+
* @author @garneauma
6+
*/
7+
8+
(function() {
9+
let topBannerHTMLFR = `<aside class=\"aia-banner\">
10+
<h2 class=\"wb-inv\">Outil d'assistance</h2>
11+
<div class=\"container\">
12+
<div class=\"d-flex align-items-center\">
13+
<img src=\"https://canada.ca/content/dam/canada/ai-stars.png\"><p class=\"m-0 py-2 pl-2\"><strong>Besoin d'aide?</strong> <a href=\"https://reponses-ia.alpha.canada.ca\" class=\"text-white\">Essayez une version bêta de Réponses IA</a></p>
14+
</div>
15+
</div>
16+
</aside>`,
17+
topBannerHTMLEN = `<aside class=\"aia-banner\">
18+
<h2 class=\"wb-inv\">Assistance tool</h2>
19+
<div class=\"container\">
20+
<div class=\"d-flex align-items-center\">
21+
<img src=\"https://canada.ca/content/dam/canada/ai-stars.png\"><p class=\"m-0 py-2 pl-2\"><strong>Need help?</strong> <a href=\"https://ai-answers.alpha.canada.ca\" class=\"text-white\">Try a beta test of AI Answers</a></p>
22+
</div>
23+
</div>
24+
</aside>`;
25+
26+
if ( document.documentElement.lang == "fr" ) {
27+
document.querySelector("header")
28+
.insertAdjacentHTML("beforebegin", topBannerHTMLFR);
29+
} else {
30+
document.querySelector("header")
31+
.insertAdjacentHTML("beforebegin", topBannerHTMLEN);
32+
}
33+
})();
3.46 KB
Loading
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
title: AI answers thematic
3+
dateModified: 2025-11-24
4+
description: AI answers thematic documentation and working example
5+
lang: en
6+
altLangPage: index-fr.html
7+
css:
8+
- style.css
9+
script:
10+
- ai-answers.js
11+
---
12+
13+
<p>This page serves as an example of for AI answers beta testing top banner.</p>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
title: Thématique Réponses IA
3+
dateModified: 2025-11-24
4+
description: Documentation et exemple pratique de Réponses IA
5+
lang: fr
6+
altLangPage: index-en.html
7+
css:
8+
- style.css
9+
script:
10+
- ai-answers.js
11+
---
12+
13+
<p>Cette page sert d'exemple pour la bannière supérieure du test bêta de Réponses IA.</p>

méli-mélo/th-ai-answers/meta.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
feature: thématique
3+
lang: en
4+
title: AI Answers theme
5+
description: Top banner for AI answers beta testing
6+
componentName: th-empathy
7+
expiry: November 30, 2026
8+
mainPage: index-en.html
9+
cssClass:
10+
- aia-banner
11+
jsFunctions:
12+
- anonymous function
13+
pages:
14+
examples:
15+
- title: AI answers thematic
16+
language: en
17+
path: index0en.html
18+
- title: Thématique réponses IA
19+
language: fr
20+
path: index-fr.html
21+
sponsor: Marc-André Garneau on behalf of Principal Publisher - ESDC
22+
23+
output: false
24+
---
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/* AI answers components styles */
2+
.aia-banner {
3+
background: #26374a;
4+
color: #fff;
5+
}

0 commit comments

Comments
 (0)