1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-01-12 04:34:10 +02:00

Изменения по оформлению документации

This commit is contained in:
Anton Titovets 2024-03-06 11:09:18 +03:00
parent f214a0e2bd
commit a7b1255d85
5 changed files with 48 additions and 23 deletions

View File

@ -51,6 +51,12 @@ const config = {
({ ({
// Replace with your project's social card // Replace with your project's social card
colorMode: {
defaultMode: 'light',
disableSwitch: true,
respectPrefersColorScheme: false,
},
navbar: { navbar: {
title: 'Открытый пакет интеграций', title: 'Открытый пакет интеграций',
logo: { logo: {
@ -73,7 +79,7 @@ const config = {
], ],
}, },
footer: { footer: {
style: 'dark', style: 'light',
links: [ links: [
{ {
title: 'Документация', title: 'Документация',
@ -98,7 +104,7 @@ const config = {
}, },
prism: { prism: {
theme: prismThemes.github, theme: prismThemes.github,
darkTheme: prismThemes.dracula, darkTheme: prismThemes.github,
additionalLanguages: ['json','bsl'] additionalLanguages: ['json','bsl']
}, },
}), }),

View File

@ -6,25 +6,21 @@
/* You can override the default Infima variables here. */ /* You can override the default Infima variables here. */
:root { :root {
--ifm-color-primary: #007773; --ifm-color-primary: #ffffff;
--ifm-color-primary-dark: #002827; --ifm-color-primary-dark: #ffffff;
--ifm-color-primary-darker: #002827; --ifm-color-primary-darker: #ffffff;
--ifm-color-primary-darkest: #002827; --ifm-color-primary-darkest: #ffffff;
--ifm-color-primary-light: #002827; --ifm-color-primary-light: #ffffff;
--ifm-color-primary-lighter: #002827; --ifm-color-primary-lighter: #ffffff;
--ifm-color-primary-lightest:#002827; --ifm-color-primary-lightest:#ffffff;
--ifm-code-font-size: 95%; --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. */ .menu__link--active, .menu__link--active:hover{
[data-theme='dark'] { color: black;
--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);
} }
.table-of-contents__link, .table-of-contents__link:hover, .table-of-contents__link--active, .table-of-contents__link--active:hover{
color: black;
}

View File

@ -12,16 +12,26 @@ function HomepageHeader() {
return ( return (
<header className={clsx('hero hero--primary', styles.heroBanner)}> <header className={clsx('hero hero--primary', styles.heroBanner)}>
<div className="container"> <div className="container">
<img src="/img/logo.svg" className={styles.biglogo}/>
<Heading as="h1" className="hero__title"> <Heading as="h1" className="hero__title">
{siteConfig.title} {siteConfig.title}
</Heading> </Heading>
<p className="hero__subtitle">{siteConfig.tagline}</p> <p className="hero__subtitle">{siteConfig.tagline}</p>
<div className={styles.buttons}> <div className={styles.buttons}>
<Link <div className={styles.button}><Link
className="button button--secondary button--lg" className="button button--secondary button--bg"
to="/docs/Nachalo-raboty"> to="/docs/Nachalo-raboty">
Начать Документация
</Link> </Link>
</div>
<div className={styles.button}><Link
className="button button--secondary button--bg"
to="https://github.com/Bayselonarrend/OpenIntegrations/releases">
Релизы
</Link>
</div>
</div> </div>
</div> </div>
</header> </header>

View File

@ -8,6 +8,7 @@
text-align: center; text-align: center;
position: relative; position: relative;
overflow: hidden; overflow: hidden;
color: black;
} }
@media screen and (max-width: 996px) { @media screen and (max-width: 996px) {
@ -21,3 +22,12 @@
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }
.button{
margin: 10px;
}
.biglogo{
width: 20%;
height: 20%;
}

3
docs/static/img/logo.svg vendored Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 294 KiB