🐛 répare l'image open graph (facebook, twitter, etc)

Dans le même temps, on en profite pour supprimer la distinction images/ static-images/
qui n'apporte pas grand chose à part de la confusion
pull/584/head
Johan Girod 2019-06-26 16:00:28 +02:00
parent 2dc35c3adf
commit aa66c4029d
No known key found for this signature in database
GPG Key ID: 9E27B57DA2E8AE12
16 changed files with 28 additions and 166 deletions

View File

@ -46,6 +46,7 @@
content="<%= htmlWebpackPlugin.options.description %>"
data-react-helmet="true"
/>
<meta property="og:type" content="website" />
<meta
property="og:title"
content="<%= htmlWebpackPlugin.options.title %>"
@ -54,10 +55,8 @@
property="og:description"
content="<%= htmlWebpackPlugin.options.description %>"
/>
<meta
property="og:image"
content="https://mon-entreprise.fr/static-images/logo.png"
/>
<meta property="og:image" content="<%= htmlWebpackPlugin.options.logo %>" />
<!-- data-helmet pour que React Helmet puisse écraser ce meta par défaut -->
<link
href="https://fonts.googleapis.com/css?family=Roboto:300,400,400i,500,600|Montserrat:400,600"

View File

@ -1,7 +1,7 @@
import { React, T } from 'Components'
import { Link } from 'react-router-dom'
import image from '../images/map-directions.png'
import image from 'Images/map-directions.png'
import emoji from 'react-easy-emoji'
import { Link } from 'react-router-dom'
export default () => (
<div

View File

Before

Width:  |  Height:  |  Size: 892 B

After

Width:  |  Height:  |  Size: 892 B

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

View File

@ -1,137 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
viewBox="0 0 433.46228 162.40294"
version="1.1"
id="svg61"
sodipodi:docname="logo.svg"
width="433.46228"
height="162.40294"
inkscape:version="0.92.4 5da689c313, 2019-01-14">
<metadata
id="metadata65">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title>mon-entreprise_logo</dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1256"
inkscape:window-height="1386"
id="namedview63"
showgrid="false"
inkscape:zoom="0.95898438"
inkscape:cx="213.12031"
inkscape:cy="61.387373"
inkscape:window-x="48"
inkscape:window-y="28"
inkscape:window-maximized="0"
inkscape:current-layer="svg61"
showguides="false" />
<defs
id="defs4">
<style
id="style2">.cls-1{fill:#1e286e;}.cls-2{fill:#4b508c;}.cls-3{fill:#fad750;}.cls-4{fill:#f5c328;}.cls-5{fill:#cd0a5a;}.cls-6{fill:#ff2d96;}.cls-7{fill:#1ea0f5;}.cls-8{fill:#197dbe;}.cls-9{fill:#46dcc3;}.cls-10{fill:#91ebc3;}</style>
</defs>
<title
id="title6">mon-entreprise_logo</title>
<g
id="mon-entrerpise_logo"
transform="translate(-39.23,-24.797057)">
<polygon
class="cls-1"
points="87.14,28.17 102.89,28.17 100.64,32.67 105.14,37.17 89.39,37.17 "
id="polygon34"
style="fill:#1e286e" />
<polygon
class="cls-2"
points="80.39,25.92 91.64,25.92 95.05,34.89 83.8,34.89 "
id="polygon36"
style="fill:#4b508c" />
<path
class="cls-3"
d="m 40.47,127.05 h 39.6 a 1.2,1.2 0 0 0 1.2,-1.2 v -39.6 a 1.2,1.2 0 0 0 -1.2,-1.2 h -18.6 a 1.19,1.19 0 0 0 -1.2,1.2 v 18.6 a 1.2,1.2 0 0 1 -1.2,1.2 h -18.6 a 1.19,1.19 0 0 0 -1.2,1.2 v 18.6 a 1.2,1.2 0 0 0 1.2,1.2 z"
id="path38"
inkscape:connector-curvature="0"
style="fill:#fad750" />
<path
class="cls-4"
d="m 80.86,85.35 a 1.17,1.17 0 0 0 -0.79,-0.3 h -18.6 a 1.19,1.19 0 0 0 -1.2,1.2 v 14.14 c 0,0 20.84,-14.82 20.59,-15.04 z"
id="path40"
inkscape:connector-curvature="0"
style="fill:#f5c328" />
<path
class="cls-4"
d="M 52.22,106.05 H 40.47 a 1.19,1.19 0 0 0 -1.2,1.2 v 8.57 z"
id="path42"
inkscape:connector-curvature="0"
style="fill:#f5c328" />
<path
class="cls-5"
d="m 106.11,77.33 -20.65,-35.76 -4,-15.92 a 1.1229426,1.1229426 0 0 0 -2.18,0.54 L 83.1,41.48 62.42,77.33 a 1.15,1.15 0 0 0 1,1.72 h 41.71 a 1.15,1.15 0 0 0 0.98,-1.72 z"
id="path44"
inkscape:connector-curvature="0"
style="fill:#cd0a5a" />
<path
class="cls-6"
d="m 63.09,76.17 -0.67,1.16 a 1.15,1.15 0 0 0 1,1.72 h 41.71 a 1.15,1.15 0 0 0 1,-1.72 L 90,49.47 Z"
id="path46"
inkscape:connector-curvature="0"
style="fill:#ff2d96" />
<path
class="cls-7"
d="m 39.27,134.22 v 41.83 a 1,1 0 0 0 1,1 h 20 a 1,1 0 0 0 1,-1 22,22 0 0 1 43.95,0 1,1 0 0 0 1,1 h 20 a 1,1 0 0 0 1,-1 v -42 a 1,1 0 0 0 -1,-1 H 40.44 a 1.17,1.17 0 0 0 -1.17,1.17 z"
id="path48"
inkscape:connector-curvature="0"
style="fill:#1ea0f5" />
<path
class="cls-8"
d="m 79.23,133.05 h -39 a 1,1 0 0 0 -1,1 v 25 z"
id="path50"
inkscape:connector-curvature="0"
style="fill:#197dbe" />
<circle
class="cls-9"
cx="106.27"
cy="106.05"
r="21"
id="circle56"
style="fill:#46dcc3" />
<path
class="cls-10"
d="m 98.09,125.39 a 21,21 0 0 0 29.18,-19.34 c 0,-0.45 0,-0.89 0,-1.32 z"
id="path58"
inkscape:connector-curvature="0"
style="fill:#91ebc3" />
</g>
<flowRoot
xml:space="preserve"
id="flowRoot1042"
style="font-style:normal;font-weight:normal;font-size:40px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none"><flowRegion
id="flowRegion1044"><rect
id="rect1046"
width="279.46231"
height="103.23421"
x="126.17516"
y="25.800089" /></flowRegion><flowPara
id="flowPara1048">mycompany</flowPara><flowPara
id="flowPara1050">infrance</flowPara></flowRoot></svg>

Before

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

View File

@ -1,5 +1,5 @@
import ContactImage from 'Images/contact.png'
import React from 'react'
import ContactImage from '../images/contact.png'
const Contact = () => (
<div className="centeredMessage">
<p>

View File

@ -3,6 +3,10 @@ import { ScrollToTop } from 'Components/utils/Scroll'
import urssafLogo from 'Images/urssaf.svg'
import React, { useState } from 'react'
import { Link } from 'react-router-dom'
import apecLogo from './images/apec.png'
import cciLogo from './images/cci.png'
import minTraLogo from './images/min-tra.jpg'
import poleEmploiLogo from './images/pole-emploi.png'
import './Integration.css'
export default function Integration() {
@ -63,34 +67,28 @@ export default function Integration() {
</article>
<article>
<a href="http://les-aides.fr/embauche">
<img src={require('./images/cci.png')} alt="Les-aides.fr" />
<img src={cciLogo} alt="Les-aides.fr" />
<h2>CCI de France</h2>
</a>
</article>
<article>
<a href="https://recruteurs.apec.fr/Recrutement/Pratique-RH/Tous-les-dossiers-Recrutement/Diagnostiquer/Vous-envisagez-de-recruter-calculez-le-cout-de-cette-embauche">
<img src={require('./images/apec.png')} alt="" />
<img src={apecLogo} alt="" />
<h2>APEC</h2>
</a>
</article>
<article>
<a href="http://travail-emploi.gouv.fr/emploi/accompagnement-des-tpe-pme/tpe-pme/article/le-simulateur-du-cout-d-embauche">
<img
src={require('./images/min-tra.jpg')}
alt="Ministère du travail"
/>
<img src={minTraLogo} alt="Ministère du travail" />
<h2>Ministère du travail</h2>
</a>
</article>
<article>
<a href="https://entreprise.pole-emploi.fr/cout-salarie/">
<img
src={require('./images/pole-emploi.png')}
alt="Pôle Emploi"
/>
<img src={poleEmploiLogo} alt="Pôle Emploi" />
<h2>Pôle Emploi</h2>
</a>
</article>

View File

@ -3,15 +3,15 @@
import { React, T } from 'Components'
import withSitePaths from 'Components/utils/withSitePaths'
import withTracker from 'Components/utils/withTracker'
import companySvg from 'Images/company.svg'
import estimateSvg from 'Images/estimate.svg'
import hiringSvg from 'Images/hiring.svg'
import { compose } from 'ramda'
import { withTranslation } from 'react-i18next'
import { connect } from 'react-redux'
import { withRouter } from 'react-router'
import { NavLink } from 'react-router-dom'
import { régimeSelector } from 'Selectors/companyStatusSelectors'
import companySvg from '../../images/company.svg'
import estimateSvg from '../../images/estimate.svg'
import hiringSvg from '../../images/hiring.svg'
import './Header.css'
import type { Tracker } from 'Components/utils/withTracker'

View File

@ -1,14 +1,14 @@
/* @flow */
import { React, T } from 'Components'
import withSitePaths from 'Components/utils/withSitePaths'
import companySvg from 'Images/company.svg'
import estimateSvg from 'Images/estimate.svg'
import hiringSvg from 'Images/hiring.svg'
import { compose } from 'ramda'
import { withTranslation } from 'react-i18next'
import { connect } from 'react-redux'
import { withRouter } from 'react-router'
import { NavLink } from 'react-router-dom'
import companySvg from '../../images/company.svg'
import estimateSvg from '../../images/estimate.svg'
import hiringSvg from '../../images/hiring.svg'
import './Navigation.css'
import NavOpener from './NavOpener'
import SideBar from './SideBar'

View File

@ -2,11 +2,11 @@
import classnames from 'classnames'
import withTracker from 'Components/utils/withTracker'
import backSvg from 'Images/back.svg'
import mobileMenuSvg from 'Images/mobile-menu.svg'
import { compose } from 'ramda'
import React from 'react'
import { withRouter } from 'react-router'
import backSvg from './back.svg'
import mobileMenuSvg from './mobile-menu.svg'
import './SideBar.css'
import type { Tracker } from 'Components/utils/withTracker'
import type { Location } from 'react-router-dom'

View File

Before

Width:  |  Height:  |  Size: 339 B

After

Width:  |  Height:  |  Size: 339 B

View File

Before

Width:  |  Height:  |  Size: 379 B

After

Width:  |  Height:  |  Size: 379 B

View File

@ -41,7 +41,8 @@ module.exports = {
'My company in France: A step-by-step guide to start a business in France',
description:
'Find the type of company that suits you and follow the steps to register your company. Discover the French social security system by simulating your hiring costs. Discover the procedures to hire in France and learn the basics of French labour law.',
filename: 'infrance.html'
filename: 'infrance.html',
logo: 'https://mon-entreprise.fr/images/logo-mycompany.png'
}),
new HTMLPlugin({
template: 'index.html',
@ -51,7 +52,8 @@ module.exports = {
"Mon-entreprise.fr : L'assistant officiel du créateur d'entreprise",
description:
'Du statut juridique à la première embauche, en passant par la simulation des cotisations, vous trouverez ici toutes les ressources pour démarrer votre activité.',
filename: 'mon-entreprise.html'
filename: 'mon-entreprise.html',
logo: 'https://mon-entreprise.fr/images/logo.png'
}),
new CopyPlugin([
@ -69,8 +71,8 @@ module.exports = {
to: 'sitemap.infrance.en.txt'
},
{
from: './source/sites/mon-entreprise.fr/images',
to: 'static-images'
from: './source/images',
to: 'images'
},
{
from: './source/sites/mon-entreprise.fr/favicon',