Skip to content

Commit 135a570

Browse files
authored
Merge pull request #66 from shiftlab/update-footer
Update footer
2 parents 3f242a1 + faea2fe commit 135a570

File tree

6 files changed

+66
-10
lines changed

6 files changed

+66
-10
lines changed

images/logo-youtube-dark.svg

Lines changed: 21 additions & 0 deletions
Loading

pytorch_sphinx_theme/layout.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -365,25 +365,24 @@ <h2>Resources</h2>
365365
<li><a href="{{ theme_variables.external_urls['features'] }}">Features</a></li>
366366
<li><a href="{{ theme_variables.external_urls['ecosystem'] }}">Ecosystem</a></li>
367367
<li><a href="{{ theme_variables.external_urls['blog'] }}">Blog</a></li>
368-
<li><a href="{{ theme_variables.external_urls['resources'] }}">Resources</a></li>
368+
<li><a href="{{ theme_variables.external_urls['contributing'] }}">Contributing</a></li>
369369
</ul>
370370
</div>
371371

372372
<div class="footer-links-col">
373373
<ul>
374-
<li class="list-title"><a href="{{ theme_variables.external_urls['support'] }}">Support</a></li>
374+
<li class="list-title"><a href="{{ theme_variables.external_urls['resources'] }}">Resources</a></li>
375375
<li><a href="{{ theme_variables.external_urls['tutorials'] }}">Tutorials</a></li>
376376
<li><a href="{{ theme_variables.external_urls['docs'] }}">Docs</a></li>
377377
<li><a href="{{ theme_variables.external_urls['discuss'] }}" target="_blank">Discuss</a></li>
378378
<li><a href="{{ theme_variables.external_urls['github_issues'] }}" target="_blank">Github Issues</a></li>
379-
<li><a href="{{ theme_variables.external_urls['slack'] }}" target="_blank">Slack</a></li>
380-
<li><a href="{{ theme_variables.external_urls['contributing'] }}" target="_blank">Contributing</a></li>
379+
<li><a href="{{ theme_variables.external_urls['brand_guidelines'] }}" target="_blank">Brand Guidelines</a></li>
381380
</ul>
382381
</div>
383382

384383
<div class="footer-links-col follow-us-col">
385384
<ul>
386-
<li class="list-title">Follow Us</li>
385+
<li class="list-title">Stay Connected</li>
387386
<li>
388387
<div id="mc_embed_signup">
389388
<form
@@ -420,6 +419,7 @@ <h2>Resources</h2>
420419
<div class="footer-social-icons">
421420
<a href="{{ theme_variables.external_urls['facebook'] }}" target="_blank" class="facebook"></a>
422421
<a href="{{ theme_variables.external_urls['twitter'] }}" target="_blank" class="twitter"></a>
422+
<a href="{{ theme_variables.external_urls['youtube'] }}" target="_blank" class="youtube"></a>
423423
</div>
424424
</div>
425425
</div>

pytorch_sphinx_theme/static/css/theme.css

Lines changed: 8 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 21 additions & 0 deletions
Loading

pytorch_sphinx_theme/theme_variables.jinja

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
'resources': 'https://pytorch.org/resources',
1818
'support': 'https://pytorch.org/support',
1919
'mobile': 'https://pytorch.org/mobile',
20-
'hub': 'https://pytorch.org/hub'
20+
'hub': 'https://pytorch.org/hub',
21+
'youtube': 'https://www.youtube.com/pytorch',
22+
'brand_guidelines': 'https://pytorch.org/assets/brand-guidelines/PyTorch-Brand-Guidelines.pdf'
2123
}
2224
-%}

scss/shared/_footer.scss

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.site-footer {
22
padding: rem(40px) 0;
33
width: 100%;
4-
background-image: url("../images/home-footer-background.jpg");
4+
background: $black;
55
background-size: 100%;
66
margin-left: 0;
77
margin-right: 0;
@@ -25,7 +25,7 @@
2525
ul li {
2626
font-size: rem(18px);
2727
line-height: rem(32px);
28-
color: $dark_grey;
28+
color: #A0A0A1;
2929
padding-bottom: rem(6px);
3030

3131
&.list-title {
@@ -197,6 +197,12 @@
197197
background-size: 17px 17px;
198198
background-repeat: no-repeat;
199199
}
200+
201+
&.youtube {
202+
background-image: url("../images/logo-youtube-dark.svg");
203+
background-position: center center;
204+
background-repeat: no-repeat;
205+
}
200206
}
201207
}
202208

0 commit comments

Comments
 (0)