Skip to content

Commit

Permalink
Mise à jour du barème DPE suite à la réforme du 1 juillet 2021
Browse files Browse the repository at this point in the history
  • Loading branch information
PHClement committed Nov 12, 2021
1 parent 4f36734 commit 007b1e7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-dpe-generator",
"version": "1.0.1",
"version": "1.0.2",
"description": "Generate an SVG graph for DPE and GES.",
"author": "PHClement",
"license": "MIT",
Expand Down
22 changes: 11 additions & 11 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ class Diag extends Component {
)

var desc = document.createElementNS(this.svgNS, 'desc')
desc.textContent = 'Created by Pascalz (http://pascalz.github.io/dpeges/)'
desc.textContent = 'Created by MeilleursBiens (https://meilleursbiens.com/)'
svg.appendChild(desc)
var defs = document.createElementNS(this.svgNS, 'defs')
var filter = document.createElementNS(this.svgNS, 'filter')
Expand Down Expand Up @@ -440,48 +440,48 @@ export function DPE(props) {
const valuesRange = [
{
min: null,
max: 50,
max: 70,
color: '#319834',
textColor: '#000000',
label: 'A'
},
{
min: 51,
max: 90,
min: 71,
max: 110,
color: '#33cc31',
textColor: '#000000',
label: 'B'
},
{
min: 91,
max: 150,
min: 111,
max: 180,
color: '#cbfc34',
textColor: '#000000',
label: 'C'
},
{
min: 151,
max: 230,
min: 181,
max: 250,
color: '#fbfe06',
textColor: '#000000',
label: 'D'
},
{
min: 231,
min: 251,
max: 330,
color: '#fbcc05',
textColor: '#000000',
label: 'E'
},
{
min: 331,
max: 450,
max: 42,
color: '#fc9935',
textColor: '#000000',
label: 'F'
},
{
min: 451,
min: 421,
max: null,
color: '#fc0205',
textColor: '#ffffff',
Expand Down

0 comments on commit 007b1e7

Please sign in to comment.