diff --git a/docusaurus.config.js b/docusaurus.config.js index 7b207f5..e552f74 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -22,8 +22,8 @@ const config = { // GitHub pages deployment config. // If you aren't using GitHub pages, you don't need these. - organizationName: 'facebook', // Usually your GitHub org/user name. - projectName: 'docusaurus', // Usually your repo name. + organizationName: 'wirediv', // Usually your GitHub org/user name. + projectName: 'ai-course', // Usually your repo name. onBrokenLinks: 'throw', onBrokenMarkdownLinks: 'warn', @@ -46,7 +46,7 @@ const config = { // Please change this to your repo. // Remove this to remove the "edit this page" links. editUrl: - 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/', + 'https://github.com/wirediv/ai-course/tree/main/', }, blog: { showReadingTime: true, @@ -57,7 +57,7 @@ const config = { // Please change this to your repo. // Remove this to remove the "edit this page" links. editUrl: - 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/', + 'https://github.com/wirediv/ai-course/tree/main/', // Useful options to enforce blogging best practices onInlineTags: 'warn', onInlineAuthors: 'warn', @@ -95,7 +95,7 @@ const config = { }, {to: '/blog', label: 'Blog', position: 'left'}, { - href: 'https://github.com/facebook/docusaurus', + href: 'https://github.com/wirediv/ai-course', label: 'GitHub', position: 'right', }, diff --git a/src/css/custom.css b/src/css/custom.css index 2bc6a4c..e6788b6 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -6,25 +6,25 @@ /* You can override the default Infima variables here. */ :root { - --ifm-color-primary: #2e8555; - --ifm-color-primary-dark: #29784c; - --ifm-color-primary-darker: #277148; - --ifm-color-primary-darkest: #205d3b; - --ifm-color-primary-light: #33925d; - --ifm-color-primary-lighter: #359962; - --ifm-color-primary-lightest: #3cad6e; + --ifm-color-primary: #398aab; /* Base Blue-Teal */ + --ifm-color-primary-dark: #327c98; /* Slightly Darker */ + --ifm-color-primary-darker: #2c6f87; /* Muted Dark */ + --ifm-color-primary-darkest: #22586b; /* Deep Dark Teal */ + --ifm-color-primary-light: #4c9bc0; /* Slightly Lighter */ + --ifm-color-primary-lighter: #69accd; /* Softer Blue-Teal */ + --ifm-color-primary-lightest: #98cde4; /* Very Light Sky Blue */ --ifm-code-font-size: 95%; --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1); } /* For readability concerns, you should choose a lighter palette in dark mode. */ [data-theme='dark'] { - --ifm-color-primary: #25c2a0; - --ifm-color-primary-dark: #21af90; - --ifm-color-primary-darker: #1fa588; - --ifm-color-primary-darkest: #1a8870; - --ifm-color-primary-light: #29d5b0; - --ifm-color-primary-lighter: #32d8b4; - --ifm-color-primary-lightest: #4fddbf; + --ifm-color-primary: #4195b6; /* Base Blue-Teal */ + --ifm-color-primary-dark: #327c98; /* Muted Dark */ + --ifm-color-primary-darker: #2b6e86; /* Deeper Blue */ + --ifm-color-primary-darkest: #1e5466; /* Darkest Accent */ + --ifm-color-primary-light: #4c9bc0; /* Brighter Accent */ + --ifm-color-primary-lighter: #68aecf; /* Softer Blue */ + --ifm-color-primary-lightest: #8fc8e0; /* Glowy Light Blue */ --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3); } diff --git a/src/pages/login.js b/src/pages/login.js index 1ed7b1f..2e45320 100644 --- a/src/pages/login.js +++ b/src/pages/login.js @@ -27,7 +27,7 @@ export default function Login() { alignItems: "center", marginRight: "auto", marginLeft: "auto", - flexDirection: 'column' + flexDirection: 'column', }} >
@@ -80,7 +83,7 @@ export default function Login() { padding: "10px", borderRadius: "5px", border: "none", - backgroundColor: "#fd5367", + backgroundColor: "var(--ifm-color-primary)", color: "white", marginTop: '1rem' }} diff --git a/src/theme/ColorModeToggle/index.js b/src/theme/ColorModeToggle/index.js index 302ca28..4c9b990 100644 --- a/src/theme/ColorModeToggle/index.js +++ b/src/theme/ColorModeToggle/index.js @@ -1,14 +1,64 @@ -import React from 'react'; +import React, { useRef} from 'react'; import ColorModeToggle from '@theme-original/ColorModeToggle'; import {logout} from '@site/src/pocketbase'; export default function ColorModeToggleWrapper(props) { + const dialogRef = useRef(null) return ( <> - logout(() => window.location.reload())}> + dialogRef.current.showModal()} style={{background: 'var(--ifm-color-primary)', color: 'white', paddingRight: 10, paddingLeft: 10, paddingBottom: 2, borderRadius: 5, marginLeft: 15, cursor: "pointer"}}> Logout + + +

Are you sure?

+ {/* Close Button */} + + {/* Close Button */} + +
); } \ No newline at end of file