Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickNLT committed Aug 14, 2023
0 parents commit a3a8d26
Show file tree
Hide file tree
Showing 51 changed files with 31,164 additions and 0 deletions.
61 changes: 61 additions & 0 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages

on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
# Single deploy job since we're just deploying
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x]

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Pages
uses: actions/configure-pages@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build

- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
# Upload entire repository
path: './build'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
23 changes: 23 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2022 Traace

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Score environnemental des voitures électriques

## En quoi consiste ce simulateur ?

Le gouvernement français a annoncé vouloir valoriser via le bonus écologique l'achat de voitures électriques dont l'empreinte carbone initiale est faible, c'est à dire celles dont la production et le transport sont peu émetteurs de CO2.

Une consultation est ouverte <a href="https://www.consultations-publiques.developpement-durable.gouv.fr/projet-de-decret-relatif-au-conditionnement-de-l-a2898.html">[lien]</a> <strong>du 28/07/2023 au 25/08/2023</strong>, présentant un projet de décret et un projet d'arrêté fixant les conditions d'éligibilité au bonus écologique des voitures électriques. L'empreinte carbone y est transformée en un score environnemental dont la valeur doit atteindre au moins 60 pour que l'acheteur puisse prétendre au bonus écologique.

Le modèle de calcul retenu, proposé par l'Ademe, est l'occasion de comprendre l'influence des nombreux paramètres de la production et du transport d'une voiture électrique sur son empreinte carbone totale.

C'est ce modèle que nous vous proposons d'explorer ici, à travers des exemples et une simulation entièrement personnalisable.

## Qui a créé cet outil ?

Ce simulateur a été créé par l'équipe de [Traace](https://traace.co).
Traace développe une plateforme permettant aux entreprises de se décarboner plus rapidement et plus efficacement, grâce à des modèles d'analyse et de prévision avancés.

## Puis-je contribuer ?

Bien sûr ! Ce simulateur a vocation à être enrichi, en particulier en ce qui concerne les hypothèses prises en compte dans le calcul des distances parcourues ou bien la réparitition des métaux utilisés.
20 changes: 20 additions & 0 deletions craco.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
const CracoLessPlugin = require('craco-less');

module.exports = {
plugins: [
{
plugin: CracoLessPlugin,
options: {
lessLoaderOptions: {
lessOptions: {
modifyVars: {
'@primary-color': '#0BD89D',
'@layout-body-background': '#FFFFFF',
},
javascriptEnabled: true,
},
},
},
},
]
};
Loading

0 comments on commit a3a8d26

Please sign in to comment.