Skip to content

Commit

Permalink
Content - WET-379 Main container working example (#2222)
Browse files Browse the repository at this point in the history
* WET-379 Main container working example
* Main Container working example
* WET-379 Main container working example #2222 update
* changes requested march 27
* Update pre-a11y-1.json fix extra comma

---------

Co-authored-by: josephdiab <[[email protected]]>
Co-authored-by: AtlakM <[email protected]>
Co-authored-by: AtlakM <[email protected]>
  • Loading branch information
4 people authored Mar 29, 2024
1 parent 20da39c commit 7518d54
Show file tree
Hide file tree
Showing 10 changed files with 1,031 additions and 0 deletions.
67 changes: 67 additions & 0 deletions common/main-container/index.json-ld
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{
"@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": "Main Container",
"fr": "Conteneur Principal"
},
"description": {
"en": "Main Container with alternate tags.",
"fr": "Conteneur principal avec des balises alternatives."
},
"modified": "2023-07-05",
"componentName": "main-container",
"processing": "baseline",
"status": "stable",
"pages": {
"examples": [
{
"title": "Main Container",
"language": "en",
"path": "maincontainer-en.html"
},
{
"title": "Conteneur Principal",
"language": "fr",
"path": "maincontainer-fr.html"
},
{
"title": "Main Container with article",
"language": "en",
"path": "maincontainer-article-en.html"
},
{
"title": "Conteneur Principal avec article",
"language": "fr",
"path": "maincontainer-article-fr.html"
},
{
"title": "Main Container with section",
"language": "en",
"path": "maincontainer-section-en.html"
},
{
"title": "Conteneur Principal avec section",
"language": "fr",
"path": "maincontainer-section-fr.html"
}
],
"reports": [
{
"title": "Pre Accessibility assessment #1 - Main Container",
"language": "en",
"path": "reports/pre-a11y-1-en.html"
},
{
"title": "Pre Assessment d'accessibilité #1 - Conteneur Principal",
"language": "fr",
"path": "reports/pre-a11y-1-fr.html"
}
]
}
}
61 changes: 61 additions & 0 deletions common/main-container/maincontainer-article-en.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
---
{
"altLangPage": "maincontainer-article-fr.html",
"dateModified": "2023-07-04",
"description": "Documentation on how to use main container with article.",
"language": "en",
"title": "Main Container with article",
"layout": "core"
}
---

{%- include variable-core.liquid -%}
{%- capture page-title -%}
{%- if page.titleH1 -%}
{{ page.titleH1 }}
%- {elsif page.title -%}
{{ page.title }}
{%- else -%}
Page untitled
{%- endif -%}
{%- endcapture -%}

<div class="wb-prettify all-pre hide"></div>

<main class="container" property="mainContentOfPage" resource="#wb-main" typeof="WebPageElement">
<article>
<!-- heading -->
<h1>Article</h1>

<!-- content page -->
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc ex arcu, faucibus a nisi a, consectetur
tincidunt elit. In varius elementum nunc, nec sollicitudin lorem malesuada at. Duis commodo quis enim ac
consectetur. Morbi facilisis tincidunt est, quis auctor lectus commodo eu. In pulvinar mi ligula, eu
interdum sem lacinia nec. Phasellus tempus mi id massa laoreet, a pellentesque dui venenatis. Maecenas
dignissim, lorem pretium facilisis tincidunt, dui massa iaculis turpis, quis convallis justo justo sit amet
quam. Donec consectetur eleifend fringilla. Cras eu rhoncus dui. Nam sit amet libero commodo quam sagittis
commodo eu eget nisl. Vestibulum vitae consequat velit. Ut blandit metus id justo efficitur, id maximus quam
euismod. Pellentesque eros libero, hendrerit non viverra at, euismod eu nunc. Fusce sit amet tincidunt
lacus. Proin dictum arcu at leo aliquam placerat. Donec volutpat ornare condimentum.</p>

<!-- Page details section [Must be configured as a <footer> element in this situation] -->

<h2>Code</h2>
<pre><code>
&lt;main class="container" property="mainContentOfPage" resource="#wb-main" typeof="WebPageElement"&gt;
&lt;article&gt;
&lt;!-- heading --&gt;
&lt;h1&gt;Article&lt;/h1&gt;

&lt;!-- content page --&gt;

&lt;!-- Page details section [Must be configured as a &lt;footer&gt; element in this situation] --&gt;

&lt;/article&gt;
&lt;/main&gt;
</code></pre>

</article>


</main>
61 changes: 61 additions & 0 deletions common/main-container/maincontainer-article-fr.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
---
{
"altLangPage": "maincontainer-article-en.html",
"dateModified": "2023-07-04",
"description": "Documentation sur l'utilisation du conteneur principal avec un article.",
"language": "fr",
"title": "Conteneur Principal avec article",
"layout": "core"
}
---

