Skip to content

New footer #4720

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions _static/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,10 @@ div.body p, div.body dd, div.body li, div.body blockquote {

/* New branding changes */

div.body{
margin: 0 auto;
}

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 {
font-family: Figtree, system, -apple-system, ".SFNSText-Regular", "San Francisco", "Roboto", "Segoe UI", "Helvetica Neue", "Lucida Grande", sans-serif;
font-weight: 600;
Expand All @@ -297,6 +301,51 @@ div.body h1 {
font-size: 2.5rem;
}

.custom-footer{
border-top: 1px solid #3E4349;
display: flex;
justify-content: space-between;
margin: 0 auto;
max-width: 800px;
padding: 1rem 0;
}

.custom-footer .side{
display: flex;
flex-direction: column;
gap: .5rem;
}
.custom-footer .side:last-child{
align-items: flex-end;
}
.custom-footer .ohf{
display: flex;
flex-direction: column;
gap: .5rem;
}

.custom-footer .ohf span{
font-size: 12px;
}

.custom-footer .ohf a{
border-bottom: none;
}

.custom-footer .links{
display: flex;
gap: .5rem;
align-items: center;
}
.custom-footer .links a{
display: flex;
align-items: flex-end;
}

.custom-footer .link-netlify{
font-size: 12px;
}

body {
font-family: "Instrument Sans", system, -apple-system, ".SFNSText-Regular", "San Francisco", "Roboto", "Segoe UI", "Helvetica Neue", "Lucida Grande", sans-serif;
line-height: 1.5;
Expand Down Expand Up @@ -347,6 +396,10 @@ img.logo {
/* dark theme */
@media (prefers-color-scheme: dark) {

.custom-footer{
border-top: 1px solid #ececec;
}

@media screen and (max-width: 875px) {
div.documentwrapper {
background-color: #212121;
Expand Down
34 changes: 34 additions & 0 deletions _static/ohf-logo-on-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions _static/ohf-logo-on-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions _templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,26 @@
{% endblock %}

{% block footer %}
<div class="custom-footer">
<div class="side">
<div class="ohf">
<span>ESPHome is a project from the</span>
<a href="https://www.openhomefoundation.org" target="_blank">
<picture>
<source srcset="/_static/ohf-logo-on-dark.svg" media="(prefers-color-scheme: dark)">
<img width="180px" src="/_static/ohf-logo-on-light.svg" alt="Open Home Foundation">
</picture>
</a>
</div>
</div>
<div class="side">
<div class="links">
<a href="https://github.com/esphome/esphome" target="_blank">Source Code</a>
<a href="mailto:esphome@nabucasa.com">Contact</a><small>(no support)</small>
</div>
<a href="https://www.netlify.com" class="link-netlify" target="_blank">This site is powered by Netlify</a>
</div>
</div>
<div id="upgrade-footer">
A new version has been released since you last visited this page: {{ release }} 🎉
<div class="footer-button-container">
Expand Down