Color-borders
This commit is contained in:
@@ -180,19 +180,19 @@ button {
|
|||||||
justify-content: space-around;
|
justify-content: space-around;
|
||||||
}
|
}
|
||||||
.green {
|
.green {
|
||||||
background-color: #0be881;
|
background-color: #c8f9df;
|
||||||
}
|
}
|
||||||
|
|
||||||
.red {
|
.red {
|
||||||
background-color: #ef5777;
|
background-color: #fbd7de;
|
||||||
}
|
}
|
||||||
|
|
||||||
.yellow {
|
.yellow {
|
||||||
background-color: #ffdd59;
|
background-color: #fff6d6;
|
||||||
}
|
}
|
||||||
|
|
||||||
.blue {
|
.blue {
|
||||||
background-color: #4bcffa;
|
background-color: #fbd7de;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media only screen and (max-width: 768px) {
|
@media only screen and (max-width: 768px) {
|
||||||
|
|||||||
@@ -17,26 +17,26 @@ export default {
|
|||||||
let labels = [];
|
let labels = [];
|
||||||
let blue = {
|
let blue = {
|
||||||
label: "Blå",
|
label: "Blå",
|
||||||
borderColor: "#4bcffa",
|
borderColor: "#57d2fb",
|
||||||
backgroundColor: "#4bcffa10",
|
backgroundColor: "#fbd7de10",
|
||||||
data: []
|
data: []
|
||||||
};
|
};
|
||||||
let yellow = {
|
let yellow = {
|
||||||
label: "Gul",
|
label: "Gul",
|
||||||
borderColor: "#ffdd59",
|
borderColor: "#ffde5d",
|
||||||
backgroundColor: "#ffdd5910",
|
backgroundColor: "#fff6d610",
|
||||||
data: []
|
data: []
|
||||||
};
|
};
|
||||||
let red = {
|
let red = {
|
||||||
label: "Rød",
|
label: "Rød",
|
||||||
borderColor: "#ef5777",
|
borderColor: "#ef5878",
|
||||||
backgroundColor: "#ef577710",
|
backgroundColor: "#fbd7de10",
|
||||||
data: []
|
data: []
|
||||||
};
|
};
|
||||||
let green = {
|
let green = {
|
||||||
label: "Grønn",
|
label: "Grønn",
|
||||||
borderColor: "#0be881",
|
borderColor: "#10e783",
|
||||||
backgroundColor: "#0be88110",
|
backgroundColor: "#c8f9df10",
|
||||||
data: []
|
data: []
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -112,18 +112,18 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.green {
|
.green {
|
||||||
color: #0be881;
|
color: #c8f9df;
|
||||||
}
|
}
|
||||||
|
|
||||||
.red {
|
.red {
|
||||||
color: #ef5777;
|
color: #fbd7de;
|
||||||
}
|
}
|
||||||
|
|
||||||
.yellow {
|
.yellow {
|
||||||
color: #ffdd59;
|
color: #fff6d6;
|
||||||
}
|
}
|
||||||
|
|
||||||
.blue {
|
.blue {
|
||||||
color: #4bcffa;
|
color: #fbd7de;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -10,33 +10,31 @@ export default {
|
|||||||
let canvas = this.$refs["win-chart"].getContext("2d");
|
let canvas = this.$refs["win-chart"].getContext("2d");
|
||||||
|
|
||||||
console.log(canvas);
|
console.log(canvas);
|
||||||
let _response = await fetch(
|
let _response = await fetch("/api/purchase/statistics/color");
|
||||||
"/api/purchase/statistics/color"
|
|
||||||
);
|
|
||||||
let response = await _response.json();
|
let response = await _response.json();
|
||||||
let labels = ["Vunnet"];
|
let labels = ["Vunnet"];
|
||||||
let blue = {
|
let blue = {
|
||||||
label: "Blå",
|
label: "Blå",
|
||||||
borderColor: "#4bcffa",
|
borderColor: "#fbd7de",
|
||||||
backgroundColor: "#4bcffa42",
|
backgroundColor: "#fbd7de42",
|
||||||
data: []
|
data: []
|
||||||
};
|
};
|
||||||
let yellow = {
|
let yellow = {
|
||||||
label: "Gul",
|
label: "Gul",
|
||||||
borderColor: "#ffdd59",
|
borderColor: "#fff6d6",
|
||||||
backgroundColor: "#ffdd5942",
|
backgroundColor: "#fff6d642",
|
||||||
data: []
|
data: []
|
||||||
};
|
};
|
||||||
let red = {
|
let red = {
|
||||||
label: "Rød",
|
label: "Rød",
|
||||||
borderColor: "#ef5777",
|
borderColor: "#fbd7de",
|
||||||
backgroundColor: "#ef577742",
|
backgroundColor: "#fbd7de42",
|
||||||
data: []
|
data: []
|
||||||
};
|
};
|
||||||
let green = {
|
let green = {
|
||||||
label: "Grønn",
|
label: "Grønn",
|
||||||
borderColor: "#0be881",
|
borderColor: "#c8f9df",
|
||||||
backgroundColor: "#0be88142",
|
backgroundColor: "#c8f9df42",
|
||||||
data: []
|
data: []
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user