Skip to content

Commit

Permalink
style: adjust adjust colors and toggling icons
Browse files Browse the repository at this point in the history
  • Loading branch information
iqwrwq committed Feb 23, 2023
1 parent 31b14fc commit 677a2f8
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
11 changes: 9 additions & 2 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const config = {
favicon: 'img/favicon.ico',

// Set the production url of your site here
url: 'https://your-docusaurus-test-site.com',
url: 'https://java-develop-pedia.vercel.app',
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: '/',
Expand Down Expand Up @@ -62,12 +62,15 @@ const config = {
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
// Replace with your project's social card
image: 'img/Java-Develop-Pedia-logos_white.jpg',
image: 'img/logo.png',
navbar: {
title: 'Java-Develop-Pedia',
logo: {
alt: 'Java-Develop-Pedia',
src: 'img/logo.png',
srcDark: 'img/logoDark.png',
width: 40,
height: 40,
},
items: [
{to: '/roadmap', label: 'Roadmap', position: 'left'},
Expand All @@ -79,6 +82,10 @@ const config = {
},
],
},
colorMode: {
defaultMode: 'dark',
disableSwitch: false,
},
footer: {
style: 'dark',
links: [
Expand Down
4 changes: 2 additions & 2 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

/* You can override the default Infima variables here. */
:root {
--ifm-color-primary: #e87121;
--ifm-color-primary: #6257f8;
--ifm-color-primary-dark: #29784c;
--ifm-color-primary-darker: #277148;
--ifm-color-primary-darkest: #205d3b;
Expand All @@ -19,7 +19,7 @@

/* For readability concerns, you should choose a lighter palette in dark mode. */
[data-theme='dark'] {
--ifm-color-primary: #fdb07d;
--ifm-color-primary: #9189FA;
--ifm-color-primary-dark: #21af90;
--ifm-color-primary-darker: #1fa588;
--ifm-color-primary-darkest: #1a8870;
Expand Down
1 change: 0 additions & 1 deletion src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import Link from '@docusaurus/Link';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import Layout from '@theme/Layout';
import HomepageFeatures from '@site/src/components/HomepageFeatures';

import styles from './index.module.css';

function HomepageHeader() {
Expand Down
Binary file modified static/img/favicon.ico
Binary file not shown.
Binary file added static/img/logoDark.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 677a2f8

Please sign in to comment.