diff --git a/docusaurus.config.js b/docusaurus.config.js index 743f45e274acbe63e30704248f497ffa82ce6f2a..07a360f7af8319f70e5d88e11a7edb97ab584fd1 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -49,7 +49,7 @@ const config = { respectPrefersColorScheme: false, }, navbar: { - hideOnScroll: true, + hideOnScroll: false, logo: { alt: 'Lydra Logo', src: 'img/logo_lydra.svg', @@ -58,7 +58,8 @@ const config = { { to: '/', label: 'Home', - position: 'right' + position: 'right', + activeBaseRegex: '^/$' }, { type: 'dropdown', @@ -112,6 +113,7 @@ const config = { { label: 'L\'équipe', to: '/#team', + activeBasePath: '/#' }, { label: 'Nos inspirations', diff --git a/src/components/TestimoniesCarousel/index.js b/src/components/TestimoniesCarousel/index.js index 734c5c5c3cda003eaa81ae04ac89dcf06f8e77f4..b7b3b363bd91f47f2bd8cb7d507d19bf2c108729 100644 --- a/src/components/TestimoniesCarousel/index.js +++ b/src/components/TestimoniesCarousel/index.js @@ -31,7 +31,7 @@ export default function TestimoniesCarousel() { accessibility: true, nextArrow: <SampleNextArrow />, prevArrow: <SamplePrevArrow />, - infinite: false, + infinite: true, autoplay: true, dots: true, speed: 500, diff --git a/src/css/custom.css b/src/css/custom.css index 126dabcb91add5bb5d276dbe954f886baba1450a..cf2a4860070c6fefcf1cce582f9a31d105004609 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -41,8 +41,6 @@ /* For readability concerns, you should choose a lighter palette in dark mode. */ [data-theme='dark'] { - --ifm-navbar-background-color: transparent; - --ifm-color-primary: #f15a22; --ifm-color-primary-dark: #e94a0f; --ifm-color-primary-darker: #dc460e; diff --git a/src/theme/Navbar/Layout/index.js b/src/theme/Navbar/Layout/index.js index ad72f0a8a5cb4f79d8cec21f03415e35719d2f61..dbf3a808c66d814420fbd236da30fcda87149065 100644 --- a/src/theme/Navbar/Layout/index.js +++ b/src/theme/Navbar/Layout/index.js @@ -6,7 +6,8 @@ import { useNavbarMobileSidebar, } from '@docusaurus/theme-common/internal'; import NavbarMobileSidebar from '@theme/Navbar/MobileSidebar'; -import styles from './styles.module.css'; + + function NavbarBackdrop(props) { @@ -19,6 +20,7 @@ function NavbarBackdrop(props) { ); } export default function NavbarLayout({children}) { + const { navbar: {hideOnScroll, style}, } = useThemeConfig(); diff --git a/src/theme/Navbar/Layout/styles.module.css b/src/theme/Navbar/Layout/styles.module.css deleted file mode 100644 index fe0268363885606e1763118f38a26c9316383125..0000000000000000000000000000000000000000 --- a/src/theme/Navbar/Layout/styles.module.css +++ /dev/null @@ -1,8 +0,0 @@ -.navbarHideable { - transition: var(--ifm-transition-fast) ease; -} - -.navbarHidden { - background-color: var(--ifm-background-surface-color); - box-shadow: var(--ifm-navbar-shadow) -}