diff --git a/code/App.js b/code/App.js index 5bec5253..42f53ed0 100644 --- a/code/App.js +++ b/code/App.js @@ -18,6 +18,7 @@ import Participer from './pages/Participer' import Ecosystem from './pages/Ecosystem' import About from './pages/About' import Événéments from './pages/Événements' +import ChallengeTrottinettes from './ChallengeTrottinettes' import { fetchLastEvents } from './wikiAPI.js' const UtmFriendlyRedirect = (props) => ( @@ -72,6 +73,9 @@ const Container = () => ( )} + + + diff --git a/code/Article.js b/code/Article.js index cda0a0cc..6d07409a 100644 --- a/code/Article.js +++ b/code/Article.js @@ -66,7 +66,7 @@ export default ({ id: propId }) => { {...{ title: titre, description: résumé || buildRésumé(body), - image, + image: coverImage, url: 'https://lafabriquedesmobilites.fr/blog/' + id, published: new Date(date).toISOString(), updated: lastEditDate, diff --git a/code/ChallengeTrottinettes.js b/code/ChallengeTrottinettes.js new file mode 100644 index 00000000..d46bd244 --- /dev/null +++ b/code/ChallengeTrottinettes.js @@ -0,0 +1,46 @@ +import ReactMarkdown from 'react-markdown' +import content from 'Content/trottinettes.md' + +export default () => ( +
+
img { + margin: 0 2rem; + } + `} + > + +
+

Challenge national des trottinettes

+ +
+ + + + + + + + + +
+ Plus d'infos ⬇️ +
+
+
+ +
+
+) diff --git a/code/index.html b/code/index.html index 26f88e7e..977ce4f4 100644 --- a/code/index.html +++ b/code/index.html @@ -16,7 +16,7 @@ - +