-
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.
Application: adding application template and examples
- Loading branch information
Showing
20 changed files
with
638 additions
and
38 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
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 @@ | ||
[] |
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -92,4 +92,4 @@ | |
] | ||
} | ||
} | ||
] | ||
] |
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
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,51 @@ | ||
/* | ||
* | ||
* Application template | ||
* | ||
*/ | ||
|
||
.info-banner { | ||
background-color: $alert-info-bg; | ||
color: $text-color; | ||
font-size: 20px; | ||
line-height: 1.65em; | ||
padding: 15px 0; | ||
|
||
h2 { | ||
float: left; | ||
font-size: 1em; | ||
line-height: 1.65em; | ||
margin: 0 .25em 0 0; | ||
|
||
&:after { | ||
content: ":"; | ||
margin-left: .125em; | ||
} | ||
} | ||
|
||
.info-banner-actions { | ||
align-items: center; | ||
display: flex; | ||
justify-content: space-between; | ||
} | ||
} | ||
|
||
.application-bar { | ||
background-color: #38414d; | ||
color: #fff; | ||
margin-top: 15px; | ||
|
||
h2 { | ||
border: none; | ||
margin: 10px 0 8px; | ||
|
||
a { | ||
color: #fff; | ||
text-decoration: none; | ||
|
||
&:hover { | ||
text-decoration: underline; | ||
} | ||
} | ||
} | ||
} |
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,11 @@ | ||
/* | ||
* | ||
* Application template | ||
* | ||
*/ | ||
|
||
.application-bar { | ||
h2 { | ||
font-size: 34px; | ||
} | ||
} |
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,12 @@ | ||
/* | ||
* | ||
* Application template | ||
* | ||
*/ | ||
|
||
.application-bar { | ||
h2 { | ||
font-size: 18px; | ||
margin: 12px 0 9px; | ||
} | ||
} |
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,37 @@ | ||
--- | ||
{ | ||
"title": "Application template documentation", | ||
"language": "en", | ||
"altLangPage": "application-docs-fr.html", | ||
"breadcrumbs": [ | ||
{ "title": "GCWeb home", "link": "https://wet-boew.github.io/themes-dist/GCWeb/index-en.html" } | ||
], | ||
"dateModified": "2023-11-02" | ||
} | ||
--- | ||
|
||
<dl class="horizontal"> | ||
<dt>Status</dt> | ||
<dd>Stable</dd> | ||
|
||
<dt>Version</dt> | ||
<dd>1.0</dd> | ||
|
||
<dt>Type</dt> | ||
<dd>Template</dd> | ||
|
||
<dt>Last review</dt> | ||
<dd>2023-11-02</dd> | ||
|
||
<dt>Specification</dt> | ||
<dd>There is no specification yet</dd> | ||
</dl> | ||
|
||
<h2>Working examples</h2> | ||
<ul> | ||
<li><a href="default-application-en.html">Application page</a></li> | ||
<li><a href="application-with-banner-en.html">Page d'application avec bannière informative</a></li> | ||
</ul> | ||
|
||
<h2>Accessiblity</h2> | ||
<p>No accessiblity conformance report yet.</p> |
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,37 @@ | ||
--- | ||
{ | ||
"title": "Documentation du gabarit de page d'application", | ||
"language": "fr", | ||
"altLangPage": "application-docs-en.html", | ||
"breadcrumbs": [ | ||
{ "title": "Accueil GCWeb", "link": "https://wet-boew.github.io/themes-dist/GCWeb/index-fr.html" } | ||
], | ||
"dateModified": "2023-11-02" | ||
} | ||
--- | ||
|
||
<dl class="horizontal"> | ||
<dt>Statut</dt> | ||
<dd>Stable</dd> | ||
|
||
<dt>Version</dt> | ||
<dd>1.0</dd> | ||
|
||
<dt>Type</dt> | ||
<dd>Gabarit</dd> | ||
|
||
<dt>Dernière révision</dt> | ||
<dd>2023-11-02</dd> | ||
|
||
<dt>Spécification</dt> | ||
<dd>Aucune spécification à ce jour.</dd> | ||
</dl> | ||
|
||
<h2>Exemples pratiques</h2> | ||
<ul> | ||
<li><a href="default-application-fr.html">Page d'application</a></li> | ||
<li><a href="application-with-banner-fr.html">Application page with informational banner</a></li> | ||
</ul> | ||
|
||
<h2>Accessiblité</h2> | ||
<p>Aucun rapport sur la conformance en accessibilité à ce jour.</p> |
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,67 @@ | ||
--- | ||
{ | ||
"layout": "application", | ||
"title": "Application page with informational banner", | ||
"language": "en", | ||
"altLangPage": "application-with-banner-fr.html", | ||
"dateModified": "2023-10-13", | ||
"infoBanner": { | ||
"title": "Beta version", | ||
"message": "We've made some changes to improve your experience with My Service Canada Account.", | ||
"link": { | ||
"text": "Learn more about the beta version", | ||
"href": "https://www.canada.ca/en", | ||
"external": true | ||
}, | ||
"button": { | ||
"text": "Try beta version", | ||
"href": "https://www.canada.ca/en" | ||
} | ||
} | ||
} | ||
--- | ||
|
||
{% include alert-community-stable.html %} | ||
|
||
<h2>Configuration options (GCWeb Jekyll specific)</h2> | ||
<ul> | ||
<li><code>"infoBanner"</code> (optional, <code>Object</code>): contains the informational banner properties. | ||
<ul> | ||
<li><code>"title"</code> (mandatory): the banner's title.</li> | ||
<li><code>"message"</code> (mandatory): the banner's message.</li> | ||
<li><code>"link"</code> (optional, <code>Object</code>): contains the link properties. | ||
<ul> | ||
<li><code>"text"</code> (mandatory, <code>String</code>): the text of the link that is displayed.</li> | ||
<li><code>"href"</code> (mandatory, <code>String</code>): the url of the link that is displayed.</li> | ||
<li><code>"external"</code> (optional, <code>Boolean</code>): open the link in a new window.</li> | ||
</ul> | ||
</li> | ||
<li><code>"button"</code>(optional, <code>Object</code>): contains the button properties. | ||
<ul> | ||
<li><code>"text"</code> (mandatory, <code>String</code>): the text of the button that is displayed.</li> | ||
<li><code>"href"</code> (mandatory, <code>String</code>): the url of the button that is displayed.</li> | ||
<li><code>"external"</code> (optional, <code>Boolean</code>): open the link in a window.</li> | ||
</ul> | ||
</li> | ||
</ul> | ||
</li> | ||
</ul> | ||
|
||
<h3>Code</h3> | ||
<pre class="wb-prettify prettyprint"><code>{ | ||
... | ||
"infoBanner": { | ||
"title": "Beta version", | ||
"message": "We've made some changes to improve your experience with My Service Canada Account.", | ||
"link": { | ||
"text": "Learn more about the beta version", | ||
"href": "https://www.canada.ca/en", | ||
"external": true | ||
}, | ||
"button": { | ||
"text": "Try beta version", | ||
"href": "https://www.canada.ca/en" | ||
} | ||
} | ||
... | ||
}</code></pre> |
Oops, something went wrong.