Skip to content

Commit 3e67e01

Browse files
changed default color of vevIT for new version
1 parent 0a2fcf4 commit 3e67e01

File tree

3 files changed

+18
-7
lines changed

3 files changed

+18
-7
lines changed

public/css/colorschema.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
V2.3
3+
--background-color: #111317; /* Default color for background*/
4+
--contrast-color: #21c937; /* Default color for bookVev button and IT text*/
5+
6+
V2.4
7+
--background-color: #111317; /* Default color for background*/
8+
--contrast-color: #be1313; /* Default color for bookVev button and IT text*/

public/js/colorPicker.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ document.documentElement.style.setProperty("--background-color", getCookie("back
55
console.log(getCookie("backgroundColor"));
66
document.documentElement.style.setProperty("--contrast-color", getCookie("contrastColor"));
77

8+
const backgroundColor = '#000000';
9+
const contrastColor = '#be1313';
10+
811

912
// Code for the color picker to change site color
1013
const backgroundColorPicker = document.getElementById("backgroundColorPicker");
@@ -42,8 +45,8 @@ resetColorPickers.addEventListener("click", () => {
4245
});
4346

4447
function resetColors(){
45-
document.documentElement.style.setProperty("--background-color", "#000000");
46-
document.documentElement.style.setProperty("--contrast-color", "#21c937");
47-
setCookie("backgroundColor", "#000000", 300)
48-
setCookie("contrastColor", "#21c937", 300)
48+
document.documentElement.style.setProperty("--background-color", backgroundColor);
49+
document.documentElement.style.setProperty("--contrast-color", contrastColor);
50+
setCookie("backgroundColor", backgroundColor, 300)
51+
setCookie("contrastColor", contrastColor, 300)
4952
}

public/style.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
:root {
44
--background-color: #111317; /* Default color for background*/
5-
--contrast-color: #21c937; /* Default color for bookVev button and IT text*/
5+
--contrast-color: #be1313; /* Default color for bookVev button and IT text*/
66
}
77

88
/* Code for main html tags */
@@ -100,7 +100,7 @@ body {
100100
}
101101

102102
#resetColorPickers:hover {
103-
background: #21c937;
103+
background: #be1313;
104104
}
105105

106106

@@ -383,7 +383,7 @@ footer {
383383
}
384384

385385
#understood-button {
386-
background: #21c937;
386+
background: #21c937; /* Should be green and not contrast color */
387387
color: #000;
388388
border: none;
389389
padding: 10px 20px;

0 commit comments

Comments
 (0)