Skip to content

Commit 90b7f4b

Browse files
Merge pull request #720 from shawnthompson/contribute-email
Add email to contribute section
2 parents f8ad9ba + c7630b0 commit 90b7f4b

File tree

4 files changed

+14
-8
lines changed

4 files changed

+14
-8
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"sass-start": "sass src/_scss/base.scss _site/css/da11yn.css",
1717
"sass-build": "sass --style=compressed src/_scss/base.scss _site/css/da11yn.css",
1818
"watch:sass": "npm run sass-start -- --watch",
19-
"start": "cross-env ELEVENTY_WATCH=true ELEVENTY_ENV=local npm-run-all sass-start serve:port --parallel watch:*",
19+
"start": "cross-env ELEVENTY_WATCH=true ELEVENTY_ENV=local npm-run-all --parallel watch:* serve:port",
2020
"start-dev": "cross-env ELEVENTY_WATCH=true ELEVENTY_ENV=dev npm-run-all sass-start serve:port --parallel watch:*",
2121
"start-prod": "cross-env ELEVENTY_WATCH=true ELEVENTY_ENV=prod npm-run-all sass-start serve:port --parallel watch:*",
2222
"dev": "cross-env ELEVENTY_ENV=dev npm-run-all sass-build --parallel eleventy",

src/_data/contribute.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
module.exports = {
2+
email: "digitala11ytoolkit-boitedoutila11enumerique@ssc-spc.gc.ca",
23
fr: {
34
contribute: "Contribuez à ce projet",
45
small: "sur Github.com",
56
see: "Code source",
67
report: "Problèmes",
78
join: "Discussions",
89
netlify: "Ce site est alimenté par",
10+
emailText: "Contactez la Boîte à outils de l'accessibilité numérique par courriel",
11+
emailSubject: "Contribuer%20%C3%A0%20la%20Bo%C3%AEte%20%C3%A0%20outils%20de%20l'accessibilit%C3%A9%20num%C3%A9rique"
912
},
1013

1114
en: {
@@ -15,5 +18,7 @@ module.exports = {
1518
report: "Issues",
1619
join: "Discussions",
1720
netlify: "This site is powered by",
21+
emailText: "Reach the Digital Accessibility Toolkit by email",
22+
emailSubject: "Contribute%20to%20the%20Digital%20Accessibility%20Toolkit"
1823
},
1924
};

src/_includes/partials/contribute.njk

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@
88
</div>
99
<div class="col-md-7">
1010
<ul class="list-inline">
11-
<li class="mrgn-rght-sm"><i class="fas fa-code fa-lg fa-fw" aria-hidden="true"></i><a{% if locale == "fr" %} {% endif %} href="https://github.com/gc-da11yn/gc-da11yn.github.io">{{ contribute[locale].see }}{% if locale == "fr" %} <small>(en anglais seulement)</small>{% endif %}</a></li>
12-
<li class="mrgn-rght-sm"><i class="fas fa-exclamation-circle fa-lg fa-fw" aria-hidden="true"></i><a{% if locale == "fr" %} {% endif %} href="https://github.com/gc-da11yn/gc-da11yn.github.io/issues/">{{ contribute[locale].report }}{% if locale == "fr" %} <span lang="en">(Issues)</span><small>(en anglais seulement)</small>{% endif %}</a></li>
13-
<li><i class="fas fa-comments fa-lg fa-fw" aria-hidden="true"></i><a{% if locale == fr %} {% endif %} href="https://github.com/gc-da11yn/gc-da11yn.github.io/discussions">{{ contribute[locale].join }}{% if locale == "fr" %} <small>(en anglais seulement)</small>{% endif %}</a></li>
11+
<li class="mrgn-rght-sm"><i class="fas fa-code fa-lg fa-fw" aria-hidden="true"></i><a{% if locale == "fr" %} {% endif %} href="https://github.com/gc-da11yn/gc-da11yn.github.io">{{ contribute[locale].see }}</a></li>
12+
<li class="mrgn-rght-sm"><i class="fas fa-exclamation-circle fa-lg fa-fw" aria-hidden="true"></i><a{% if locale == "fr" %} {% endif %} href="https://github.com/gc-da11yn/gc-da11yn.github.io/issues/">{{ contribute[locale].report }}</a></li>
13+
<li><i class="fas fa-comments fa-lg fa-fw" aria-hidden="true"></i><a{% if locale == fr %} {% endif %} href="https://github.com/gc-da11yn/gc-da11yn.github.io/discussions">{{ contribute[locale].join }}</a></li>
1414
</ul>
15+
<p><i class="fas fa-envelope fa-lg fa-fw" aria-hidden="true"></i><a href="mailto:{{ contribute.email }}?subject={{ contribute[locale].emailSubject }}">{{ contribute[locale].emailText }}</a></p>
1516
</div>
1617
</div>
1718
{# This code block checks if the environment is set to "dev". If it is, it displays a paragraph with a link to Netlify and a link to edit the code for the current page on GitHub. #}

src/_scss/contribute.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
.contribute {
22
background-color: black;
3-
color: white;
3+
color: #fff;
4+
padding-bottom: 25px !important;
45

56
ul {
6-
padding-bottom: 2em;
77

88
@media only screen and (min-width: 992px) {
99
padding-top: 4em;
1010
}
1111
}
1212

1313
li {
14-
padding-bottom: 15px;
15-
}
14+
padding-bottom: 15px;
15+
}
1616

1717
small {
1818
display: block;

0 commit comments

Comments
 (0)