Skip to content

Page pour le Challenge trottinettes #36

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions code/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => (
Expand Down Expand Up @@ -72,6 +73,9 @@ const Container = () => (
</Route>
</>
)}
<Route path="/trottinettes">
<ChallengeTrottinettes />
</Route>
<Route path="/sidewalks">
<Sidewalks />
</Route>
Expand Down
2 changes: 1 addition & 1 deletion code/Article.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
46 changes: 46 additions & 0 deletions code/ChallengeTrottinettes.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
import ReactMarkdown from 'react-markdown'
import content from 'Content/trottinettes.md'

export default () => (
<div css="max-width: 90%;margin: 0 auto">
<header
css={`
display: flex;
flex-wrap: wrap;
flex-direction: row-reverse;
justify-content: center;

align-items: center;
margin: 0 auto;
max-width: 100%;
> img {
margin: 0 2rem;
}
`}
>
<img
css="max-height: 35vh"
src="https://forum.fabmob.io/uploads/default/original/1X/a9144b5024349ce536194e005cbb889db9c116c7.jpeg"
/>
<div>
<h1>Challenge national des trottinettes</h1>

<div css="display: flex; flex-wrap: wrap; justify-content: space-evenly">
<a href="https://forum.fabmob.io/c/nos-communs/2nde-vie-des-trottinettes/32">
<button>Venez discuter sur le forum</button>
</a>
<a href="https://cloud.fabmob.io/s/feoXaxoa4b2J7sd">
<button>Candidatez sur ce challenge</button>
</a>
<a href="https://wiki.lafabriquedesmobilites.fr/wiki/Communaut%C3%A9_du_challenge_de_seconde_vie_des_trottinettes_%C3%A9lectriques">
<button>Découvrez la communauté réunie autour de ce challenge</button>
</a>
</div>
<a href="#infos">Plus d'infos ⬇️</a>
</div>
</header>
<div id="infos" css="max-width: 700px; margin: 6rem auto">
<ReactMarkdown source={content} />
</div>
</div>
)
2 changes: 1 addition & 1 deletion code/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<meta property="og:type" content="website" />
<meta name="twitter:card" content="summary_large_image" />

<meta property="og:site_name" content="kont.me" />
<meta property="og:site_name" content="La Fabrique des Mobilités" />

<link
href="https://fonts.googleapis.com/css?family=Montserrat:400,600&display=swap"
Expand Down
Loading