diff --git a/source/sites/mon-entreprise.fr/App.js b/source/sites/mon-entreprise.fr/App.js index a9dfdb66e..0ddc020d1 100644 --- a/source/sites/mon-entreprise.fr/App.js +++ b/source/sites/mon-entreprise.fr/App.js @@ -17,6 +17,7 @@ import Tracker, { devTracker } from '../../Tracker' import { getSessionStorage, inIframe } from '../../utils' import './App.css' import Footer from './layout/Footer/Footer' +import Header from './layout/Header' import trackSimulatorActions from './middlewares/trackSimulatorActions' import CompanyIndex from './pages/Company' import Couleur from './pages/Dev/Couleur' @@ -80,6 +81,7 @@ function InFranceRoute({ basename, language }) { let RouterSwitch = () => { return ( <> +
diff --git a/source/sites/mon-entreprise.fr/layout/Header.js b/source/sites/mon-entreprise.fr/layout/Header.js new file mode 100644 index 000000000..f0c6412ae --- /dev/null +++ b/source/sites/mon-entreprise.fr/layout/Header.js @@ -0,0 +1,46 @@ +import { SitePathsContext } from 'Components/utils/withSitePaths'; +import logoEnSvg from 'Images/logo-mycompany.svg'; +import logoSvg from 'Images/logo.svg'; +import marianneSvg from 'Images/marianne.svg'; +import urssafSvg from 'Images/urssaf.svg'; +import React, { useContext } from 'react'; +import { useTranslation } from 'react-i18next'; +import { Link } from 'react-router-dom'; + +export default function Header() { + const sitePaths = useContext(SitePathsContext) + const { i18n: { language } } = useTranslation(); + return ( +
+ + logo mon-entreprise.fr + + ) +} \ No newline at end of file diff --git a/source/sites/mon-entreprise.fr/pages/Gérer/Home.js b/source/sites/mon-entreprise.fr/pages/Gérer/Home.js index 667c47fb9..327bdaab2 100644 --- a/source/sites/mon-entreprise.fr/pages/Gérer/Home.js +++ b/source/sites/mon-entreprise.fr/pages/Gérer/Home.js @@ -60,7 +60,7 @@ export default function SocialSecurity() { Vous souhaitez vous verser un revenu ou embaucher ?
Vous aurez à payer des cotisations et des impôts.
- Pour anticiper leur montant, nous avons conçu des simulateurs adaptés à votre situation. + Anticipez leurs montants grâce aux simulateurs adaptés à votre situation.

} diff --git a/source/sites/mon-entreprise.fr/pages/Landing/Landing.css b/source/sites/mon-entreprise.fr/pages/Landing/Landing.css index 44ab5cd1e..1cd5e50c5 100644 --- a/source/sites/mon-entreprise.fr/pages/Landing/Landing.css +++ b/source/sites/mon-entreprise.fr/pages/Landing/Landing.css @@ -1,22 +1,5 @@ -.landing-header { - display: flex; - align-items: center; -} -.landing-header__institutional-logo, -.landing-header__brand-logo { - height: 4rem; -} -.landing-header__brand-logo img { - padding: 0.5rem 0; - height: 100%; -} -.landing-header__institutional-logo img { - padding: 1rem; - height: 100%; -} .landing-title { - margin-top: 1rem; margin-bottom: 1rem; display: flex; align-items: center; diff --git a/source/sites/mon-entreprise.fr/pages/Landing/Landing.js b/source/sites/mon-entreprise.fr/pages/Landing/Landing.js index 2eb9f7d6c..753636e9c 100644 --- a/source/sites/mon-entreprise.fr/pages/Landing/Landing.js +++ b/source/sites/mon-entreprise.fr/pages/Landing/Landing.js @@ -1,51 +1,17 @@ -/* @flow */ - import { T } from 'Components' -import withSitePaths from 'Components/utils/withSitePaths' -import logoEnSvg from 'Images/logo-mycompany.svg' +import { SitePathsContext } from 'Components/utils/withSitePaths' import logoSvg from 'Images/logo.svg' -import marianneSvg from 'Images/marianne.svg' -import urssafSvg from 'Images/urssaf.svg' -import React from 'react' +import React, { useContext } from 'react' import emoji from 'react-easy-emoji' -import { useTranslation } from 'react-i18next' import { Link } from 'react-router-dom' import Footer from '../../layout/Footer/Footer' import illustrationSvg from './illustration.svg' import './Landing.css' -import type { SitePaths } from 'Components/utils/withSitePaths' - -type Props = { - sitePaths: SitePaths -} -export default withSitePaths(({ sitePaths }: Props) => { - const { - i18n: { language } - } = useTranslation() +export default function Landing() { + const sitePaths = useContext(SitePathsContext); return (
-
- - logo mon-entreprise.fr - -
logo mon-entreprise.fr {
) -}) +}