Skip to content

Commit 1aeec02

Browse files
jesserockzkbx81mrdarrengriffin
authored
New footer (#4720)
* New footer * Layout tweaking * Reworked footer --------- Co-authored-by: Keith Burzinski <kbx81x@gmail.com> Co-authored-by: Darren Griffin <darren.griffin@live.co.uk>
1 parent 66a9ea8 commit 1aeec02

File tree

4 files changed

+141
-0
lines changed

4 files changed

+141
-0
lines changed

_static/custom.css

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,10 @@ div.body p, div.body dd, div.body li, div.body blockquote {
288288

289289
/* New branding changes */
290290

291+
div.body{
292+
margin: 0 auto;
293+
}
294+
291295
div.body h1, div.body h2, div.body h3, div.body h4, div.body h5, div.body h6, div.sphinxsidebar h3, div.sphinxsidebar h4, div.admonition p.admonition-title {
292296
font-family: Figtree, system, -apple-system, ".SFNSText-Regular", "San Francisco", "Roboto", "Segoe UI", "Helvetica Neue", "Lucida Grande", sans-serif;
293297
font-weight: 600;
@@ -297,6 +301,51 @@ div.body h1 {
297301
font-size: 2.5rem;
298302
}
299303

304+
.custom-footer{
305+
border-top: 1px solid #3E4349;
306+
display: flex;
307+
justify-content: space-between;
308+
margin: 0 auto;
309+
max-width: 800px;
310+
padding: 1rem 0;
311+
}
312+
313+
.custom-footer .side{
314+
display: flex;
315+
flex-direction: column;
316+
gap: .5rem;
317+
}
318+
.custom-footer .side:last-child{
319+
align-items: flex-end;
320+
}
321+
.custom-footer .ohf{
322+
display: flex;
323+
flex-direction: column;
324+
gap: .5rem;
325+
}
326+
327+
.custom-footer .ohf span{
328+
font-size: 12px;
329+
}
330+
331+
.custom-footer .ohf a{
332+
border-bottom: none;
333+
}
334+
335+
.custom-footer .links{
336+
display: flex;
337+
gap: .5rem;
338+
align-items: center;
339+
}
340+
.custom-footer .links a{
341+
display: flex;
342+
align-items: flex-end;
343+
}
344+
345+
.custom-footer .link-netlify{
346+
font-size: 12px;
347+
}
348+
300349
body {
301350
font-family: "Instrument Sans", system, -apple-system, ".SFNSText-Regular", "San Francisco", "Roboto", "Segoe UI", "Helvetica Neue", "Lucida Grande", sans-serif;
302351
line-height: 1.5;
@@ -347,6 +396,10 @@ img.logo {
347396
/* dark theme */
348397
@media (prefers-color-scheme: dark) {
349398

399+
.custom-footer{
400+
border-top: 1px solid #ececec;
401+
}
402+
350403
@media screen and (max-width: 875px) {
351404
div.documentwrapper {
352405
background-color: #212121;

_static/ohf-logo-on-dark.svg

Lines changed: 34 additions & 0 deletions
Loading

_static/ohf-logo-on-light.svg

Lines changed: 34 additions & 0 deletions
Loading

_templates/layout.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,26 @@
4646
{% endblock %}
4747

4848
{% block footer %}
49+
<div class="custom-footer">
50+
<div class="side">
51+
<div class="ohf">
52+
<span>ESPHome is a project from the</span>
53+
<a href="https://www.openhomefoundation.org" target="_blank">
54+
<picture>
55+
<source srcset="/_static/ohf-logo-on-dark.svg" media="(prefers-color-scheme: dark)">
56+
<img width="180px" src="/_static/ohf-logo-on-light.svg" alt="Open Home Foundation">
57+
</picture>
58+
</a>
59+
</div>
60+
</div>
61+
<div class="side">
62+
<div class="links">
63+
<a href="https://github.com/esphome/esphome" target="_blank">Source Code</a>
64+
<a href="mailto:esphome@nabucasa.com">Contact</a><small>(no support)</small>
65+
</div>
66+
<a href="https://www.netlify.com" class="link-netlify" target="_blank">This site is powered by Netlify</a>
67+
</div>
68+
</div>
4969
<div id="upgrade-footer">
5070
A new version has been released since you last visited this page: {{ release }} 🎉
5171
<div class="footer-button-container">

0 commit comments

Comments
 (0)