-
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
15 changed files
with
512 additions
and
37 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
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 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: 12px 0 6px; | ||
|
||
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,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> |
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": "Page d'application avec bannière informative", | ||
"language": "fr", | ||
"altLangPage": "application-with-banner-en.html", | ||
"dateModified": "2023-10-13", | ||
"infoBanner": { | ||
"title": "Version bêta", | ||
"message": "Nous avons apporté quelques changements pour améliorer votre expérience avec Mon dossier Service Canada.", | ||
"link": { | ||
"text": "En savoir plus sur la version bêta", | ||
"href": "https://www.canada.ca/fr", | ||
"external": true | ||
}, | ||
"button": { | ||
"text": "Essayez la version bêta", | ||
"href": "https://www.canada.ca/fr" | ||
} | ||
} | ||
} | ||
--- | ||
|
||
{% include alert-community-stable.html %} | ||
|
||
<h2>Options de configuration (spécifique à GCWeb Jekyll)</h2> | ||
<ul> | ||
<li><code>"infoBanner"</code> (optionnel, <code>Object</code>): contient les propriétés de la bannière d'information. | ||
<ul> | ||
<li><code>"title"</code> (obligatoire): le titre de la bannière.</li> | ||
<li><code>"message"</code> (obligatoire): le message de la bannière.</li> | ||
<li><code>"link"</code> (optionnel, <code>Object</code>): contient les propriétés du lien. | ||
<ul> | ||
<li><code>"text"</code> (obligatoire, <code>String</code>): le texte du lien qui s'affiche.</li> | ||
<li><code>"href"</code> (obligatoire, <code>String</code>): l'url du lien qui s'affiche.</li> | ||
<li><code>"external"</code> (optionnel, <code>Boolean</code>): ouvrir le lien dans une nouvelle fenêtre.</li> | ||
</ul> | ||
</li> | ||
<li><code>"button"</code>(optionnel, <code>Object</code>): contient les propriétés du bouton. | ||
<ul> | ||
<li><code>"text"</code> (obligatoire, <code>String</code>): le texte du bouton qui s'affiche.</li> | ||
<li><code>"href"</code> (obligatoire, <code>String</code>): l'url du bouton qui s'affiche.</li> | ||
<li><code>"external"</code> (optionnel, <code>Boolean</code>): ouvrir le lien dans une nouvelle fenêtre.</li> | ||
</ul> | ||
</li> | ||
</ul> | ||
</li> | ||
</ul> | ||
|
||
<h3>Code</h3> | ||
<pre class="wb-prettify prettyprint"><code>{ | ||
... | ||
"infoBanner": { | ||
"title": "Version bêta", | ||
"message": "<strong>Beta version</strong>: 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> |
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,41 @@ | ||
--- | ||
{ | ||
"layout": "application", | ||
"title": "Application page", | ||
"language": "en", | ||
"altLangPage": "default-application-fr.html", | ||
"dateModified": "2023-10-13" | ||
} | ||
--- | ||
|
||
{% include alert-community-stable.html %} | ||
|
||
<h2>Configuration options (GCWeb Jekyll specific)</h2> | ||
<ul> | ||
<li><code>"applicationName"</code> (mandatory, <code>Object</code>): contains the application name for all languages. | ||
<ul> | ||
<li><code>"en"</code> (mandatory): the English application name.</li> | ||
<li><code>"fr"</code> (mandatory): the French application name.</li> | ||
</ul> | ||
</li> | ||
<li><code>"applicationURL"</code> (mandatory, <code>Object</code>): contains the application URL for all languages. | ||
<ul> | ||
<li><code>"en"</code> (mandatory): the English application URL.</li> | ||
<li><code>"fr"</code> (mandatory): the French application URL.</li> | ||
</ul> | ||
</li> | ||
</ul> | ||
|
||
<h3>Code</h3> | ||
<pre class="wb-prettify prettyprint"><code>{ | ||
... | ||
"applicationName": { | ||
"en": "My application", | ||
"fr": "Mon application" | ||
} | ||
"applicationURL": { | ||
"en": "/", | ||
"fr": "/" | ||
} | ||
... | ||
}</code></pre> |
Oops, something went wrong.