diff --git a/docusaurus.config.ts b/docusaurus.config.ts index 5e84a6a94..99d965cea 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -64,7 +64,7 @@ const config: Config = { title: "", logo: { alt: "QuantStack Logo", - src: "img/quantstack/logo-website.svg" + src: "img/quantstack/logo-website.svg", }, items: [ @@ -131,97 +131,10 @@ const config: Config = { ], }, - footer: { - links: [ - { - title: " ", - items: [ - { - label: " ", - className: "astronaut-footer", - href: "/home", - }, - ], - }, - - { - title: "Follow QuantStack on", - items: [ - { - label: "GitHub", - className: "github-icon", - href: "https://github.com/QuantStack", - }, - { - label: "LinkedIn", - className: "linkedin-icon", - href: "https://www.linkedin.com/company/quantstack/mycompany/", - }, - { - label: "X", - className: "x-icon", - href: "https://twitter.com/QuantStack", - }, - ], - }, - { - title: "Menu ", - items: [ - { - label: "Home", - href: "/home/", - }, - { - label: "Projects", - href: "/projects/", - }, - { - label: "Services", - href: "/services/", - }, - { - label: "About", - href: "/about/", - }, - { - label: "Careers", - href: "/careers/", - }, - { - label: "Blog", - href: "/blog/", - }, - ], - }, - - - { - title: "QuantStack office ", - items: [ - { - html: ` - -
- 16, avenue Curti
- 94100 Saint-Maur-des-Fossés
- France -
- - `, - }, - ], - }, - ], - - copyright: copyright, - }, - - - colorMode: { - defaultMode: 'light', - disableSwitch: true, - respectPrefersColorScheme: false, - + colorMode: { + defaultMode: "light", + disableSwitch: true, + respectPrefersColorScheme: false, }, prism: { diff --git a/src/components/footer/Footer.tsx b/src/components/footer/Footer.tsx new file mode 100644 index 000000000..9d6cfe25d --- /dev/null +++ b/src/components/footer/Footer.tsx @@ -0,0 +1,106 @@ +import Link from "@docusaurus/Link"; +import styles from "./styles.module.css"; +import GHPicture from "@site/static/img/socialmedias/GH.svg"; +import LinkedInPicture from "@site/static/img/socialmedias/LinkedIn.svg"; +import XPicture from "@site/static/img/socialmedias/X.svg"; + +export function SocialMediasQuantStack() { + return ( +
+ Follow us on
+
+ {} + + {} + + {} +
+
+ ); +} + +export default function Footer() { + return ( +
+
+
+ +
+
+
+
+ Menu
+
+
+
+
    +
  • + Home +
  • + +
  • + Projects +
  • +
  • + About us +
  • +
+
+
+
    +
  • + Services +
  • +
  • + Careers +
  • +
  • + Blog +
  • +
+
+
+
+
+ +
+
+
+ QuantStack office
+ 16, avenue Curti
+ 94100 Saint-Maur-des-Fossés
+ France +
+
+
+ +
+ + +
+
+ QuantStack office
+ 16, avenue Curti
+ 94100 Saint-Maur-des-Fossés
+ France +
+
+
+
+ +
+
+ Copyright © 2024 · QuantStack website · Built with Docusaurus +
+
+
+ ); +} diff --git a/src/components/footer/styles.module.css b/src/components/footer/styles.module.css new file mode 100644 index 000000000..6b0cc7760 --- /dev/null +++ b/src/components/footer/styles.module.css @@ -0,0 +1,36 @@ +.footer_container { + background-color: var(--ifm-color-primary-p1); + padding: var(--ifm-spacing-xl) var(--ifm-spacing-2xl) 0 var(--ifm-spacing-2xl); +} + +.copyright_container { + text-align: center; + padding-bottom: var(--ifm-spacing-lg); +} + +@media only screen and (max-width: 996px) { + /*Mobile*/ + .menu_container { + display: none; + } + + .col_social_media_desktop { + display: none; + } + + .col_address_desktop { + display: none; + } +} + +@media only screen and (min-width: 996px) { + /*Desktop*/ + + .col_social_media_mobile { + display: none; + } + + .col_social_media_and_address_mobile { + display: none; + } +} diff --git a/src/components/home/styles.module.css b/src/components/home/styles.module.css index dd56629a1..0021a9d68 100644 --- a/src/components/home/styles.module.css +++ b/src/components/home/styles.module.css @@ -1,3 +1,4 @@ + @media only screen and (max-width: 996px) { /*Mobile*/ .link_to { diff --git a/src/css/custom.css b/src/css/custom.css index 600c375fe..5eeaa778b 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -69,6 +69,11 @@ justify-content: center; } +.flex-horizontally-centered { + display: flex; + justify-content: center; +} + .horizontally-centered { justify-content: center; } @@ -95,10 +100,6 @@ ul { } /***footer*****/ -.address { - color: var(--ifm-text-color-footer); -} - .footer__item { color: var(--ifm-text-color-footer); } @@ -148,10 +149,8 @@ ul { .footer-astronaut { display: flex; - text-align: left; - margin-right: var(--ifm-spacing-lg); - width: 200px; - height: 200px; + width: 35px; + height: 35px; padding: 10px; } diff --git a/src/pages/about.tsx b/src/pages/about.tsx index 95998afb9..aa64f34a8 100644 --- a/src/pages/about.tsx +++ b/src/pages/about.tsx @@ -2,12 +2,14 @@ import Layout from "@theme/Layout"; import useDocusaurusContext from "@docusaurus/useDocusaurusContext"; import {About} from "../components/about"; import BrowserOnly from "@docusaurus/BrowserOnly"; +import Footer from "../components/footer/Footer"; export default function AboutPage(): JSX.Element { const { siteConfig } = useDocusaurusContext(); return ( {() => } +