Add Home Assistant logo to home page banner (#658)

Co-authored-by: Franck Nijhof <git@frenck.dev>
This commit is contained in:
Tom Brien 2020-10-02 09:57:27 +01:00 committed by GitHub
parent 21ee6f9492
commit 27f16608ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 26 additions and 13 deletions

View File

@ -1,6 +1,6 @@
module.exports = { module.exports = {
title: "Home Assistant Developer Documentation", title: "Home Assistant Developer Docs",
tagline: "All you need to start developing for Home Assistant", tagline: "All you need to start developing",
url: "https://developers.home-assistant.io", url: "https://developers.home-assistant.io",
baseUrl: "/", baseUrl: "/",
favicon: "img/favicon.png", favicon: "img/favicon.png",

View File

@ -23,10 +23,6 @@
padding: 0 var(--ifm-pre-padding); padding: 0 var(--ifm-pre-padding);
} }
a.hero__text{
color: var(--ifm-heading-color);
}
.videoSection { .videoSection {
padding: 20px 0; padding: 20px 0;
} }

View File

@ -120,14 +120,21 @@ function Home() {
> >
<header className={classnames("hero hero--primary", styles.heroBanner)}> <header className={classnames("hero hero--primary", styles.heroBanner)}>
<div className="container"> <div className="container">
<div className="row">
<div className={classnames('col col--5')}>
<img className={styles.heroLogo} alt="Home Assistant Logo" src="/img/logo-white.svg" />
</div>
<div className={classnames('col col--5')}>
<h1 className={styles.heroTitle}>{siteConfig.title}</h1> <h1 className={styles.heroTitle}>{siteConfig.title}</h1>
<p className={styles.heroTagline}>{siteConfig.tagline}</p> <p className={styles.heroTagline}>{siteConfig.tagline}</p>
<p> <p>
<a className="hero__text" href="https://www.home-assistant.io"> <a className={styles.heroText} href="https://www.home-assistant.io">
Not a developer? Go to the normal website Not a developer? Go to the normal website
</a> </a>
</p> </p>
</div> </div>
</div>
</div>
</header> </header>
<main> <main>
{features && features.length && ( {features && features.length && (

View File

@ -12,10 +12,20 @@
.heroTitle { .heroTitle {
font-size: 3rem; font-size: 3rem;
color: #ffffff;
} }
.heroTagline { .heroTagline {
font-size: 1.4rem; font-size: 1.4rem;
color: #ffffff;
}
.heroLogo {
max-height: 16em;
}
a.heroText{
color: #ffffff;
} }
@media screen and (max-width: 966px) { @media screen and (max-width: 966px) {