Skip to content

Commit

Permalink
docs: update landing assets for dark mode (#541)
Browse files Browse the repository at this point in the history
  • Loading branch information
scarletteliza committed Nov 1, 2022
1 parent 1141e22 commit c77f85a
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 14 deletions.
2 changes: 1 addition & 1 deletion site/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const config = {
navbar: {
logo: {
alt: 'Very Good CLI Logo',
src: 'img/logo.svg',
src: 'img/cli_icon.svg',
},
items: [
{
Expand Down
4 changes: 2 additions & 2 deletions site/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ import styles from './index.module.css';

function HomepageHeader() {
const { siteConfig } = useDocusaurusContext();
const { colorMode } = useColorMode();
return (
<header className={clsx('hero', styles.heroBanner)}>
<div className="container">
<img
className={clsx(styles.heroLogo)}
src="img/logo.svg"
src={colorMode == 'dark' ? 'img/logo_dark.svg' : 'img/logo.svg'}
alt="CLI Logo"
/>
<p className="hero__subtitle">{siteConfig.tagline}</p>
Expand Down Expand Up @@ -51,7 +52,6 @@ function HomepageCTA() {
}

function HomepageHeroImage() {
const { colorMode } = useColorMode();
return (
<img
className={clsx(styles.heroImage)}
Expand Down
13 changes: 13 additions & 0 deletions site/static/img/cli_icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 13 additions & 11 deletions site/static/img/icon_best.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit c77f85a

Please sign in to comment.