Skip to content

Commit

Permalink
Updated cover page styles
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Nickson <mnickson@sidingsmedia.com>
  • Loading branch information
Computroniks committed Oct 29, 2023
1 parent 0b48a45 commit f24d015
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
8 changes: 8 additions & 0 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,14 @@ SPDX-License-Identifier: MIT
--ifm-footer-title-color: var(--ifm-color-white);
}

.hero__img {
max-height: 20rem;
}

.hero__title {
color: #FFFFFF;
}

/* Sidebar Method labels */
.api-method>.menu__link {
align-items: center;
Expand Down
18 changes: 7 additions & 11 deletions src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,14 @@ import HomepageFeatures from "@site/src/components/HomepageFeatures";
function HomepageHeader() {
const { siteConfig } = useDocusaurusContext();
return (
<header className={clsx("hero hero--primary", styles.heroBanner)}>
<header className={clsx("hero hero--secondary", styles.heroBanner)}>
<div className="container">
<h1 className="hero__title">{siteConfig.title}</h1>
<p className="hero__subtitle">{siteConfig.tagline}</p>
<div className={styles.buttons}>
<Link
className="button button--secondary button--lg"
to="/docs/category/api"
>
API Documentation
</Link>
</div>
<img
className="hero__img"
src="/logos/rendered/logo-white-vertical.svg"
alt="Sidings Media Logo"
/>
<h1 className="hero__title">Documentation Portal</h1>
</div>
</header>
);
Expand Down

0 comments on commit f24d015

Please sign in to comment.