-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #71 from laem/accueilv2
Nouvelle version de l'accueil
- Loading branch information
Showing
17 changed files
with
708 additions
and
913 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
v12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,34 @@ | ||
module.exports = { | ||
presets: [ | ||
[ | ||
'@babel/preset-env', | ||
{ | ||
targets: { | ||
node: 'current' | ||
module.exports = api => { | ||
// This caches the Babel config by environment. | ||
api.cache.using(() => process.env.NODE_ENV) | ||
return { | ||
presets: [ | ||
[ | ||
'@babel/preset-env', | ||
{ | ||
targets: { | ||
node: 'current' | ||
} | ||
} | ||
} | ||
], | ||
'@babel/react', | ||
'@babel/preset-typescript' | ||
], | ||
'@babel/react', | ||
'@babel/preset-typescript' | ||
], | ||
plugins: [ | ||
'@babel/plugin-proposal-class-properties', | ||
'@babel/plugin-proposal-optional-chaining', | ||
'@babel/plugin-proposal-nullish-coalescing-operator', | ||
'@babel/plugin-proposal-object-rest-spread', | ||
'@babel/plugin-syntax-dynamic-import', | ||
'react-hot-loader/babel', | ||
['webpack-alias', { config: './source/webpack.dev.js' }], | ||
[ | ||
'ramda', | ||
{ | ||
useES: true | ||
} | ||
], | ||
'babel-plugin-styled-components' | ||
] | ||
plugins: [ | ||
'@babel/plugin-proposal-class-properties', | ||
'@babel/plugin-proposal-optional-chaining', | ||
'@babel/plugin-proposal-nullish-coalescing-operator', | ||
'@babel/plugin-proposal-object-rest-spread', | ||
'@babel/plugin-syntax-dynamic-import', | ||
!api.env('production') && 'react-refresh/babel', | ||
['webpack-alias', { config: './source/webpack.dev.js' }], | ||
[ | ||
'ramda', | ||
{ | ||
useES: true | ||
} | ||
], | ||
'babel-plugin-styled-components' | ||
].filter(Boolean) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
{ | ||
"name": "Futureco", | ||
"short_name": "Futureco", | ||
"description": "Découvrir l'impact de nos gestes quotidiens sur le climat", | ||
"description": "L'impact climat de tes gestes quotidiens", | ||
"display": "standalone", | ||
"lang": "fr", | ||
"orientation": "portrait-primary", | ||
"theme_color": "#3742fa", | ||
"theme_color": "#2975D1", | ||
"icons": [ | ||
{ | ||
"src": "/source/sites/publicodes/logo.png", | ||
"sizes": "48x48", | ||
"type": "image/png" | ||
"src": "/images/logo.svg", | ||
"sizes": "144x144", | ||
"type": "image/svg+xml" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,17 @@ | ||
import React, { useState } from 'react' | ||
import React from 'react' | ||
import ContributionButton from './ContributionButton' | ||
import DocumentationButton from './DocumentationButton' | ||
import Search from './Search' | ||
import Suggestions from './Suggestions' | ||
|
||
export default () => { | ||
const [input, setInput] = useState('') | ||
return ( | ||
<div> | ||
<h1 css="margin-top: 1rem; font-size: 140%; line-height: 1.2em"> | ||
Découvre l'impact de chaque geste du quotidien ! | ||
</h1> | ||
<Search {...{ input, setInput }} /> | ||
<Suggestions {...{ input }} /> | ||
<Suggestions /> | ||
<DocumentationButton /> | ||
<ContributionButton {...{ input }} /> | ||
<ContributionButton /> | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.