From a7b1255d85e5b5afa99cbc5be9617f56bedc1ce6 Mon Sep 17 00:00:00 2001 From: Anton Titovets Date: Wed, 6 Mar 2024 11:09:18 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D1=8F=20=D0=BF=D0=BE=20=D0=BE=D1=84=D0=BE=D1=80=D0=BC?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=D0=B8=D1=8E=20=D0=B4=D0=BE=D0=BA=D1=83=D0=BC?= =?UTF-8?q?=D0=B5=D0=BD=D1=82=D0=B0=D1=86=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/docusaurus.config.js | 10 ++++++++-- docs/src/css/custom.css | 32 ++++++++++++++------------------ docs/src/pages/index.js | 16 +++++++++++++--- docs/src/pages/index.module.css | 10 ++++++++++ docs/static/img/logo.svg | 3 +++ 5 files changed, 48 insertions(+), 23 deletions(-) create mode 100644 docs/static/img/logo.svg diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index dc1dcec89..fe65071ce 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -51,6 +51,12 @@ const config = { ({ // Replace with your project's social card + colorMode: { + defaultMode: 'light', + disableSwitch: true, + respectPrefersColorScheme: false, + }, + navbar: { title: 'Открытый пакет интеграций', logo: { @@ -73,7 +79,7 @@ const config = { ], }, footer: { - style: 'dark', + style: 'light', links: [ { title: 'Документация', @@ -98,7 +104,7 @@ const config = { }, prism: { theme: prismThemes.github, - darkTheme: prismThemes.dracula, + darkTheme: prismThemes.github, additionalLanguages: ['json','bsl'] }, }), diff --git a/docs/src/css/custom.css b/docs/src/css/custom.css index c8bf61dc0..ede7e319d 100644 --- a/docs/src/css/custom.css +++ b/docs/src/css/custom.css @@ -6,25 +6,21 @@ /* You can override the default Infima variables here. */ :root { - --ifm-color-primary: #007773; - --ifm-color-primary-dark: #002827; - --ifm-color-primary-darker: #002827; - --ifm-color-primary-darkest: #002827; - --ifm-color-primary-light: #002827; - --ifm-color-primary-lighter: #002827; - --ifm-color-primary-lightest:#002827; + --ifm-color-primary: #ffffff; + --ifm-color-primary-dark: #ffffff; + --ifm-color-primary-darker: #ffffff; + --ifm-color-primary-darkest: #ffffff; + --ifm-color-primary-light: #ffffff; + --ifm-color-primary-lighter: #ffffff; + --ifm-color-primary-lightest:#ffffff; --ifm-code-font-size: 95%; - --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3); + --docusaurus-highlighted-code-line-bg: rgba(255, 255, 255, 0.3); } -/* For readability concerns, you should choose a lighter palette in dark mode. */ -[data-theme='dark'] { - --ifm-color-primary: #ffbe08; - --ifm-color-primary-dark: #F1AE07; - --ifm-color-primary-darker: #F1AE07; - --ifm-color-primary-darkest: #F1AE07; - --ifm-color-primary-light: #F1AE07; - --ifm-color-primary-lighter: #F1AE07; - --ifm-color-primary-lightest: #F1AE07; - --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1); +.menu__link--active, .menu__link--active:hover{ + color: black; } + +.table-of-contents__link, .table-of-contents__link:hover, .table-of-contents__link--active, .table-of-contents__link--active:hover{ + color: black; +} \ No newline at end of file diff --git a/docs/src/pages/index.js b/docs/src/pages/index.js index 37a6c3c68..a92eae93e 100644 --- a/docs/src/pages/index.js +++ b/docs/src/pages/index.js @@ -12,16 +12,26 @@ function HomepageHeader() { return (
+ + + {siteConfig.title}

{siteConfig.tagline}

- - Начать + Документация +
+
+ Релизы + +
diff --git a/docs/src/pages/index.module.css b/docs/src/pages/index.module.css index 9f71a5da7..2aeb3e95e 100644 --- a/docs/src/pages/index.module.css +++ b/docs/src/pages/index.module.css @@ -8,6 +8,7 @@ text-align: center; position: relative; overflow: hidden; + color: black; } @media screen and (max-width: 996px) { @@ -21,3 +22,12 @@ align-items: center; justify-content: center; } + +.button{ + margin: 10px; +} + +.biglogo{ + width: 20%; + height: 20%; +} \ No newline at end of file diff --git a/docs/static/img/logo.svg b/docs/static/img/logo.svg new file mode 100644 index 000000000..afe2ef04b --- /dev/null +++ b/docs/static/img/logo.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file