{%- include variable-core.liquid -%}
{%- capture page-title -%}
{%- if page.titleH1 -%}
{{ page.titleH1 }}
%- {elsif page.title -%}
{{ page.title }}
{%- else -%}
Page untitled
{%- endif -%}
{%- endcapture -%}

<div class="wb-prettify all-pre hide"></div>

<main class="container" property="mainContentOfPage" resource="#wb-main" typeof="WebPageElement">
<article>
<!-- heading -->
<h1>Article</h1>

<!-- contenu de la page -->
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc ex arcu, faucibus a nisi a, consectetur
tincidunt elit. In varius elementum nunc, nec sollicitudin lorem malesuada at. Duis commodo quis enim ac
consectetur. Morbi facilisis tincidunt est, quis auctor lectus commodo eu. In pulvinar mi ligula, eu
interdum sem lacinia nec. Phasellus tempus mi id massa laoreet, a pellentesque dui venenatis. Maecenas
dignissim, lorem pretium facilisis tincidunt, dui massa iaculis turpis, quis convallis justo justo sit amet
quam. Donec consectetur eleifend fringilla. Cras eu rhoncus dui. Nam sit amet libero commodo quam sagittis
commodo eu eget nisl. Vestibulum vitae consequat velit. Ut blandit metus id justo efficitur, id maximus quam
euismod. Pellentesque eros libero, hendrerit non viverra at, euismod eu nunc. Fusce sit amet tincidunt
lacus. Proin dictum arcu at leo aliquam placerat. Donec volutpat ornare condimentum.</p>

<!-- Section des détails de la page [Doit être configuré comme un élément <footer> dans cette situation] -->


<h2>Code</h2>
<pre><code>
&lt;main class="container" property="mainContentOfPage" resource="#wb-main" typeof="WebPageElement"&gt;
&lt;article&gt;
&lt;!-- heading --&gt;
&lt;h1&gt;Article&lt;/h1&gt;

&lt;!-- contenu de la page --&gt;

&lt;!-- Section des détails de la page [Doit être configuré comme un élément &lt;footer&gt; dans cette situation] --&gt;

&lt;/article&gt;
&lt;/main&gt;
</code></pre>

</article>

</main>
50 changes: 50 additions & 0 deletions common/main-container/maincontainer-en.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---
{
"altLangPage": "maincontainer-fr.html",
"dateModified": "2023-07-04",
"description": "Documentation on how to use main container.",
"language": "en",
"title": "Main Container",
"layout": "core"
}
---

{%- include variable-core.liquid -%}
{%- capture page-title -%}
{%- if page.titleH1 -%}
{{ page.titleH1 }}
%- {elsif page.title -%}
{{ page.title }}
{%- else -%}
Page untitled
{%- endif -%}
{%- endcapture -%}

<div class="wb-prettify all-pre hide"></div>

<main class="container" property="mainContentOfPage" resource="#wb-main" typeof="WebPageElement">
<!-- heading -->
<h1 id="wb-cont">Lorem Ipsum</h1>

<!-- content page -->
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc ex arcu, faucibus a nisi a, consectetur tincidunt
elit. In varius elementum nunc, nec sollicitudin lorem malesuada at. Duis commodo quis enim ac consectetur.
Morbi facilisis tincidunt est, quis auctor lectus commodo eu. In pulvinar mi ligula, eu interdum sem lacinia
nec. Phasellus tempus mi id massa laoreet, a pellentesque dui venenatis. Maecenas dignissim, lorem pretium
facilisis tincidunt, dui massa iaculis turpis, quis convallis justo justo sit amet quam. Donec consectetur
eleifend fringilla. Cras eu rhoncus dui. Nam sit amet libero commodo quam sagittis commodo eu eget nisl.
Vestibulum vitae consequat velit. Ut blandit metus id justo efficitur, id maximus quam euismod. Pellentesque
eros libero, hendrerit non viverra at, euismod eu nunc. Fusce sit amet tincidunt lacus. Proin dictum arcu at leo
aliquam placerat. Donec volutpat ornare condimentum.</p>

<h2>Code</h2>
<pre><code>
&lt;main class="container" property="mainContentOfPage" resource="#wb-main" typeof="WebPageElement"&gt;
&lt;!-- heading --&gt;
&lt;h1 id="wb-cont"&gt;Lorem ipsum&lt;/h1&gt;

&lt;!-- content page --&gt;

