Skip to content

Commit

Permalink
UI: change cncf logo and suit for dark mode (KusionStack#234)
Browse files Browse the repository at this point in the history
  • Loading branch information
amyXia1994 authored May 29, 2023
1 parent 5f09830 commit 52a40c2
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import Layout from '@theme/Layout'
import clsx from 'clsx'
import React from 'react'
import { ExampleScroller } from "../components/ExampleScroller"
import ThemedImage from '@theme/ThemedImage';

import whoIsUsing from '../data/whoIsUsing'
import styles from './index.module.css'
Expand Down Expand Up @@ -210,7 +211,14 @@ function Home() {
</h2>
<br/>
<div>
<img src="img/cncf-logo.png" />
<ThemedImage
className={styles.cncfLogo}
alt="CNCF themed image"
sources={{
light: useBaseUrl('/img/cncf-color.png'),
dark: useBaseUrl('/img/cncf-white.png'),
}}
/>
</div>
</div>
</div>
Expand Down
4 changes: 4 additions & 0 deletions src/pages/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@
height: 96px;
}

[data-theme='dark'] .cncfLogo {
height: 75px;
}

@media screen and (max-width: 768px) {
.cncfLogo {
height: 64px;
Expand Down
Binary file added static/img/cncf-color.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed static/img/cncf-logo.png
Binary file not shown.
Binary file added static/img/cncf-white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 52a40c2

Please sign in to comment.