Skip to content

Commit

Permalink
feat: 🎸 dark mode logo
Browse files Browse the repository at this point in the history
  • Loading branch information
futantan committed Dec 6, 2023
1 parent 568ef3a commit d15bb6e
Show file tree
Hide file tree
Showing 7 changed files with 80 additions and 58 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
.next
node_modules

.DS_Store
6 changes: 0 additions & 6 deletions components/counters.module.css

This file was deleted.

24 changes: 0 additions & 24 deletions components/counters.tsx

This file was deleted.

59 changes: 59 additions & 0 deletions components/logo.tsx

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions pages/_app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import './styles.css';

// This default export is required in a new `pages/_app.js` file.
export default function MyApp({ Component, pageProps }) {
return <Component {...pageProps} />;
}
11 changes: 11 additions & 0 deletions pages/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.white-logo {
display: none;
}

.dark .white-logo {
display: block;
}

.dark .dark-logo {
display: none;
}
30 changes: 2 additions & 28 deletions theme.config.tsx

Large diffs are not rendered by default.

0 comments on commit d15bb6e

Please sign in to comment.