&lt;/main&gt;
</code></pre>
</main>
50 changes: 50 additions & 0 deletions common/main-container/maincontainer-fr.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---
{
"altLangPage": "maincontainer-fr.html",
"dateModified": "2023-07-04",
"description": "Documentation on how to use main container.",
"language": "en",
"title": "Conteneur Principal",
"layout": "core"
}
---

{%- include variable-core.liquid -%}
{%- capture page-title -%}
{%- if page.titleH1 -%}
{{ page.titleH1 }}
%- {elsif page.title -%}
{{ page.title }}
{%- else -%}
Page untitled
{%- endif -%}
{%- endcapture -%}

<div class="wb-prettify all-pre hide"></div>

<main class="container" property="mainContentOfPage" resource="#wb-main" typeof="WebPageElement">
<!-- heading -->
<h1 id="wb-cont">Lorem Ipsum</h1>

<!-- contenu de la page -->
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc ex arcu, faucibus a nisi a, consectetur tincidunt
elit. In varius elementum nunc, nec sollicitudin lorem malesuada at. Duis commodo quis enim ac consectetur.
Morbi facilisis tincidunt est, quis auctor lectus commodo eu. In pulvinar mi ligula, eu interdum sem lacinia
nec. Phasellus tempus mi id massa laoreet, a pellentesque dui venenatis. Maecenas dignissim, lorem pretium
facilisis tincidunt, dui massa iaculis turpis, quis convallis justo justo sit amet quam. Donec consectetur
eleifend fringilla. Cras eu rhoncus dui. Nam sit amet libero commodo quam sagittis commodo eu eget nisl.
Vestibulum vitae consequat velit. Ut blandit metus id justo efficitur, id maximus quam euismod. Pellentesque
eros libero, hendrerit non viverra at, euismod eu nunc. Fusce sit amet tincidunt lacus. Proin dictum arcu at leo
aliquam placerat. Donec volutpat ornare condimentum.</p>

<h2>Code</h2>
<pre><code>
&lt;main property="mainContentPage"&gt;
&lt;!-- heading --&gt;
&lt;h1 id="wb-cont"&gt;Lorem ipsum&lt;/h1&gt;

&lt;!-- contenu de la page --&gt;

&lt;/main&gt;
</code></pre>
</main>
60 changes: 60 additions & 0 deletions common/main-container/maincontainer-section-en.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
---
{
"altLangPage": "maincontainer-section-fr.html",
"dateModified": "2023-07-04",
"description": "Documentation on how to use main container with a section.",
"language": "en",
"title": "Main Container with section",
"layout": "core"
}
---

{%- include variable-core.liquid -%}
{%- capture page-title -%}
{%- if page.titleH1 -%}
{{ page.titleH1 }}
%- {elsif page.title -%}
{{ page.title }}
{%- else -%}
Page untitled
{%- endif -%}
{%- endcapture -%}

<div class="wb-prettify all-pre hide"></div>

<main class="container" property="mainContentOfPage" resource="#wb-main" typeof="WebPageElement">
<section>
<!-- heading -->
<h1 id="wb-cont">Section</h1>

<!-- content page -->
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc ex arcu, faucibus a nisi a, consectetur
tincidunt elit. In varius elementum nunc, nec sollicitudin lorem malesuada at. Duis commodo quis enim ac
consectetur. Morbi facilisis tincidunt est, quis auctor lectus commodo eu. In pulvinar mi ligula, eu
interdum sem lacinia nec. Phasellus tempus mi id massa laoreet, a pellentesque dui venenatis. Maecenas
dignissim, lorem pretium facilisis tincidunt, dui massa iaculis turpis, quis convallis justo justo sit amet
quam. Donec consectetur eleifend fringilla. Cras eu rhoncus dui. Nam sit amet libero commodo quam sagittis
commodo eu eget nisl. Vestibulum vitae consequat velit. Ut blandit metus id justo efficitur, id maximus quam
euismod. Pellentesque eros libero, hendrerit non viverra at, euismod eu nunc. Fusce sit amet tincidunt
lacus. Proin dictum arcu at leo aliquam placerat. Donec volutpat ornare condimentum.</p>

<!-- Page details section [Must be configured as a <footer> element in this situation] -->

<h2>Code</h2>
<pre><code>
&lt;main class="container" property="mainContentOfPage" resource="#wb-main" typeof="WebPageElement"&gt;
&lt;section&gt;
&lt;!-- heading --&gt;
&lt;h1 id="wb-cont"&gt;Section&lt;/h1&gt;

&lt;!-- content page --&gt;

&lt;!-- Page details section [Must be configured as a &lt;footer&gt; element in this situation] --&gt;

&lt;/section&gt;
&lt;/main&gt;
</code></pre>

</section>

</main>
Loading

0 comments on commit 7518d54

Please sign in to comment.