Skip to content

Commit 5d09adb

Browse files
JasonEtcosarahs
andauthored
Add/use small-footer for Actions landing page (github#16265)
* Add/use small-footer * Fix borked HTML * Extract scripts to new include * Add spacing * Fix some padding * Fix a test that uses /actions * Fix old links Co-authored-by: Sarah Schneider <sarahs@users.noreply.github.com> * Update /developers in general footer * Don't hard code free-pro-team * Use the small-footer everywhere * Tweak border Co-authored-by: Sarah Schneider <sarahs@users.noreply.github.com>
1 parent 66efc8f commit 5d09adb

9 files changed

Lines changed: 35 additions & 10 deletions

File tree

content/actions/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ versions:
7373
</div>
7474

7575
<!-- Code examples -->
76-
<div class="mt-6 pt-6">
76+
<div class="my-6 pt-6">
7777
<h2 class="mb-2">More guides</h2>
7878

7979
<div class="d-flex flex-wrap gutter">

includes/footer.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ <h4 class="mb-3 text-mono text-gray-light text-normal">{% data ui.footer.product
2020
<div class="col-6 col-sm-3 col-lg-2 mb-6 mb-md-2 pr-3 pr-md-0 pl-md-4">
2121
<h4 class="mb-3 text-mono text-gray-light text-normal">{% data ui.footer.platform.heading %}</h4>
2222
<ul class="list-style-none f5">
23-
<li class="lh-condensed mb-3"><a href="https://developer.github.com/" class="link-gray">{% data ui.footer.platform.links.developer_api %}</a></li>
23+
<li class="lh-condensed mb-3"><a href="/developers" class="link-gray">{% data ui.footer.platform.links.developer_api %}</a></li>
2424
<li class="lh-condensed mb-3"><a href="http://partner.github.com/" class="link-gray">{% data ui.footer.platform.links.partners %}</a></li>
2525
<li class="lh-condensed mb-3"><a href="https://atom.io" class="link-gray">{% data ui.footer.platform.links.atom %}</a></li>
2626
<li class="lh-condensed mb-3"><a href="http://electron.atom.io/" class="link-gray">{% data ui.footer.platform.links.electron %}</a></li>
@@ -87,4 +87,4 @@ <h4 class="mb-3 text-mono text-gray-light text-normal">{% data ui.footer.company
8787
</div>
8888
</div>
8989

90-
<script src="/dist/index.js"></script>
90+
{% include scripts %}

includes/scripts.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<script src="/dist/index.js"></script>

includes/small-footer.html

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<footer class="py-6 text-small">
2+
<div class="container-xl d-flex px-3 px-md-6">
3+
<div class="d-flex text-gray mr-3">
4+
{% octicon "mark-github" height="20" class="mr-3" %}
5+
<span>{{ "now" | date: "%Y" }} GitHub, Inc.</span>
6+
</div>
7+
8+
<ul class="d-flex list-style-none">
9+
<li class="ml-3"><a href="/github/site-policy/github-terms-of-service">{% data ui.footer.terms %} </a></li>
10+
<li class="ml-3"><a href="/github/site-policy/github-privacy-statement">{% data ui.footer.privacy %} </a></li>
11+
<li class="ml-3"><a href="https://github.com/security">{% data ui.footer.product.links.security %}</a></li>
12+
<li class="ml-3"><a href="https://githubstatus.com/">{% data ui.footer.support.links.status %}</a></li>
13+
<li class="ml-3"><a href="/">{% data ui.footer.support.links.help %}</a></li>
14+
<li class="ml-3"><a href="https://support.github.com/contact">{% data ui.footer.support.links.contact_github %}</a></li>
15+
<li class="ml-3"><a href="https://github.com/pricing">{% data ui.footer.product.links.pricing %}</a></li>
16+
<li class="ml-3"><a href="/developers">{% data ui.footer.platform.links.developer_api %}</a></li>
17+
<li class="ml-3"><a href="https://services.github.com/">{% data ui.footer.support.links.training %}</a></li>
18+
<li class="ml-3"><a href="https://github.com/about">{% data ui.footer.company.links.about %}</a></li>
19+
</ul>
20+
</div>
21+
</footer>
22+
23+
{% include scripts %}

layouts/default.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
{% include article %}
1515
{% endif %}
1616
{% include support %}
17-
{% include footer %}
17+
{% include small-footer %}
1818
</main>
1919
</body>
2020
</html>

layouts/error-404.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ <h3 class="mb-3">{% data ui.search.need_help %}</h3>
3232

3333
<!-- {{ content }} -->
3434
{% include support %}
35-
{% include footer %}
35+
{% include small-footer %}
3636
</main>
3737
</body>
3838
</html>

layouts/error-500.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ <h1>{% data ui.errors.oops %}</h1>
2222

2323
<!-- {{ content }} -->
2424
{% include support %}
25-
{% include footer %}
25+
{% include small-footer %}
2626
</body>
2727
</html>

layouts/product-landing.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ <h1 class="mb-3 font-mktg">{{ page.shortTitle }}</h1>
2828
{{ renderedPage }}
2929
</div>
3030

31-
32-
{% include support %}
33-
{% include footer %}
31+
<div class="border-top">
32+
{% include small-footer %}
33+
</div>
3434
</main>
3535
</body>
3636
</html>

tests/rendering/footer.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
const { getDOM } = require('../helpers')
22
const enterpriseServerReleases = require('../../lib/enterprise-server-releases')
3+
const nonEnterpriseDefaultVersion = require('../../lib/non-enterprise-default-version')
34

45
describe('footer', () => {
56
jest.setTimeout(10 * 60 * 1000)
67

78
describe('"contact us" link', () => {
89
test('leads to dotcom support on dotcom pages', async () => {
9-
const $ = await getDOM('/en/actions')
10+
const $ = await getDOM(`/en/${nonEnterpriseDefaultVersion}/github`)
1011
expect($('a#contact-us').attr('href')).toBe('https://support.github.com/contact')
1112
})
1213

0 commit comments

Comments
 (0)