-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* A22 - FE boissons selon Agribalyse 3.1.1 * A21 - FE fruits et légumes Agribalyse 3.1.1 * B5 - modal wording * A25 - disclaimer NégaOctet * BSR - arrondi CO2eq à 2 chiffres après la virgule * A22 - boissons, corrections * [BSR] màj source de données boissons & fruits & légumes
- Loading branch information
Showing
19 changed files
with
811 additions
and
464 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
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
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import OutboundLink from "components/base/OutboundLink.js"; | ||
import React from "react"; | ||
import styled from "styled-components"; | ||
|
||
const Wrapper = styled.div` | ||
font-size: 14px; | ||
font-weight: 400; | ||
margin-bottom: 2rem; | ||
text-align: right; | ||
${(props) => props.theme.mq.medium} { | ||
margin-bottom: 1rem; | ||
} | ||
${(props) => props.theme.mq.small} { | ||
margin-bottom: 0; | ||
} | ||
`; | ||
|
||
export default function SourceAgribalyse() { | ||
return ( | ||
<Wrapper> | ||
<span> Source : </span> | ||
<OutboundLink title="Agribalyse 3.1.1" href="https://agribalyse.ademe.fr/app" data-testid="lien-agribalyse"> | ||
Agribalyse 3.1.1{" "} | ||
</OutboundLink> | ||
<span> - </span> | ||
<span>Mise à jour le 10/10/2023 </span> | ||
</Wrapper> | ||
); | ||
} |
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,34 +1,28 @@ | ||
import React, { useContext } from 'react' | ||
import styled from 'styled-components' | ||
import Modal from "components/base/Modal"; | ||
import ModalContext from "components/providers/ModalProvider"; | ||
import React, { useContext } from "react"; | ||
import styled from "styled-components"; | ||
|
||
import ModalContext from 'components/providers/ModalProvider' | ||
|
||
import Modal from 'components/base/Modal' | ||
|
||
const Title = styled.h2`` | ||
const Text = styled.p`` | ||
const Title = styled.h2``; | ||
const Text = styled.p``; | ||
export default function Co2eModal() { | ||
const { Co2e: open, setCo2e: setOpen } = useContext(ModalContext) | ||
const { Co2e: open, setCo2e: setOpen } = useContext(ModalContext); | ||
return ( | ||
<Modal open={open} setOpen={setOpen}> | ||
<Title> | ||
L'équivalent CO<sub>2</sub> (CO<sub>2</sub>e) | ||
</Title> | ||
<Text> | ||
Le dérèglement climatique actuel est une conséquence de nos émissions | ||
importantes de différents gaz à effet de serre. Nous pouvons mesurer ces | ||
émissions avec un indice simple : les kilogrammes d'équivalent CO | ||
Le dérèglement climatique actuel est une conséquence de nos émissions importantes de différents gaz à effet de | ||
serre. Nous pouvons mesurer ces émissions avec un indice simple : les kilogrammes d'équivalent CO | ||
<sub>2</sub> (kgCO<sub>2</sub>e). | ||
</Text> | ||
<Text> | ||
Chaque gaz à effet est de serre est ramené à un équivalent en CO | ||
<sub>2</sub> selon son pouvoir de réchauffement. Par exemple, 1 kg de | ||
méthane équivaut à 28 kg de CO<sub>2</sub> car il est 28 fois plus | ||
réchauffant. Si la fabrication d'un produit a émis 1 kg de méthane | ||
et 1 kg de CO | ||
<sub>2</sub>, alors l'impact total de ce produit est de 29 kg | ||
d'équivalent CO<sub>2</sub>. | ||
Chaque gaz à effet de serre est ramené à un équivalent en CO | ||
<sub>2</sub> selon son pouvoir de réchauffement. Par exemple, 1 kg de méthane équivaut à 28 kg de CO<sub>2</sub>{" "} | ||
car il est 28 fois plus réchauffant. Si la fabrication d'un produit a émis 1 kg de méthane et 1 kg de CO | ||
<sub>2</sub>, alors l'impact total de ce produit est de 29 kg d'équivalent CO<sub>2</sub>. | ||
</Text> | ||
</Modal> | ||
) | ||
); | ||
} |
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import Modal2 from "components/base/Modal2"; | ||
import OutboundLink from "components/base/OutboundLink"; | ||
import ModalContext from "components/providers/ModalProvider"; | ||
import React, { useContext } from "react"; | ||
import styled from "styled-components"; | ||
|
||
export default function WarningNegaoctet() { | ||
const { warningNegaoctet: open, setWarningNegaoctet: setOpen } = useContext(ModalContext); | ||
|
||
const getTitle = () => { | ||
return <Title>Source des données</Title>; | ||
}; | ||
|
||
return ( | ||
<Modal2 open={open} setOpen={setOpen} getTitle={getTitle}> | ||
<p> | ||
Les données et les calculs sont issues de | ||
<OutboundLink | ||
href="https://base-empreinte.ademe.fr/documentation/base-impact" | ||
title="Base impact, étude réalisée par Negaoctet" | ||
> | ||
l'étude NégaOctet 2022 | ||
</OutboundLink> | ||
. | ||
</p> | ||
<p> | ||
⚠️ Attention : aujourd’hui pour calculer l’impact carbone de Stocker un Go de données, nous ne prenons pas en | ||
compte dans nos calculs l’impact carbone de la transmission ni celui du stockage effectué par l'appareil, | ||
puisque nous estimions que ce dernier étant partagé par beaucoup de personnes, était amorti. | ||
</p> | ||
<p> | ||
Ces calculs, expliquent la différence d’impact carbone que l’on a entre le site | ||
<OutboundLink href="https://impactco2.fr" title="site Internet impactCO2"> | ||
impactco2.fr | ||
</OutboundLink>{" "} | ||
et les données NO.{" "} | ||
</p> | ||
<p>Nous travaillons à affiner ce calcul et le mettre à jour.</p> | ||
</Modal2> | ||
); | ||
} | ||
|
||
const Title = styled.h1` | ||
margin: 0; | ||
`; |
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
Oops, something went wrong.