-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Major - Merge pull request #2225 from gc-proto/feature/gc-ministers
Feature/gc ministers
- Loading branch information
Showing
18 changed files
with
816 additions
and
0 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
46 changes: 46 additions & 0 deletions
46
_includes/components/gc-minister/gc-minister-special-cases.html
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,46 @@ | ||
<section class="gc-minister"> | ||
<h2>{% if page.language == "en" %}Ministers{% else %}Ministres{% endif %}</h2> | ||
<div class="row wb-eqht-grd"> | ||
<div class="col-xs-12 col-md-6"> | ||
<div class="row"> | ||
<div class="col-xs-12 col-md-7 pull-right"> | ||
<h3><a href="#">{% if page.language == "en" %}The Honourable [Minister name]{% else %}L'honorable [prénom et nom de famille]{% endif %}</a></h3> | ||
</div> | ||
<div class="col-md-5"> | ||
<img src="https://via.placeholder.com/200x250/000000/FFFFFF.png" alt="{% if page.language == 'en' %}The Honourable [Minister name]{% else %}L'honorable [prénom et nom de famille]{% endif %}"> | ||
</div> | ||
<div class="col-md-7"> | ||
<p>{% if page.language == "en" %}[Official title]{% else %}[Titre officiel du ministre]{% endif %}</p> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="col-xs-12 col-md-6"> | ||
<div class="row"> | ||
<div class="col-xs-12 col-md-7 pull-right"> | ||
<h3><a href="#">The Honourable [Minister 2 name with a very long name]</a></h3> | ||
</div> | ||
<div class="col-md-5"> | ||
<img src="https://via.placeholder.com/200x250/000000/FFFFFF.png" alt="The Honourable [Minister 2 name with a very long name]"> | ||
</div> | ||
<div class="col-md-7"> | ||
<p>{% if page.language == "en" %}[Official title]{% else %}[Titre officiel du ministre]{% endif %}</p> | ||
<ul> | ||
<li><a href="">{% if page.language == "en" %}Mandate letter{% else %}Lettre de mandat{% endif %}</a></li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="col-xs-12 col-md-6"> | ||
<h3><a href="#">The Honourable [Minister 3 name]</a></h3> | ||
<p>{% if page.language == "en" %}[Official title]{% else %}[Titre officiel du ministre]{% endif %}</p> | ||
<ul> | ||
<li><a href="">{% if page.language == "en" %}Mandate letter{% else %}Lettre de mandat{% endif %}</a></li> | ||
<li><a href="">{% if page.language == "en" %}Briefing book{% else %}Dossier d'information{% endif %}</a></li> | ||
</ul> | ||
</div> | ||
<div class="col-xs-12 col-md-6"> | ||
<h3><a href="#">The Honourable [Minister 4 name]</a></h3> | ||
<p>{% if page.language == "en" %}[Official title]{% else %}[Titre officiel du ministre]{% endif %}</p> | ||
</div> | ||
</div> | ||
</section> |
39 changes: 39 additions & 0 deletions
39
_includes/components/gc-minister/gc-minister-two-ministers.html
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,39 @@ | ||
<section class="gc-minister"> | ||
<h2>{% if page.language == "en" %}Ministers{% else %}Ministres{% endif %}</h2> | ||
<div class="row wb-eqht-grd"> | ||
<div class="col-xs-12 col-md-6"> | ||
<div class="row"> | ||
<div class="col-xs-12 col-md-7 pull-right"> | ||
<h3><a href="#">{% if page.language == "en" %}The Honourable [Minister name]{% else %}L'honorable [prénom et nom de famille]{% endif %}</a></h3> | ||
</div> | ||
<div class="col-md-5"> | ||
<img src="https://via.placeholder.com/200x250/000000/FFFFFF.png" alt="{% if page.language == 'en' %}The Honourable [Minister name]{% else %}L'honorable [prénom et nom de famille]{% endif %}"> | ||
</div> | ||
<div class="col-md-7"> | ||
<p>{% if page.language == "en" %}[Official title]{% else %}[Titre officiel du ministre]{% endif %}</p> | ||
<ul> | ||
<li><a href="">{% if page.language == "en" %}Mandate letter{% else %}Lettre de mandat{% endif %}</a></li> | ||
<li><a href="">{% if page.language == "en" %}Briefing book{% else %}Dossier d'information{% endif %}</a></li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="col-xs-12 col-md-6"> | ||
<div class="row"> | ||
<div class="col-xs-12 col-md-7 pull-right"> | ||
<h3><a href="#">{% if page.language == "en" %}The Honourable [Minister name]{% else %}L'honorable [prénom et nom de famille]{% endif %}</a></h3> | ||
</div> | ||
<div class="col-md-5"> | ||
<img src="https://via.placeholder.com/200x250/000000/FFFFFF.png" alt="{% if page.language == 'en' %}The Honourable [Minister name]{% else %}L'honorable [prénom et nom de famille]{% endif %}"> | ||
</div> | ||
<div class="col-md-7"> | ||
<p>{% if page.language == "en" %}[Official title]{% else %}[Titre officiel du ministre]{% endif %}</p> | ||
<ul> | ||
<li><a href="">{% if page.language == "en" %}Mandate letter{% else %}Lettre de mandat{% endif %}</a></li> | ||
<li><a href="">{% if page.language == "en" %}Briefing book{% else %}Dossier d'information{% endif %}</a></li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</section> |
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,22 @@ | ||
<section class="gc-minister"> | ||
<h2>{% if page.language == "en" %}Minister{% else %}Ministre{% endif %}</h2> | ||
<div class="row wb-eqht-grd"> | ||
<div class="col-xs-12 col-md-6"> | ||
<div class="row"> | ||
<div class="col-xs-12 col-md-7 pull-right"> | ||
<h3><a href="#">{% if page.language == "en" %}The Honourable [Minister name]{% else %}L'honorable [prénom et nom de famille]{% endif %}</a></h3> | ||
</div> | ||
<div class="col-md-5"> | ||
<img src="https://via.placeholder.com/200x250/000000/FFFFFF.png" alt="{% if page.language == 'en' %}The Honourable [Minister name]{% else %}L'honorable [prénom et nom de famille]{% endif %}"> | ||
</div> | ||
<div class="col-md-7"> | ||
<p>{% if page.language == "en" %}[Official title]{% else %}[Titre officiel du ministre]{% endif %}</p> | ||
<ul> | ||
<li><a href="">{% if page.language == "en" %}Mandate letter{% else %}Lettre de mandat{% endif %}</a></li> | ||
<li><a href="">{% if page.language == "en" %}Briefing book{% else %}Dossier d'information{% endif %}</a></li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</section> |
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,23 @@ | ||
/* | ||
GC Ministers | ||
*/ | ||
|
||
.gc-minister { | ||
margin-bottom: 15px; | ||
|
||
h3 { | ||
font-size: 20px; | ||
margin-bottom: 15px; | ||
margin-top: 15px; | ||
} | ||
|
||
p, ul { | ||
font-size: 17px; | ||
} | ||
|
||
img { | ||
border: 1px #ddd solid; | ||
margin-bottom: 15px; | ||
max-width: 100%; | ||
} | ||
} |
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,9 @@ | ||
--- | ||
title: Minister or institutional head | ||
description: Documentation for the "Minister or institutional head" design pattern | ||
language: en | ||
altLangPage: gc-minister-doc-fr.html | ||
dateModified: 2024-03-11 | ||
layout: documentation | ||
index_json: index.json-ld | ||
--- |
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,9 @@ | ||
--- | ||
title: Ministre ou chef d’institution | ||
description: Documentation pour la configuration de conception « Ministre ou chef d’institution » | ||
language: fr | ||
altLangPage: gc-minister-doc-en.html | ||
dateModified: 2024-03-11 | ||
layout: documentation | ||
index_json: index.json-ld | ||
--- |
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,21 @@ | ||
--- | ||
{ | ||
"title": "Minister or institutional head", | ||
"description": "Working example for the 'Minister or institutional head' component", | ||
"language": "en", | ||
"altLangPage": "gc-minister-fr.html", | ||
"breadcrumbs": [ | ||
{ "title": "Minister or institutional head - Documentation", "link": "components/gc-minister/gc-minister-doc-en.html" } | ||
], | ||
"dateModified": "2024-03-11", | ||
} | ||
--- | ||
<div class="wb-prettify all-pre hide"></div> | ||
|
||
<p>Below is working example for the "Minster or institutional head" component when there is only one minister.</p> | ||
|
||
{% include_relative samples/gc-minister.html %} | ||
<details> | ||
<summary>Code sample</summary> | ||
{% highlight html %}{% include_relative samples/gc-minister.html %}{% endhighlight %} | ||
</details> |
Oops, something went wrong.