|
1192 | 1192 | } |
1193 | 1193 | ,{ |
1194 | 1194 | "@context": { |
1195 | | - "@version": 1.1, |
| 1195 | + "@version": 1.2, |
1196 | 1196 | "dct": "http://purl.org/dc/terms/", |
1197 | 1197 | "title": { "@id": "dct:title", "@container": "@language" }, |
1198 | 1198 | "description": { "@id": "dct:description", "@container": "@language" }, |
|
1206 | 1206 | "en": "This component is for the minister or institutional head pattern on the institutional landing page.", |
1207 | 1207 | "fr": "Ce composant est destiné au modèle du ministre ou du chef d'institution sur la page d'accueil de l'institution." |
1208 | 1208 | }, |
1209 | | - "modified": "2025-04-07", |
| 1209 | + "modified": "2025-06-16", |
1210 | 1210 | "componentName": "gc-minister", |
1211 | 1211 | "status": "stable", |
1212 | | - "version": "1.1", |
| 1212 | + "version": "1.2", |
1213 | 1213 | "pages": { |
1214 | 1214 | "examples": [ |
1215 | 1215 | { |
|
1241 | 1241 | "title": "Ministre ou chef d'institution - cas particuliers", |
1242 | 1242 | "language": "fr", |
1243 | 1243 | "path": "gc-minister-special-cases-fr.html" |
| 1244 | + }, |
| 1245 | + { |
| 1246 | + "title": "Minister or institutional head (multiple)", |
| 1247 | + "language": "en", |
| 1248 | + "path": "gc-minister-multiple-en.html" |
| 1249 | + }, |
| 1250 | + { |
| 1251 | + "title": "Ministre ou chef d'institution (plusieurs)", |
| 1252 | + "language": "fr", |
| 1253 | + "path": "gc-minister-multiple-fr.html" |
1244 | 1254 | } |
1245 | 1255 | ], |
1246 | 1256 | "docs": [ |
|
1292 | 1302 | "_:implement_minister_v1_to_v1.1" |
1293 | 1303 | ], |
1294 | 1304 | "history": [ |
1295 | | - { |
1296 | | - "en": "April 2025 - Fixed issue where links were not clickable in mobile view.", |
| 1305 | + { "en": "April 2025 - Fixed issue where links were not clickable in mobile view.", |
1297 | 1306 | "fr": "Avril 2025 - Problème résolu où les liens n'étaient pas cliquables dans la vue mobile." |
1298 | 1307 | }, |
1299 | 1308 | { |
1300 | 1309 | "en": "March 2024 - Initial implementation of the variation.", |
1301 | 1310 | "fr": "Mars 2024 - Implémentation initiale de la variante." |
1302 | 1311 | } |
1303 | 1312 | ] |
| 1313 | + }, |
| 1314 | + { |
| 1315 | + "name": { |
| 1316 | + "en": "Minister or institutional head - multiple", |
| 1317 | + "fr": "Ministre ou chef d’institution - plusieurs" |
| 1318 | + }, |
| 1319 | + "status": "stable", |
| 1320 | + "description": { |
| 1321 | + "en": "This component is for the minister or institutional head pattern with multiple pictures on the institutional landing page.", |
| 1322 | + "fr": "Ce composant est destiné au modèle du ministre ou du chef d'institution avec plusieurs images sur la page d'accueil de l'institution." |
| 1323 | + }, |
| 1324 | + "iteration": "_:iteration_minister_3", |
| 1325 | + "example": [ |
| 1326 | + { |
| 1327 | + "en": { "href": "gc-minister-multiple-en.html", "text": "Minister or institutional head (multiple with pictures)" }, |
| 1328 | + "fr": { "href": "gc-minister-multiple-fr.html", "text": "Ministre ou chef d'institution (plusieurs avec images)" } |
| 1329 | + } |
| 1330 | + ], |
| 1331 | + "implementation": [ |
| 1332 | + "_:implement_minister_v1.2" |
| 1333 | + ], |
| 1334 | + "history": [ |
| 1335 | + { |
| 1336 | + "en": "June 2025 - Added variation of the component with multiple pictures to accomodate high number of appointees.", |
| 1337 | + "fr": "Juin 2025 - Ajout d'une variante du composant avec plusieurs images pour tenir compte du nombre élevé de personnes nommées." |
| 1338 | + } |
| 1339 | + ] |
1304 | 1340 | } |
1305 | 1341 | ], |
1306 | 1342 | "implementation": [ |
|
1381 | 1417 | "Ajoutez la classe col-xs-12 aux éléments col-md-5 et col-md-7 (contenant respectivement l'image et la description) afin de résoudre le problème où les liens ne sont pas cliquables dans la vue mobile" |
1382 | 1418 | ] |
1383 | 1419 | } |
| 1420 | + }, |
| 1421 | + { |
| 1422 | + "@id": "_:implement_minister_v1.2", |
| 1423 | + "iteration": "_:iteration_minister_3", |
| 1424 | + "name": { |
| 1425 | + "en": "Multiple", |
| 1426 | + "fr": "Plusieurs" |
| 1427 | + }, |
| 1428 | + "introduction": { |
| 1429 | + "en": "This implementation is meant for developers/publishers adding the multiple pictures component manually.", |
| 1430 | + "fr": "Cette implémentation est destinée aux développeurs/éditeurs qui ajoutent le composant de plusieurs images manuellement." |
| 1431 | + }, |
| 1432 | + "notes": { |
| 1433 | + "en": [ |
| 1434 | + "The recommended image size is 200px by 250px." |
| 1435 | + ], |
| 1436 | + "fr": [ |
| 1437 | + "La taille d'image recommandée est de 200px par 250px." |
| 1438 | + ] |
| 1439 | + }, |
| 1440 | + "sample": { |
| 1441 | + "en": [ |
| 1442 | + { |
| 1443 | + "@type": "source-code", |
| 1444 | + "description": "Code sample with image:", |
| 1445 | + "code": "<section class=\"gc-minister\">\n\t<h2>Secretary(ies) of State</h2>\n\t<div class=\"row wb-eqht-grd\">\n\t\t<div class=\"col-xs-12 col-md-4\">\n\t\t\t<div class=\"row\">\n\t\t\t\t<div class=\"col-xs-12 col-md-7 pull-right\">\n\t\t\t\t\t<h3><a href=\"#\">The Honourable [Minister name]</a></h3>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"col-xs-12 col-md-5\">\n\t\t\t\t\t <img src=\"[image url]\" alt=\"The Honourable [Minister name]\">\n\t\t\t\t</div>\n\t\t\t\t<div class=\"col-xs-12 col-md-7\">\n\t\t\t\t\t<p>[Official title]</p>\n\t\t\t\t\t<ul>\n\t\t\t\t\t\t<li><a href=\"\">Mandate letter</a></li>\n\t\t\t\t\t\t<li><a href=\"\">Briefing book</a></li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</section>" |
| 1446 | + }, |
| 1447 | + { |
| 1448 | + "@type": "source-code", |
| 1449 | + "description": "Code sample without image:", |
| 1450 | + "code": "<section class=\"gc-minister\">\n\t<h2>Secretary(ies) of State</h2>\n\t<div class=\"row wb-eqht-grd\">\n\t\t<div class=\"col-xs-12 col-md-4\">\n\t\t\t<div class=\"row\">\n\t\t\t\t<div class=\"col-xs-12 col-md-7 pull-right\">\n\t\t\t\t\t<h3><a href=\"#\">The Honourable [Minister name]</a></h3>\n\t\t\t\t</div>\n\t\t\t\t<p>[Official title]</p>\n\t\t\t\t\t<ul>\n\t\t\t\t\t\t<li><a href=\"\">Mandate letter</a></li>\n\t\t\t\t\t\t<li><a href=\"\">Briefing book</a></li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</section>" |
| 1451 | + } |
| 1452 | + ], |
| 1453 | + "fr": [ |
| 1454 | + { |
| 1455 | + "@type": "source-code", |
| 1456 | + "description": "Exemple de code avec image :", |
| 1457 | + "code": "<section class=\"gc-minister\">\n\t<h2>Secrétaire(s) d'État</h2>\n\t<div class=\"row wb-eqht-grd\">\n\t\t<div class=\"col-xs-12 col-md-4\">\n\t\t\t<div class=\"row\">\n\t\t\t\t<div class=\"col-xs-12 col-md-7 pull-right\">\n\t\t\t\t\t<h3><a href=\"#\">L'honorable [prénom et nom de famille]</a></h3>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"col-xs-12 col-md-5\">\n\t\t\t\t\t<img src=\"[url de l'image]\" alt=\"L'honorable [prénom et nom de famille]\">\n\t\t\t\t</div>\n\t\t\t\t<div class=\"col-xs-12 col-md-7\">\n\t\t\t\t\t<p>[Titre officiel du ministre]</p>\n\t\t\t\t\t<ul>\n\t\t\t\t\t\t<li><a href=\"\">Lettre de mandat</a></li>\n\t\t\t\t\t\t<li><a href=\"\">Dossier d'information</a></li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</section>" |
| 1458 | + }, |
| 1459 | + { |
| 1460 | + "@type": "source-code", |
| 1461 | + "description": "Exemple de code sans image :", |
| 1462 | + "code": "<section class=\"gc-minister\">\n\t<h2>Secrétaire(s) d'État</h2>\n\t<div class=\"row wb-eqht-grd\">\n\t\t<div class=\"col-xs-12 col-md-4\">\n\t\t\t<h3><a href=\"#\">L'honorable [prénom et nom de famille]</a></h3>\n\t\t\t<p>[Titre officiel]</p>\n\t\t\t<ul>\n\t\t\t\t<li><a href=\"\">Lettre de mandat</a></li>\n\t\t\t\t<li><a href=\"\">Dossier d'information</a></li>\n\t\t\t</ul>\n\t\t</div>\n\t</div>\n</section>" |
| 1463 | + } |
| 1464 | + ] |
| 1465 | + } |
1384 | 1466 | } |
1385 | 1467 | ], |
1386 | 1468 | "iteration": [ |
|
1424 | 1506 | "code": "<section class=\"gc-minister col-xs-12 col-md-5\">\n\t<h2>Minister</h2>\n\t<div class=\"row wb-eqht-grd\">\n\t\t<div class=\"col-xs-12 col-md-6\">\n\t\t\t<h3><a href=\"#\">The Honourable [Minister 3 name]</a></h3>\n\t\t\t<p>[Official title]</p>\n\t\t\t<ul>\n\t\t\t\t<li><a href=\"\">Mandate letter</a></li>\n\t\t\t\t<li><a href=\"\">Briefing book</a></li>\n\t\t\t</ul>\n\t\t</div>\n\t</div>\n</section>" |
1425 | 1507 | } |
1426 | 1508 | ] |
| 1509 | + }, |
| 1510 | + { |
| 1511 | + "@id": "_:iteration_minister_3", |
| 1512 | + "name": "Minister - Iteration 3", |
| 1513 | + "date": "2025-06", |
| 1514 | + "additions": [ |
| 1515 | + "Added variation of the component with multiple pictures to accomodate high number of appointees. " |
| 1516 | + ], |
| 1517 | + "detectableBy": ".gc-minister", |
| 1518 | + "assets": [ |
| 1519 | + { |
| 1520 | + "@type": "source-code", |
| 1521 | + "@language": "en", |
| 1522 | + "description": "Code sample with image", |
| 1523 | + "code": "<section class=\"gc-minister\">\n\t<h2>Secretary(ies) of State</h2>\n\t<div class=\"row wb-eqht-grd\">\n\t\t<div class=\"col-xs-12 col-md-4\">\n\t\t\t<div class=\"row\">\n\t\t\t\t<div class=\"col-xs-12 col-md-7 pull-right\">\n\t\t\t\t\t<h3><a href=\"#\">The Honourable [Minister name]</a></h3>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"col-xs-12 col-md-5\">\n\t\t\t\t\t <img src=\"[image url]\" alt=\"The Honourable [Minister name]\">\n\t\t\t\t</div>\n\t\t\t\t<div class=\"col-xs-12 col-md-7\">\n\t\t\t\t\t<p>[Official title]</p>\n\t\t\t\t\t<ul>\n\t\t\t\t\t\t<li><a href=\"\">Mandate letter</a></li>\n\t\t\t\t\t\t<li><a href=\"\">Briefing book</a></li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</section>" |
| 1524 | + |
| 1525 | + }, |
| 1526 | + { |
| 1527 | + "@type": "source-code", |
| 1528 | + "description": "Code sample without image", |
| 1529 | + "code": "<section class=\"gc-minister\">\n\t<h2>Secretary(ies) of State</h2>\n\t<div class=\"row wb-eqht-grd\">\n\t\t<div class=\"col-xs-12 col-md-4\">\n\t\t\t<div class=\"row\">\n\t\t\t\t<div class=\"col-xs-12 col-md-7 pull-right\">\n\t\t\t\t\t<h3><a href=\"#\">The Honourable [Minister name]</a></h3>\n\t\t\t\t</div>\n\t\t\t\t<p>[Official title]</p>\n\t\t\t\t\t<ul>\n\t\t\t\t\t\t<li><a href=\"\">Mandate letter</a></li>\n\t\t\t\t\t\t<li><a href=\"\">Briefing book</a></li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</section>" |
| 1530 | + } |
| 1531 | + ] |
1427 | 1532 | } |
1428 | 1533 | ], |
1429 | 1534 | "changesets": [ |
|
1450 | 1555 | "Ministers > Briefing book URL (type: STRING)" |
1451 | 1556 | ], |
1452 | 1557 | "mediaConsiderations": "Recommended image size: 200x250px." |
| 1558 | + }, |
| 1559 | + { |
| 1560 | + "@id": "_:cs_minister", |
| 1561 | + "name": "Minister or institutional head", |
| 1562 | + "status": "stable", |
| 1563 | + "baseOnIteration": "_:iteration_minister_3", |
| 1564 | + "detectableBy": ".gc-minister", |
| 1565 | + "layout": "Each minister takes up one third of the container and there are two rows. ", |
| 1566 | + "semantic": "section ((h3 a) + img + p + (ul > li))", |
| 1567 | + "style": "The image has a thin grey border.", |
| 1568 | + "context": "To be used in the institutional landing page template.", |
| 1569 | + "schema": [ |
| 1570 | + "Section title (type: STRING) - for example: Minister, President, Parliamentary secretary, Associate minister, Ombudsman, Management", |
| 1571 | + "Ministers (type: ARRAY)", |
| 1572 | + "Ministers > Name (type: STRING)", |
| 1573 | + "Ministers > Title (type: STRING)", |
| 1574 | + "Ministers > Page URL (type: STRING)", |
| 1575 | + "Ministers > Image URL (type: STRING)", |
| 1576 | + "Ministers > Mandate letter text (type: STRING)", |
| 1577 | + "Ministers > Mandate letter URL (type: STRING)", |
| 1578 | + "Ministers > Briefing book text (type: STRING)", |
| 1579 | + "Ministers > Briefing book URL (type: STRING)" |
| 1580 | + ] |
1453 | 1581 | } |
1454 | 1582 | ] |
1455 | 1583 | } |
|
0 commit comments