From bbc0e1ba3466a12fd6434bee65eca3479e4de443 Mon Sep 17 00:00:00 2001 From: shiva-sc Date: Thu, 20 Apr 2023 01:07:20 -0400 Subject: [PATCH] gCAG upgrage - add an test & example file for download-link --- common/download-link/download_link-en.html | 54 ++++++++++++++++++++++ common/download-link/download_link-fr.html | 54 ++++++++++++++++++++++ common/download-link/index.json-ld | 35 ++++++++++++++ 3 files changed, 143 insertions(+) create mode 100644 common/download-link/download_link-en.html create mode 100644 common/download-link/download_link-fr.html create mode 100644 common/download-link/index.json-ld diff --git a/common/download-link/download_link-en.html b/common/download-link/download_link-en.html new file mode 100644 index 0000000000..45e4d785c8 --- /dev/null +++ b/common/download-link/download_link-en.html @@ -0,0 +1,54 @@ +--- +{ + "title": "Download link example", + "language": "en", + "altLangPage": "download_link-fr.html", + "breadcrumbs": [ + { "title": "GCWeb home", "link": "https://wet-boew.github.io/GCWeb/index-en.html" } + ], + "dateModified": "2023-04-20" +} +--- +
+ +

Download link

+

Download links are used for referencing and linking to non-HTML files on Canada.ca web pages.

+
+ +
+

Code

+
<div class="row">
+	<div class="col-sm-4">
+		<a class="gc-dwnld-lnk" href="#">
+			<div class="well gc-dwnld">
+				<div class="row">
+					<div class="col-xs-4">
+						<p><img class="img-responsive thumbnail gc-dwnld-img" src="./../../templates/img/doc.png" alt="" /></p>
+					</div>
+					<div class="col-xs-8">
+						<p class="gc-dwnld-txt">
+							<span>Document Title</span>
+							<span class="gc-dwnld-info">(<abbr title="Portable Document Format">PDF</abbr>, 273 <abbr title="KiloByte">KB</abbr>)</span>
+						</p>
+					</div>
+				</div>
+			</div>
+		</a>
+	</div>
+</div>
diff --git a/common/download-link/download_link-fr.html b/common/download-link/download_link-fr.html new file mode 100644 index 0000000000..c08393424a --- /dev/null +++ b/common/download-link/download_link-fr.html @@ -0,0 +1,54 @@ +--- +{ + "title": "Download link example", + "language": "fr", + "altLangPage": "download_link-en.html", + "breadcrumbs": [ + { "title": "GCWeb home", "link": "https://wet-boew.github.io/GCWeb/index-en.html" } + ], + "dateModified": "2023-04-20" +} +--- +
+ +

Lien de téléchargement

+

Les liens de téléchargement servent à renvoyer ou à lier à des fichiers de format autre que HTML sur les pages Web de Canada.ca.

+
+ +
+

Code

+
<div class="row">
+	<div class="col-sm-4">
+		<a class="gc-dwnld-lnk" href="#">
+			<div class="well gc-dwnld">
+				<div class="row">
+					<div class="col-xs-4">
+						<p><img class="img-responsive thumbnail gc-dwnld-img" src="./../../templates/img/doc.png" alt="" /></p>
+					</div>
+					<div class="col-xs-8">
+						<p class="gc-dwnld-txt">
+							<span>Titre du document</span>
+							<span class="gc-dwnld-info">(<abbr lang="en" title="Portable Document Format">PDF</abbr>, 273 <abbr title="kilo octet">Ko</abbr>)</span>
+						</p>
+					</div>
+				</div>
+			</div>
+		</a>
+	</div>
+</div>
diff --git a/common/download-link/index.json-ld b/common/download-link/index.json-ld new file mode 100644 index 0000000000..486a97c4c0 --- /dev/null +++ b/common/download-link/index.json-ld @@ -0,0 +1,35 @@ +{ + "@context": { + "@version": 1.1, + "dct": "http://purl.org/dc/terms/", + "title": { "@id": "dct:title", "@container": "@language" }, + "description": { "@id": "dct:description", "@container": "@language" }, + "modified": "dct:modified" + }, + "title": { + "en": "Download link", + "fr": "Lien de téléchargement" + }, + "description": { + "en": "Download link with custom styles.", + "fr": "Lien de téléchargement avec des styles personalisés." + }, + "modified": "2023-04-20", + "componentName": "download-link", + "processing": "baseline", + "status": "stable", + "pages": { + "examples": [ + { + "title": "Download link", + "language": "en", + "path": "download_link-en.html" + }, + { + "title": "Lien de téléchargement", + "language": "fr", + "path": "download_link-fr.html" + } + ] + } +}