JSON.stringify(args),
+ Intl.NumberFormat
+)
const Montant = ({
language,
diff --git a/source/components/ui/Toggle.css b/source/components/ui/Toggle.css
index 06f1c0c22..dd1ff9cbd 100644
--- a/source/components/ui/Toggle.css
+++ b/source/components/ui/Toggle.css
@@ -34,6 +34,7 @@
border-radius: 20px;
cursor: pointer;
box-shadow: 0 0 0px 1.5px rgb(41, 117, 209);
+ box-shadow: 0 0 0px 1.5px var(--colour);
transition: all 0.1s;
border: 0.5em solid white;
}
diff --git a/source/components/ui/index.css b/source/components/ui/index.css
index 990cf7004..cd643e1ee 100644
--- a/source/components/ui/index.css
+++ b/source/components/ui/index.css
@@ -47,16 +47,16 @@ button {
.ui__.container {
width: 100%;
- max-width: 800px;
+ max-width: 850px;
margin-right: auto;
margin-left: auto;
padding-right: 0.6rem;
padding-left: 0.6rem;
}
.ui__.container .ui__.full-width {
- margin: 0 calc((800px - 100vw) / 2);
+ margin: 0 calc((850px - 100vw) / 2);
}
-@media (max-width: 800px) {
+@media (max-width: 850px) {
.ui__.container .ui__.full-width {
margin: 0;
}
@@ -65,6 +65,7 @@ button {
.ui__.notice {
font-size: 85%;
color: rgba(0, 0, 0, 0.6);
+ color: var(--lighterInverseTextColour);
}
ul.ui__.no-bullet {
list-style: none;
diff --git a/source/components/utils/withColours.js b/source/components/utils/withColours.js
index ce626f746..a5c0ce303 100644
--- a/source/components/utils/withColours.js
+++ b/source/components/utils/withColours.js
@@ -65,7 +65,9 @@ const generateTheme = (themeColour?: ?string): ThemeColours => {
textColour = findContrastedTextColour(colour, true), // the 'simple' version feels better...
inverseTextColour = textColour === '#ffffff' ? '#000' : '#fff',
lightenTextColour = textColour =>
- textColour === '#ffffff' ? 'rgba(255, 255, 255, .85)' : '#333',
+ textColour === '#ffffff'
+ ? 'rgba(255, 255, 255, .6)'
+ : 'rgba(0, 0, 0, .6)',
lighterTextColour = lightenTextColour(textColour),
lighterInverseTextColour = lightenTextColour(inverseTextColour),
textColourOnWhite = textColour === '#ffffff' ? colour : '#333'
diff --git a/source/locales/en.yaml b/source/locales/en.yaml
index 5e88b1bd1..f094cd830 100644
--- a/source/locales/en.yaml
+++ b/source/locales/en.yaml
@@ -135,7 +135,7 @@ feedback:
form:
headline: Your feedback is valuable to us in order to continuously improve this site. What should we work on to better meet your expectations?
email: Your email (if you would like an answer from us)
- thanks: Thank for your feedback! You can contact us directly at <1> 1><2>contact@embauche.beta.gouv.fr2>
+ thanks: Thank for your feedback! You can contact us directly at <1> 1><2>contact@mon-entreprise.beta.gouv.fr2>
Janvier 2019: January 2019
d'aides: of aid
Oui: Yes
@@ -166,7 +166,7 @@ legalNotice:
title: Contact
content: >
<0>
- contact@embauche.beta.gouv.fr
+ contact@mon-entreprise.beta.gouv.fr
0>
Cette règle est la somme de: This rule is the sum of
@@ -282,7 +282,7 @@ formeJuridique:
titre: Which legal status should you choose for your company in France?
description: >
The French business law defines more than 20 possible legal statuses to declare a company with various acronyms and processes : SAS, SARL, SA, EIRL... This guide quickly helps you to find the right status for your company project in France.
- titre: Choose the legal status
+ titre: Create a company
incertain: Not sure about this status? Take our guide to help you choose
intro: 'The French business law defines more than 20 possible legal statuses to declare a company with various acronyms and processes : SAS, SARL, SA, EIRL... This guide will help you find quickly the right status for your needs.'
EI: Also called company in own name or company in a personal name. No capital contribution is necessary. Private wealth and corporate wealth are one.
@@ -295,6 +295,7 @@ formeJuridique:
SNC: The liability of the partners for the debts of the company is unified (one partner only can be sued for the entire debt) and indefinite (responsible on the entirety of their personnal wealth).
micro: The auto-entrepreneur is a sole proprietorship company, subject to a flat-rate scheme for the calculation of taxes and the payment of social security contributions.
micro-EIRL: The EIRL auto-entrepreneur is a sole proprietorship with limited liability, subject to a flat-rate scheme for the calculation of taxes and the payment of social security contributions.
+ entreprise-déjà-crée: I have already declared my company
Votre forme juridique: Your legal status
Créer une: Create a
@@ -423,6 +424,10 @@ Ce n'est pas mon entreprise: This is not my company
Simuler une embauche: Simulate a hire
Protection sociale: Social security
+Rémunération du dirigeant: Director's remuneration
+Simulateur de salaire: Employee salary simulation
+Exemples de simulation de salaire: Examples of salary simulations
+Quelques exemples de salaires: Some salary exemples
Embauche: Hiring process
Entreprise Individuelle: Individual Business
listeformejuridique:
@@ -433,7 +438,7 @@ statut du dirigeant:
description: This choice is important because it determines the director's Social Security scheme and coverage. Each option has legal implications, and leads to a different status when creating your company in France
titre: Defining the director's status
description: <0>This choice is important because it determines the director's Social Security scheme and coverage.0><1><0><0>Salaried employee:0> The company director joins and is covered by France’s general Social Security scheme. Social Security contributions are calculated on the basis of the executive's actual pay and are paid monthly. Although more expensive, this scheme offers full social protection (except unemployment).0><1><0>Self-employed:0> The company director joins and is covered by France’s self-employed scheme called « Sécurité sociale des indépendants ». Contributions due are generally calculated based on professional income as reported to the tax authorities. Although less expensive, this scheme provides basic social protection (additional options and private insurance are recommended).1>1>
-Assimilé salarié: Salaried
+Assimilé salarié: Assimilated salaried
Indépendant: Self-employed
gérant minoritaire:
page:
@@ -520,6 +525,8 @@ path:
selection: '/scheme-selection'
démarcheEmbauche:
index: '/hiring-process'
+ documentation:
+ exemples: '/examples'
Auto-entrepreneur en EIRL: Auto-entrepreneur with EIRL option
auto-entrepreneur-EIRL: auto-entrepreneur-EIRL
diff --git a/source/règles/base.yaml b/source/règles/base.yaml
index e4b8976a3..8ffba0e93 100644
--- a/source/règles/base.yaml
+++ b/source/règles/base.yaml
@@ -827,6 +827,7 @@
question: Quel est le montant des avantages en nature ?
période: flexible
suggestions:
+ aucun: 0
nourriture: 80
véhicule: 260
format: euros
@@ -1604,6 +1605,7 @@
cumuls: https://www.legisocial.fr/actualites-sociales/2068-comment-declarer-les-cotisations-dallocations-familiales-si-lentreprise-beneficie-du-regime-jei.html
applicable si: statut JEI
+ non applicable si: assimilé salarié
période: mois
formule:
# TODO - le plafonnement à 4,5 SMIC, précalculé pour 09/2017; cette approximation n'est bien sûr pas satisfaisante,
diff --git a/source/règles/externalized.yaml b/source/règles/externalized.yaml
index 134191e0d..74ac2b323 100644
--- a/source/règles/externalized.yaml
+++ b/source/règles/externalized.yaml
@@ -541,7 +541,7 @@ contrat salarié . salaire:
contrat salarié . salaire . brut de base:
titre.en: Gross salary
titre.fr: Salaire brut de base
- résumé.en: Written in the employment contract.
+ résumé.en: Written in the employment contract
résumé.fr: Inscrit dans le contrat de travail
question.en: What is the monthly gross salary?
question.fr: Quel est le salaire de base ?
@@ -749,7 +749,7 @@ contrat salarié . salaire . net:
titre.fr: Salaire net
question.en: What is the net salary?
question.fr: Quel est le salaire net ?
- résumé.en: Received by the employee.
+ résumé.en: Received by the employee
résumé.fr: Salaire net avant impôt
description.en: >
The gross salary minus the social contributions.
@@ -829,7 +829,7 @@ contrat salarié . rémunération . total:
titre.fr: Total chargé
question.en: 'What is the monthly remuneration, contributions included ?'
question.fr: Quel est la rémunération chargée ?
- résumé.en: Spent by the employer.
+ résumé.en: Spent by the employer
résumé.fr: Dépensé par l'employeur
description.en: >-
It is the gross salary, plus the employer contributions. It is the total
diff --git a/source/selectors/analyseSelectors.js b/source/selectors/analyseSelectors.js
index e63472139..c29a84dea 100644
--- a/source/selectors/analyseSelectors.js
+++ b/source/selectors/analyseSelectors.js
@@ -16,14 +16,14 @@ import {
add,
contains,
difference,
+ dissoc,
equals,
head,
intersection,
+ isEmpty,
isNil,
mergeDeepWith,
- pick,
- isEmpty,
- dissoc
+ pick
} from 'ramda'
import { getFormValues } from 'redux-form'
import { createSelector, createSelectorCreator, defaultMemoize } from 'reselect'
diff --git a/source/server.js b/source/server.js
index 9a8c61f95..af689d7d1 100644
--- a/source/server.js
+++ b/source/server.js
@@ -14,7 +14,7 @@ const rewrite = basename => ({
app.use(
history({
- rewrites: ['embauche', 'infrance', 'mon-entreprise'].map(rewrite)
+ rewrites: ['infrance', 'mon-entreprise'].map(rewrite)
})
)
diff --git a/source/sites/embauche.gouv.fr/App.js b/source/sites/embauche.gouv.fr/App.js
deleted file mode 100644
index 9d3e116b2..000000000
--- a/source/sites/embauche.gouv.fr/App.js
+++ /dev/null
@@ -1,123 +0,0 @@
-import PageFeedback from 'Components/Feedback/PageFeedback'
-import Mecanisms from 'Components/Mecanisms'
-import Route404 from 'Components/Route404'
-import RulePage from 'Components/RulePage'
-import DisableScroll from 'Components/utils/DisableScroll'
-import TrackPageView from 'Components/utils/TrackPageView'
-import { defaultTracker } from 'Components/utils/withTracker'
-import createRavenMiddleware from 'raven-for-redux'
-import Raven from 'raven-js'
-import React, { Component } from 'react'
-import { withTranslation } from 'react-i18next'
-import { Redirect, Route, Switch } from 'react-router-dom'
-import 'Ui/index.css'
-import Provider from '../../Provider'
-import {
- persistSimulation,
- retrievePersistedSimulation
-} from '../../storage/persistSimulation'
-import ReactPiwik from '../../Tracker'
-import { getIframeOption, inIframe } from '../../utils'
-import trackDomainActions from './middlewares/trackDomainActions'
-import About from './pages/About'
-import Contact from './pages/Contact'
-import Couleur from './pages/Couleur'
-import ExampleSituations from './pages/ExampleSituations'
-import { Header } from './pages/Header'
-import Home from './pages/Home'
-import IframeFooter from './pages/IframeFooter'
-import Integration from './pages/Integration'
-import IntegrationTest from './pages/IntegrationTest'
-import RulesList from './pages/RulesList'
-import sitePaths from './sitePaths'
-
-if (process.env.NODE_ENV === 'production') {
- Raven.config(
- 'https://9051375f856646d694943532caf2b45f@sentry.data.gouv.fr/18'
- ).install()
-}
-
-let tracker = defaultTracker
-if (process.env.NODE_ENV === 'production') {
- tracker = new ReactPiwik({
- url: 'stats.data.gouv.fr',
- siteId: 39,
- trackErrors: true
- })
-}
-
-if (process.env.NODE_ENV === 'production') {
- let integratorUrl = getIframeOption('integratorUrl')
- ReactPiwik.push([
- 'setCustomVariable',
- 1,
- 'urlPartenaire',
- decodeURIComponent(integratorUrl || location.origin),
- 'visit'
- ])
-}
-
-const middlewares = [createRavenMiddleware(Raven), trackDomainActions(tracker)]
-const paths = sitePaths()
-class EmbaucheRoute extends Component {
- render() {
- return (
-
-
- {!inIframe() && }
- {inIframe() && }
-
-
- {inIframe() && }
-
- )
- }
-}
-const RouterSwitch = withTranslation()(() => (
-
-
-
- (
-
-
-
- )}
- />
- (
-
-
-
- )}
- />
-
-
-
-
-
-
-
-
-
-
-))
-
-let ExportedApp = EmbaucheRoute
-
-if (process.env.NODE_ENV !== 'production') {
- const { hot } = require('react-hot-loader')
- ExportedApp = hot(module)(EmbaucheRoute)
-}
-
-export default ExportedApp
diff --git a/source/sites/embauche.gouv.fr/entry.js b/source/sites/embauche.gouv.fr/entry.js
deleted file mode 100644
index fd5198fdd..000000000
--- a/source/sites/embauche.gouv.fr/entry.js
+++ /dev/null
@@ -1,9 +0,0 @@
-import '@babel/polyfill'
-import 'iframe-resizer'
-import React from 'react'
-import { render } from 'react-dom'
-import App from './App'
-
-let anchor = document.querySelector('#js')
-
-render(
, anchor)
diff --git a/source/sites/embauche.gouv.fr/images/accueil/aides-creations.png b/source/sites/embauche.gouv.fr/images/accueil/aides-creations.png
deleted file mode 100644
index 4ece75552..000000000
Binary files a/source/sites/embauche.gouv.fr/images/accueil/aides-creations.png and /dev/null differ
diff --git a/source/sites/embauche.gouv.fr/images/accueil/api.svg b/source/sites/embauche.gouv.fr/images/accueil/api.svg
deleted file mode 100644
index 72ee7f721..000000000
--- a/source/sites/embauche.gouv.fr/images/accueil/api.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-
\ No newline at end of file
diff --git a/source/sites/embauche.gouv.fr/images/accueil/calculator.svg b/source/sites/embauche.gouv.fr/images/accueil/calculator.svg
deleted file mode 100644
index 95f7b03d3..000000000
--- a/source/sites/embauche.gouv.fr/images/accueil/calculator.svg
+++ /dev/null
@@ -1,6 +0,0 @@
-
\ No newline at end of file
diff --git a/source/sites/embauche.gouv.fr/images/accueil/carto.png b/source/sites/embauche.gouv.fr/images/accueil/carto.png
deleted file mode 100644
index 4af3559b4..000000000
Binary files a/source/sites/embauche.gouv.fr/images/accueil/carto.png and /dev/null differ
diff --git a/source/sites/embauche.gouv.fr/images/accueil/checklist.svg b/source/sites/embauche.gouv.fr/images/accueil/checklist.svg
deleted file mode 100644
index 44d740325..000000000
--- a/source/sites/embauche.gouv.fr/images/accueil/checklist.svg
+++ /dev/null
@@ -1,11 +0,0 @@
-
diff --git a/source/sites/embauche.gouv.fr/images/accueil/code.svg b/source/sites/embauche.gouv.fr/images/accueil/code.svg
deleted file mode 100644
index aa21ab12a..000000000
--- a/source/sites/embauche.gouv.fr/images/accueil/code.svg
+++ /dev/null
@@ -1,43 +0,0 @@
-
-
-
-
diff --git a/source/sites/embauche.gouv.fr/images/accueil/logo-SGMAP-fond-blanc.svg b/source/sites/embauche.gouv.fr/images/accueil/logo-SGMAP-fond-blanc.svg
deleted file mode 100644
index 8dfbb38b9..000000000
--- a/source/sites/embauche.gouv.fr/images/accueil/logo-SGMAP-fond-blanc.svg
+++ /dev/null
@@ -1,1230 +0,0 @@
-
-
diff --git a/source/sites/embauche.gouv.fr/images/accueil/logo-SGMAP-fond-noir.svg b/source/sites/embauche.gouv.fr/images/accueil/logo-SGMAP-fond-noir.svg
deleted file mode 100644
index 314a33754..000000000
--- a/source/sites/embauche.gouv.fr/images/accueil/logo-SGMAP-fond-noir.svg
+++ /dev/null
@@ -1,1419 +0,0 @@
-
-
diff --git a/source/sites/embauche.gouv.fr/images/accueil/logo-openfisca.svg b/source/sites/embauche.gouv.fr/images/accueil/logo-openfisca.svg
deleted file mode 100644
index 8cfb9cb72..000000000
--- a/source/sites/embauche.gouv.fr/images/accueil/logo-openfisca.svg
+++ /dev/null
@@ -1,46 +0,0 @@
-
-
-
\ No newline at end of file
diff --git a/source/sites/embauche.gouv.fr/images/accueil/logo_startup_etat.svg b/source/sites/embauche.gouv.fr/images/accueil/logo_startup_etat.svg
deleted file mode 100644
index c9fed7ab6..000000000
--- a/source/sites/embauche.gouv.fr/images/accueil/logo_startup_etat.svg
+++ /dev/null
@@ -1,79 +0,0 @@
-
-
-
-
\ No newline at end of file
diff --git a/source/sites/embauche.gouv.fr/images/accueil/pole-emploi.jpg b/source/sites/embauche.gouv.fr/images/accueil/pole-emploi.jpg
deleted file mode 100644
index e3b32d81e..000000000
Binary files a/source/sites/embauche.gouv.fr/images/accueil/pole-emploi.jpg and /dev/null differ
diff --git a/source/sites/embauche.gouv.fr/images/accueil/question_mark.svg b/source/sites/embauche.gouv.fr/images/accueil/question_mark.svg
deleted file mode 100644
index d1953e8b6..000000000
--- a/source/sites/embauche.gouv.fr/images/accueil/question_mark.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-
diff --git a/source/sites/embauche.gouv.fr/images/accueil/roues.svg b/source/sites/embauche.gouv.fr/images/accueil/roues.svg
deleted file mode 100644
index 7c7b6ea01..000000000
--- a/source/sites/embauche.gouv.fr/images/accueil/roues.svg
+++ /dev/null
@@ -1,49 +0,0 @@
-
-
\ No newline at end of file
diff --git a/source/sites/embauche.gouv.fr/images/accueil/simulateur-2017-raw.gif b/source/sites/embauche.gouv.fr/images/accueil/simulateur-2017-raw.gif
deleted file mode 100644
index 7681e36d6..000000000
Binary files a/source/sites/embauche.gouv.fr/images/accueil/simulateur-2017-raw.gif and /dev/null differ
diff --git a/source/sites/embauche.gouv.fr/images/accueil/simulateur-2017.gif b/source/sites/embauche.gouv.fr/images/accueil/simulateur-2017.gif
deleted file mode 100644
index fe4f81a69..000000000
Binary files a/source/sites/embauche.gouv.fr/images/accueil/simulateur-2017.gif and /dev/null differ
diff --git a/source/sites/embauche.gouv.fr/images/accueil/simulateur-2017.png b/source/sites/embauche.gouv.fr/images/accueil/simulateur-2017.png
deleted file mode 100644
index 7699bbf24..000000000
Binary files a/source/sites/embauche.gouv.fr/images/accueil/simulateur-2017.png and /dev/null differ
diff --git a/source/sites/embauche.gouv.fr/images/accueil/simulateur-statique.gif b/source/sites/embauche.gouv.fr/images/accueil/simulateur-statique.gif
deleted file mode 100644
index f9bf79fc7..000000000
Binary files a/source/sites/embauche.gouv.fr/images/accueil/simulateur-statique.gif and /dev/null differ
diff --git a/source/sites/embauche.gouv.fr/images/accueil/simulateur.gif b/source/sites/embauche.gouv.fr/images/accueil/simulateur.gif
deleted file mode 100644
index b7f6973cc..000000000
Binary files a/source/sites/embauche.gouv.fr/images/accueil/simulateur.gif and /dev/null differ
diff --git a/source/sites/embauche.gouv.fr/images/accueil/simulateur.png b/source/sites/embauche.gouv.fr/images/accueil/simulateur.png
deleted file mode 100644
index a3472ab38..000000000
Binary files a/source/sites/embauche.gouv.fr/images/accueil/simulateur.png and /dev/null differ
diff --git a/source/sites/embauche.gouv.fr/images/accueil/tests.svg b/source/sites/embauche.gouv.fr/images/accueil/tests.svg
deleted file mode 100644
index 6c5a26e0a..000000000
--- a/source/sites/embauche.gouv.fr/images/accueil/tests.svg
+++ /dev/null
@@ -1,136 +0,0 @@
-
-
-
-
diff --git a/source/sites/embauche.gouv.fr/images/accueil/widget.svg b/source/sites/embauche.gouv.fr/images/accueil/widget.svg
deleted file mode 100644
index ea2b5342f..000000000
--- a/source/sites/embauche.gouv.fr/images/accueil/widget.svg
+++ /dev/null
@@ -1,166 +0,0 @@
-
-
-
-
diff --git a/source/sites/embauche.gouv.fr/images/bannière-twitter.svg b/source/sites/embauche.gouv.fr/images/bannière-twitter.svg
deleted file mode 100644
index 3b8086dce..000000000
--- a/source/sites/embauche.gouv.fr/images/bannière-twitter.svg
+++ /dev/null
@@ -1,73 +0,0 @@
-
-
diff --git a/source/sites/embauche.gouv.fr/images/brouillons/drawing.svg b/source/sites/embauche.gouv.fr/images/brouillons/drawing.svg
deleted file mode 100644
index 8cd940fe8..000000000
--- a/source/sites/embauche.gouv.fr/images/brouillons/drawing.svg
+++ /dev/null
@@ -1,293 +0,0 @@
-
-
-
-
diff --git a/source/sites/embauche.gouv.fr/images/brouillons/icônes-CDD.svg b/source/sites/embauche.gouv.fr/images/brouillons/icônes-CDD.svg
deleted file mode 100644
index cbcb08242..000000000
--- a/source/sites/embauche.gouv.fr/images/brouillons/icônes-CDD.svg
+++ /dev/null
@@ -1,200 +0,0 @@
-
-
-
-
diff --git a/source/sites/embauche.gouv.fr/images/brouillons/logo.svg b/source/sites/embauche.gouv.fr/images/brouillons/logo.svg
deleted file mode 100644
index 3a7acd1ac..000000000
--- a/source/sites/embauche.gouv.fr/images/brouillons/logo.svg
+++ /dev/null
@@ -1,1692 +0,0 @@
-
-
-
-
diff --git a/source/sites/embauche.gouv.fr/images/contact.png b/source/sites/embauche.gouv.fr/images/contact.png
deleted file mode 100644
index 14f436963..000000000
Binary files a/source/sites/embauche.gouv.fr/images/contact.png and /dev/null differ
diff --git a/source/sites/embauche.gouv.fr/images/contact.svg b/source/sites/embauche.gouv.fr/images/contact.svg
deleted file mode 100644
index 7852cef9b..000000000
--- a/source/sites/embauche.gouv.fr/images/contact.svg
+++ /dev/null
@@ -1,56 +0,0 @@
-
-
\ No newline at end of file
diff --git a/source/sites/embauche.gouv.fr/images/fr.png b/source/sites/embauche.gouv.fr/images/fr.png
deleted file mode 100644
index fc6bcfda6..000000000
Binary files a/source/sites/embauche.gouv.fr/images/fr.png and /dev/null differ
diff --git a/source/sites/embauche.gouv.fr/images/livre.svg b/source/sites/embauche.gouv.fr/images/livre.svg
deleted file mode 100644
index ceb32f3dd..000000000
--- a/source/sites/embauche.gouv.fr/images/livre.svg
+++ /dev/null
@@ -1,77 +0,0 @@
-
-
diff --git a/source/sites/embauche.gouv.fr/images/logo-embauche.png b/source/sites/embauche.gouv.fr/images/logo-embauche.png
deleted file mode 100644
index 1a6e05116..000000000
Binary files a/source/sites/embauche.gouv.fr/images/logo-embauche.png and /dev/null differ
diff --git a/source/sites/embauche.gouv.fr/images/logo.png b/source/sites/embauche.gouv.fr/images/logo.png
deleted file mode 100644
index d0027454e..000000000
Binary files a/source/sites/embauche.gouv.fr/images/logo.png and /dev/null differ
diff --git a/source/sites/embauche.gouv.fr/images/logo/logo-simulateur-144.png b/source/sites/embauche.gouv.fr/images/logo/logo-simulateur-144.png
deleted file mode 100644
index badd475f0..000000000
Binary files a/source/sites/embauche.gouv.fr/images/logo/logo-simulateur-144.png and /dev/null differ
diff --git a/source/sites/embauche.gouv.fr/images/logo/logo-simulateur-192.png b/source/sites/embauche.gouv.fr/images/logo/logo-simulateur-192.png
deleted file mode 100644
index d7d75a418..000000000
Binary files a/source/sites/embauche.gouv.fr/images/logo/logo-simulateur-192.png and /dev/null differ
diff --git a/source/sites/embauche.gouv.fr/images/logo/logo-simulateur-48.png b/source/sites/embauche.gouv.fr/images/logo/logo-simulateur-48.png
deleted file mode 100644
index f2749bb85..000000000
Binary files a/source/sites/embauche.gouv.fr/images/logo/logo-simulateur-48.png and /dev/null differ
diff --git a/source/sites/embauche.gouv.fr/images/logo/logo-simulateur-carré.svg b/source/sites/embauche.gouv.fr/images/logo/logo-simulateur-carré.svg
deleted file mode 100644
index 526c0b727..000000000
--- a/source/sites/embauche.gouv.fr/images/logo/logo-simulateur-carré.svg
+++ /dev/null
@@ -1,299 +0,0 @@
-
-
-
-
diff --git a/source/sites/embauche.gouv.fr/images/logo/logo-simulateur.brouillon.svg b/source/sites/embauche.gouv.fr/images/logo/logo-simulateur.brouillon.svg
deleted file mode 100644
index 5e4d929c2..000000000
--- a/source/sites/embauche.gouv.fr/images/logo/logo-simulateur.brouillon.svg
+++ /dev/null
@@ -1,487 +0,0 @@
-
-
-
-
diff --git a/source/sites/embauche.gouv.fr/images/logo/logo-simulateur.svg b/source/sites/embauche.gouv.fr/images/logo/logo-simulateur.svg
deleted file mode 100644
index 2dd1fa87b..000000000
--- a/source/sites/embauche.gouv.fr/images/logo/logo-simulateur.svg
+++ /dev/null
@@ -1,297 +0,0 @@
-
-
-
-
diff --git a/source/sites/embauche.gouv.fr/images/maison2.svg b/source/sites/embauche.gouv.fr/images/maison2.svg
deleted file mode 100644
index 2f3c74a15..000000000
--- a/source/sites/embauche.gouv.fr/images/maison2.svg
+++ /dev/null
@@ -1,530 +0,0 @@
-
-
-
-
diff --git a/source/sites/embauche.gouv.fr/images/marianne.svg b/source/sites/embauche.gouv.fr/images/marianne.svg
deleted file mode 100644
index be9dc53c3..000000000
--- a/source/sites/embauche.gouv.fr/images/marianne.svg
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
\ No newline at end of file
diff --git a/source/sites/embauche.gouv.fr/middlewares/trackDomainActions.js b/source/sites/embauche.gouv.fr/middlewares/trackDomainActions.js
deleted file mode 100644
index addc27173..000000000
--- a/source/sites/embauche.gouv.fr/middlewares/trackDomainActions.js
+++ /dev/null
@@ -1,80 +0,0 @@
-/* @flow */
-
-// $FlowFixMe
-import { actionTypes } from 'redux-form'
-import {
- currentQuestionSelector,
- formattedSituationSelector
-} from 'Selectors/analyseSelectors'
-import { debounce } from '../../../utils'
-import type { Tracker } from 'Components/utils/withTracker'
-
-export default (tracker: Tracker) => {
- const debouncedUserInputTracking = debounce(1000, action =>
- tracker.push(['trackEvent', 'input', action.meta.field, action.payload])
- )
-
- // $FlowFixMe
- return ({ getState }) => next => action => {
- next(action)
- const newState = getState()
- if (action.type == 'STEP_ACTION' && action.name == 'fold') {
- tracker.push([
- 'trackEvent',
- 'answer:' + action.source,
- action.step,
- formattedSituationSelector(newState)[action.step]
- ])
- console.log('aïe')
- if (!currentQuestionSelector(newState)) {
- tracker.push([
- 'trackEvent',
- 'done',
- 'after ' +
- newState.conversationSteps.foldedSteps.length +
- ' questions'
- ])
- }
- }
- if (action.type === 'SET_ACTIVE_TARGET_INPUT') {
- tracker.push(['trackEvent', 'select', newState.activeTargetInput])
- }
-
- if (action.type === 'START_CONVERSATION') {
- tracker.push([
- 'trackEvent',
- 'refine',
- newState.activeTargetInput,
- action.priorityNamespace
- ])
- }
- if (action.type == 'STEP_ACTION' && action.name == 'unfold') {
- tracker.push(['trackEvent', 'unfold', action.step])
- }
-
- if (action.type === 'RESET_SIMULATION') {
- tracker.push(['trackEvent', 'restart', ''])
- }
-
- if (action.type === actionTypes.CHANGE) {
- debouncedUserInputTracking(action)
- }
-
- if (action.type === 'LOAD_PREVIOUS_SIMULATION') {
- tracker.push(['trackEvent', 'previousSimulation', 'load'])
- }
-
- if (action.type === 'DELETE_PREVIOUS_SIMULATION') {
- tracker.push(['trackEvent', 'previousSimulation', 'delete'])
- }
-
- if (action.type === 'INITIALIZE_COMPANY_CREATION_CHECKLIST') {
- tracker.push([
- 'trackEvent',
- 'Creation',
- 'status chosen',
- action.statusName
- ])
- }
- }
-}
diff --git a/source/sites/embauche.gouv.fr/pages/About.css b/source/sites/embauche.gouv.fr/pages/About.css
deleted file mode 100644
index 358b82ac3..000000000
--- a/source/sites/embauche.gouv.fr/pages/About.css
+++ /dev/null
@@ -1,24 +0,0 @@
-#about section {
- margin-bottom: 3em;
-}
-#about a.button {
- margin: 2em auto;
- width: 20em;
- display: block;
- text-align: center;
-}
-
-#about iframe {
- width: 100%;
- border: none;
- height: auto;
- background: yellow;
- height: 8em;
- border-radius: 1em;
-}
-
-#about i {
- font-size: 1.6em;
- margin-left: 0.2em;
- vertical-align: middle;
-}
diff --git a/source/sites/embauche.gouv.fr/pages/About.js b/source/sites/embauche.gouv.fr/pages/About.js
deleted file mode 100644
index 3a9152cd7..000000000
--- a/source/sites/embauche.gouv.fr/pages/About.js
+++ /dev/null
@@ -1,103 +0,0 @@
-import { LegalNoticeContent } from 'Components/LegalNotice'
-import React, { Component } from 'react'
-import { Link } from 'react-router-dom'
-import './About.css'
-import './MailChimp.css'
-import PrivacyContent from 'Components/PrivacyContent';
-
-export default class About extends Component {
- render() {
- return (
-
- À propos
-
-
- BetaGouv a lancé en 2014 le
- développement d’un moteur ouvert de calcul des cotisations sociales
- en France, étape incontournable pour embaucher ou négocier un
- salaire.
-
-
- Ce premier service, un simulateur des sommes en jeu lors d'une
- embauche, peut être{' '}
- intégré facilement et gratuitement par
- toute organisation sur son site Web.
-
-
-
- Début 2018, l'
- ACOSS (la tête des URSSAF) nous
- rejoint pour consolider ce simulateur, le traduire en anglais et
- lancer{' '}
- mycompanyinfrance.fr, un
- guide de création d'entreprise en France.
-
-
- Suivez nos mises à jour sur{' '}
-
- twitter
-
-
-
- Contribuez !
-
-
- Venez définir avec nous la feuille de route du service
- (implémentation des conventions collectives, ajout des statuts
- autres que le travail salarié, ...).
-
-
-
- Ou contactez-nous directement.
-
-
- Le code est ouvert et contributif, rendez-vous sur{' '}
-
- GitHub
-
-
-
- {/* Notre prochaine rencontre OpenLab aura lieu le mercredi 18 janvier 2017 à 10h, au 86 allée de Bercy, 75012, salle 381-R
*/}
-
-
-
- )
- }
-}
-
-let MailChimp = () => (
-
-)
diff --git a/source/sites/embauche.gouv.fr/pages/Contribution.js b/source/sites/embauche.gouv.fr/pages/Contribution.js
deleted file mode 100644
index 5c3d53937..000000000
--- a/source/sites/embauche.gouv.fr/pages/Contribution.js
+++ /dev/null
@@ -1,23 +0,0 @@
-import React, { Component } from 'react'
-
-// TODO reprendre les icônes de embauche.gouv.fr version novembre 2017
-// pour expliquer la contribution au projet
-
-// parler du fait qu'on ne contribue pas simplement à une calculette
-
-export default class Contribution extends Component {
- render() {
- return (
-
- Contribuer
-
- Tout le développement se fait de façon transparente et contributive
- sur{' '}
-
- GitHub
- .
-
-
- )
- }
-}
diff --git a/source/sites/embauche.gouv.fr/pages/Header.css b/source/sites/embauche.gouv.fr/pages/Header.css
deleted file mode 100644
index 5a66faa22..000000000
--- a/source/sites/embauche.gouv.fr/pages/Header.css
+++ /dev/null
@@ -1,85 +0,0 @@
-#header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 1em 1em 0;
-}
-#header #brand {
- display: flex;
- align-items: center;
- max-width: 14em;
- text-decoration: none !important;
-}
-#header h1 {
- font-size: calc(0.8vw + 100%);
- font-weight: 600;
- display: inline-block;
- margin-left: 0em;
- color: #3c4963;
- line-height: 1em;
- margin-bottom: 0.6em;
- margin-top: 0.6em;
-}
-
-#header #logo {
- width: calc(3vw + 2em);
-}
-
-#headerRight {
- display: flex;
- font-size: 110%;
- line-height: 2em;
- align-items: center;
-}
-
-#menuButton {
- font-size: 220%;
- color: #3c4963;
- margin: 0 0.1em;
- display: inline-block;
-}
-nav {
- display: inline-block;
-}
-
-nav a {
- color: #666;
-}
-@media screen and (max-width: 860px) {
- #header {
- padding: 0 1em;
- }
- nav {
- display: none;
- }
- nav.visible {
- display: block;
- position: absolute;
- width: 100%;
- background: white;
- left: 0;
- top: 4.8em;
- bottom: 0;
- z-index: 10;
- margin: 0;
- }
- nav.visible #links {
- margin: 6em 1em;
- }
- nav.visible a {
- font-size: 200%;
- display: block;
- margin: 1.2em;
- }
-}
-@media screen and (min-width: 860px) {
- #menuButton {
- display: none;
- }
-}
-
-.menu-item {
- margin: 0.8em !important;
- text-decoration: none !important;
- color: #040e19 !important;
-}
diff --git a/source/sites/embauche.gouv.fr/pages/Header.js b/source/sites/embauche.gouv.fr/pages/Header.js
deleted file mode 100644
index 8c36602a9..000000000
--- a/source/sites/embauche.gouv.fr/pages/Header.js
+++ /dev/null
@@ -1,74 +0,0 @@
-import LangSwitcher from 'Components/LangSwitcher'
-import React, { Component } from 'react'
-import { withRouter } from 'react-router'
-import { T } from "Components";
-import { Link } from 'react-router-dom'
-import { withTranslation } from 'react-i18next'
-import Logo from '../images/logo/logo-simulateur.svg'
-import './Header.css'
-import { compose } from 'ramda';
-
-export const Header = compose(
- withRouter,
- withTranslation()
-)(
- class Header extends Component {
- state = {
- mobileNavVisible: false
- }
- togglemobileNavVisible = () =>
- this.setState({ mobileNavVisible: !this.state.mobileNavVisible })
-
- render() {
- return (
-
- )
- }
- }
-)
-let Links = ({ toggle }) => (
-
-
- Exemples
-
-
- Intégrer le simulateur
-
-
- Documentation
-
-
- À propos
-
-
-)
diff --git a/source/sites/embauche.gouv.fr/pages/Home.css b/source/sites/embauche.gouv.fr/pages/Home.css
deleted file mode 100644
index f07181b90..000000000
--- a/source/sites/embauche.gouv.fr/pages/Home.css
+++ /dev/null
@@ -1,26 +0,0 @@
-#home {
- margin-top: 4%;
-}
-
-#logos {
- display: flex;
- justify-content: center;
- align-items: center;
- margin: 2.5rem 0 1.5rem;
-}
-#logos a {
- margin: 0 0.6em;
- display: inline-block;
-}
-#logos a::after {
- display: none;
-}
-#logos #marianne img {
- width: calc(1vw + 4em);
-}
-#logos #urssaf img {
- height: calc(1vw + 1.8em);
-}
-#logos #embauche img {
- height: calc(1vw + 2.2em);
-}
diff --git a/source/sites/embauche.gouv.fr/pages/Home.js b/source/sites/embauche.gouv.fr/pages/Home.js
deleted file mode 100644
index 93b9d30ba..000000000
--- a/source/sites/embauche.gouv.fr/pages/Home.js
+++ /dev/null
@@ -1,44 +0,0 @@
-import PreviousSimulationBanner from 'Components/PreviousSimulationBanner';
-import salariéConfig from 'Components/simulationConfigs/salarié.yaml';
-import withSimulationConfig from 'Components/simulationConfigs/withSimulationConfig';
-import Marianne from 'Images/marianne.svg';
-import URSSAF from 'Images/urssaf.svg';
-import React from 'react';
-import { inIframe } from '../../../utils';
-import { SalarySimulation } from '../../mycompanyinfrance.fr/pages/SocialSecurity/Salarié';
-import Simulateur from './../images/logo/logo-simulateur.svg';
-import './Home.css';
-
-const Home = () => (
-
-
-
-
-
-
-
-
- {inIframe() && (
-
-
-
- )}
-
-
-)
-
-export default withSimulationConfig(salariéConfig)(Home)
diff --git a/source/sites/embauche.gouv.fr/pages/IframeFooter.js b/source/sites/embauche.gouv.fr/pages/IframeFooter.js
deleted file mode 100644
index 1aa0e11a5..000000000
--- a/source/sites/embauche.gouv.fr/pages/IframeFooter.js
+++ /dev/null
@@ -1,43 +0,0 @@
-import LangSwitcher from 'Components/LangSwitcher'
-import React, { Component } from 'react'
-import emoji from 'react-easy-emoji'
-import { Trans, withTranslation } from 'react-i18next'
-import screenfull from 'screenfull'
-import { isIE } from '../../../utils'
-
-export default withTranslation()(
- class IframeFooter extends Component {
- componentDidMount() {
- screenfull.enabled && screenfull.onchange(() => this.forceUpdate())
- }
-
- render() {
- return (
-
-
- {screenfull.enabled && !screenfull.isFullscreen && !isIE() && (
-
- )}
-
-
- )
- }
- }
-)
diff --git a/source/sites/embauche.gouv.fr/pages/Integration.js b/source/sites/embauche.gouv.fr/pages/Integration.js
deleted file mode 100644
index e4ca0234c..000000000
--- a/source/sites/embauche.gouv.fr/pages/Integration.js
+++ /dev/null
@@ -1,101 +0,0 @@
-import React, { Component } from 'react'
-import { Link } from 'react-router-dom'
-import urssafLogo from '../../../images/urssaf.svg'
-import './Integration.css'
-export default class MyComponent extends Component {
- render() {
- return (
-
-
-
Intégrez le module Web
-
En ajoutant une ligne à votre page Web :
-
- {'<'}
-
- script
-
- id
-
- ="script-simulateur-embauche" data-couleur="
- #2975D1" src
- ="https://embauche.beta.gouv.fr/dist/simulateur.js">
- {'<'}
- /
- script
- >
-
-
- Vous pouvez choisir la couleur principale du module{' '}
- pour le fondre dans le thème visuel de votre page : changez
- simplement la valeur de data-couleur ci-dessus. Pour la
- choisir, utilisez notre outil interactif.
-
-
- L'attribut data-lang="en" vous permet quand à lui de choisir
- l'anglais comme langue par défaut du simulateur (elle restera
- modifiable par l'utilisateur).
-
-
-
-
Quelques intégrations
-
-
-
-
- )
- }
-}
diff --git a/source/sites/embauche.gouv.fr/pages/MailChimp.css b/source/sites/embauche.gouv.fr/pages/MailChimp.css
deleted file mode 100644
index 3620b5d79..000000000
--- a/source/sites/embauche.gouv.fr/pages/MailChimp.css
+++ /dev/null
@@ -1,18 +0,0 @@
-#mc_embed_signup label {
- margin: 1em 0;
- display: inline-block;
- font-weight: 600;
-}
-
-#mc_embed_signup .blueButton {
- margin: 0;
-}
-
-#mc_embed_signup .blueButton input {
- background: none;
- border: none;
- color: white;
- margin: 0;
- padding: 0;
- font-size: 90%;
-}
diff --git a/source/sites/embauche.gouv.fr/robots.txt b/source/sites/embauche.gouv.fr/robots.txt
deleted file mode 100644
index eb0536286..000000000
--- a/source/sites/embauche.gouv.fr/robots.txt
+++ /dev/null
@@ -1,2 +0,0 @@
-User-agent: *
-Disallow:
diff --git a/source/sites/embauche.gouv.fr/sitePaths.js b/source/sites/embauche.gouv.fr/sitePaths.js
deleted file mode 100644
index 31f4db991..000000000
--- a/source/sites/embauche.gouv.fr/sitePaths.js
+++ /dev/null
@@ -1,13 +0,0 @@
-/* @flow */
-import { constructSitePaths } from '../../utils'
-
-const sitePath = constructSitePaths('', {
- index: '',
- documentation: {
- index: '/documentation',
- exemples: '/exemples'
- },
- contact: '/contact'
-})
-
-export default () => sitePath
diff --git a/source/sites/mycompanyinfrance.fr/App.css b/source/sites/mon-entreprise.fr/App.css
similarity index 90%
rename from source/sites/mycompanyinfrance.fr/App.css
rename to source/sites/mon-entreprise.fr/App.css
index f1ca46707..7b5b75b2f 100644
--- a/source/sites/mycompanyinfrance.fr/App.css
+++ b/source/sites/mon-entreprise.fr/App.css
@@ -6,12 +6,11 @@ body,
.app-container {
position: relative;
- overflow: hidden;
width: 100%;
height: 100vh;
}
.app-content {
- height: 100%;
+ min-height: 100%;
display: flex;
flex-direction: column;
overflow: auto;
diff --git a/source/sites/mycompanyinfrance.fr/App.js b/source/sites/mon-entreprise.fr/App.js
similarity index 70%
rename from source/sites/mycompanyinfrance.fr/App.js
rename to source/sites/mon-entreprise.fr/App.js
index 2bc5eb910..dc0df1d71 100644
--- a/source/sites/mycompanyinfrance.fr/App.js
+++ b/source/sites/mon-entreprise.fr/App.js
@@ -1,8 +1,8 @@
import Route404 from 'Components/Route404'
-import RulePage from 'Components/RulePage'
import TrackPageView from 'Components/utils/TrackPageView'
import withSitePaths from 'Components/utils/withSitePaths'
import { defaultTracker } from 'Components/utils/withTracker'
+import 'iframe-resizer'
import { compose } from 'ramda'
import createRavenMiddleware from 'raven-for-redux'
import Raven from 'raven-js'
@@ -16,22 +16,31 @@ import {
persistEverything,
retrievePersistedState
} from '../../storage/persistEverything'
+import {
+ persistSimulation,
+ retrievePersistedSimulation
+} from '../../storage/persistSimulation'
import ReactPiwik from '../../Tracker'
+import { inIframe } from '../../utils'
import './App.css'
import Footer from './layout/Footer/Footer'
+import Header from './layout/Header/Header'
import Navigation from './layout/Navigation/Navigation'
-import ProgressHeader from './layout/ProgressHeader/ProgressHeader'
import trackSimulatorActions from './middlewares/trackSimulatorActions'
import CompanyIndex from './pages/Company'
+import Couleur from './pages/Dev/Couleur'
+import IntegrationTest from './pages/Dev/IntegrationTest'
+import Sitemap from './pages/Dev/Sitemap'
+import Documentation from './pages/Documentation'
import HiringProcess from './pages/HiringProcess'
+import Iframes from './pages/Iframes'
import Landing from './pages/Landing'
-import Sitemap from './pages/Sitemap'
import SocialSecurity from './pages/SocialSecurity'
import { constructLocalizedSitePath } from './sitePaths'
if (process.env.NODE_ENV === 'production') {
Raven.config(
- 'https://87763bb809954756b442bc93b5051ed6@sentry.data.gouv.fr/22'
+ 'https://9051375f856646d694943532caf2b45f@sentry.data.gouv.fr/18'
).install()
}
@@ -39,7 +48,7 @@ let tracker = defaultTracker
if (process.env.NODE_ENV === 'production') {
tracker = new ReactPiwik({
url: 'stats.data.gouv.fr',
- siteId: 66,
+ siteId: 39,
trackErrors: true
})
}
@@ -64,8 +73,14 @@ class InFranceRoute extends Component {
tracker={tracker}
sitePaths={paths}
reduxMiddlewares={middlewares}
- onStoreCreated={persistEverything()}
- initialStore={retrievePersistedState() || {}}>
+ onStoreCreated={store => {
+ persistEverything()(store)
+ persistSimulation(store)
+ }}
+ initialStore={{
+ ...retrievePersistedState(),
+ previousSimulation: retrievePersistedSimulation()
+ }}>
@@ -79,6 +94,7 @@ let RouterSwitch = compose(withTranslation())(() => {
return (
+
)
@@ -91,12 +107,11 @@ const App = compose(
{/* Passing location down to prevent update blocking */}
-
+ {!inIframe() &&
}
+
-
-
+ {!inIframe() &&
}
+
- {process.env.NODE_ENV !== 'production' && (
-
- )}
+
+
+
+
-
+
+ {!inIframe() &&
}
))
diff --git a/source/sites/mycompanyinfrance.fr/entry.en.js b/source/sites/mon-entreprise.fr/entry.en.js
similarity index 100%
rename from source/sites/mycompanyinfrance.fr/entry.en.js
rename to source/sites/mon-entreprise.fr/entry.en.js
diff --git a/source/sites/mycompanyinfrance.fr/entry.fr.js b/source/sites/mon-entreprise.fr/entry.fr.js
similarity index 100%
rename from source/sites/mycompanyinfrance.fr/entry.fr.js
rename to source/sites/mon-entreprise.fr/entry.fr.js
diff --git a/source/sites/mycompanyinfrance.fr/history.js b/source/sites/mon-entreprise.fr/history.js
similarity index 100%
rename from source/sites/mycompanyinfrance.fr/history.js
rename to source/sites/mon-entreprise.fr/history.js
diff --git a/source/sites/embauche.gouv.fr/iframe-script.js b/source/sites/mon-entreprise.fr/iframe-integration-script.js
similarity index 69%
rename from source/sites/embauche.gouv.fr/iframe-script.js
rename to source/sites/mon-entreprise.fr/iframe-integration-script.js
index 163997217..c47d69511 100644
--- a/source/sites/embauche.gouv.fr/iframe-script.js
+++ b/source/sites/mon-entreprise.fr/iframe-integration-script.js
@@ -1,13 +1,17 @@
-import { iframeResizer } from 'iframe-resizer'
+import { iframeResizer } from 'iframe-resizer';
let script = document.getElementById('script-simulateur-embauche'),
couleur = script.dataset.couleur,
- baseUrl =
- script.dataset.iframeUrl || script.getAttribute('src').split('dist')[0],
- integratorUrl = encodeURIComponent(window.location.href.toString()),
lang = script.dataset.lang,
+ baseUrl =
+ script.dataset.iframeUrl ||
+ (lang === 'en' ? process.env.EN_SITE : process.env.FR_SITE).replace(
+ '${path}',
+ '/iframes/simulateur-embauche'
+ ),
+ integratorUrl = encodeURIComponent(window.location.href.toString()),
src =
- baseUrl +
- `?s=e&couleur=${couleur}&iframe&integratorUrl=${integratorUrl}&lang=${lang}`
+ baseUrl + (baseUrl.indexOf('?') !== -1 ? '&' : '?') +
+ `couleur=${couleur}&iframe&integratorUrl=${integratorUrl}&lang=${lang}`
const iframe = document.createElement('iframe')
const iframeAttributes = {
diff --git a/source/sites/mycompanyinfrance.fr/images/company.svg b/source/sites/mon-entreprise.fr/images/company.svg
similarity index 100%
rename from source/sites/mycompanyinfrance.fr/images/company.svg
rename to source/sites/mon-entreprise.fr/images/company.svg
diff --git a/source/sites/mycompanyinfrance.fr/images/estimate.svg b/source/sites/mon-entreprise.fr/images/estimate.svg
similarity index 100%
rename from source/sites/mycompanyinfrance.fr/images/estimate.svg
rename to source/sites/mon-entreprise.fr/images/estimate.svg
diff --git a/source/sites/mycompanyinfrance.fr/images/hiring.svg b/source/sites/mon-entreprise.fr/images/hiring.svg
similarity index 100%
rename from source/sites/mycompanyinfrance.fr/images/hiring.svg
rename to source/sites/mon-entreprise.fr/images/hiring.svg
diff --git a/source/sites/mycompanyinfrance.fr/images/socialMedia.png b/source/sites/mon-entreprise.fr/images/socialMedia.png
similarity index 100%
rename from source/sites/mycompanyinfrance.fr/images/socialMedia.png
rename to source/sites/mon-entreprise.fr/images/socialMedia.png
diff --git a/source/sites/embauche.gouv.fr/pages/Contact.js b/source/sites/mon-entreprise.fr/layout/Footer/Contact.js
similarity index 100%
rename from source/sites/embauche.gouv.fr/pages/Contact.js
rename to source/sites/mon-entreprise.fr/layout/Footer/Contact.js
diff --git a/source/sites/mycompanyinfrance.fr/layout/Footer/Footer.css b/source/sites/mon-entreprise.fr/layout/Footer/Footer.css
similarity index 88%
rename from source/sites/mycompanyinfrance.fr/layout/Footer/Footer.css
rename to source/sites/mon-entreprise.fr/layout/Footer/Footer.css
index c601e8fc6..6f01d4253 100644
--- a/source/sites/mycompanyinfrance.fr/layout/Footer/Footer.css
+++ b/source/sites/mon-entreprise.fr/layout/Footer/Footer.css
@@ -3,6 +3,7 @@
}
.footer {
background-color: rgba(41, 117, 209, 0.133);
+ background-color: var(--lighterColour);
padding: 1rem 0;
}
@@ -31,6 +32,7 @@
display: flex;
margin: 0.3rem 0;
background: white;
+ border: 1px solid var(--lightColour);
overflow: hidden;
border-radius: 0.3rem;
align-self: center;
@@ -38,6 +40,7 @@
.footer__registerField > input[type='submit'] {
border-top-left-radius: 0 !important;
border-bottom-left-radius: 0 !important;
+ margin: -1px !important;
}
.footer__registerField > input[type='email'] {
width: 15rem;
diff --git a/source/sites/mycompanyinfrance.fr/layout/Footer/Footer.js b/source/sites/mon-entreprise.fr/layout/Footer/Footer.js
similarity index 93%
rename from source/sites/mycompanyinfrance.fr/layout/Footer/Footer.js
rename to source/sites/mon-entreprise.fr/layout/Footer/Footer.js
index f6fd7548b..40d199ec4 100644
--- a/source/sites/mycompanyinfrance.fr/layout/Footer/Footer.js
+++ b/source/sites/mon-entreprise.fr/layout/Footer/Footer.js
@@ -4,7 +4,6 @@ import { T } from 'Components'
import PageFeedback from 'Components/Feedback/PageFeedback'
import LegalNotice from 'Components/LegalNotice'
import usePersistingState from 'Components/utils/usePersistingState'
-import withColours from 'Components/utils/withColours'
import withSitePaths from 'Components/utils/withSitePaths'
import withTracker from 'Components/utils/withTracker'
import urssafSvg from 'Images/urssaf.svg'
@@ -17,20 +16,22 @@ import SocialIcon from 'Ui/SocialIcon'
import i18n from '../../../../i18n'
import { hrefLangLink } from '../../sitePaths'
import './Footer.css'
-import betaGouvSvg from './logo-betagouv.svg'
+import betaGouvSvg from './images/logo-betagouv.svg'
+import Integration from './Integration'
import Privacy from './Privacy'
type OwnProps = {}
const feedbackBlacklist = [
['index'],
+ ['entreprise', 'statutJuridique', 'index'],
['sécuritéSociale', 'indépendant'],
['sécuritéSociale', 'auto-entrepreneur'],
['sécuritéSociale', 'assimilé-salarié'],
['sécuritéSociale', 'salarié']
].map(lensPath)
-const Footer = ({ colours: { colour }, tracker, t, sitePaths }) => {
+const Footer = ({ tracker, t, sitePaths }) => {
const [registered, setUserRegistered] = usePersistingState(
'app::newsletter::registered',
false
@@ -63,7 +64,7 @@ const Footer = ({ colours: { colour }, tracker, t, sitePaths }) => {
stickToFooter={true}
blacklist={feedbackBlacklist.map(lens => view(lens, sitePaths))}
/>
-