Skip to content

Commit 229fb4f

Browse files
authored
Merge pull request #40 from josephmasson26/13-fix-color-gradients-in-bento
2 parents 7c3d791 + bc330b0 commit 229fb4f

File tree

2 files changed

+45
-33
lines changed

2 files changed

+45
-33
lines changed

DiagnoseMeApp/main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ app.commandLine.appendSwitch('disable-http-cache');
55
function createWindow () {
66
let win = new BrowserWindow({
77
width: 800,
8-
height: 740,
8+
height: 750,
99
webPreferences: {
1010
nodeIntegration: true,
1111
}

DiagnoseMeApp/public/home.css

+44-32
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ h1 {
3434
align-items: center;
3535
justify-content: center;
3636
margin-bottom: 10px;
37+
margin-top: -5px;
3738
}
3839

3940
body {
@@ -70,7 +71,19 @@ body, html {
7071
opacity: 0.6;
7172
color: white;
7273
border-radius: 10px; /* Rounded corners */
73-
transition: background 3s ease-in-out; /* Smooth transition */
74+
transition: background 3s ease; /* Smooth transition */
75+
transition: transform 2s ease;
76+
}
77+
78+
.box::before{
79+
transition: 2s;
80+
transform: scale(.9);
81+
z-index: -1;
82+
}
83+
84+
.box :hover::before {
85+
transform: scale(1.1);
86+
box-shadow: 0 0 30px #e13c62;
7487
}
7588

7689
.box-content {
@@ -80,56 +93,54 @@ body, html {
8093
}
8194

8295
.box:nth-child(1) {
83-
background: linear-gradient(to right, #ff7e5f, #feb47b);
96+
background: linear-gradient(to right, #ca35db, #d99dfd);
97+
opacity: 0.5;
8498
}
8599

86100
.box:nth-child(1):hover {
87-
background: linear-gradient(to right, #feb47b, #ff7e5f);
88-
}
89-
90-
.box:nth-child(2) {
91-
background: linear-gradient(to right, #6a3093, #a044ff);
92-
}
101+
background: #b94ff7;
102+
color: #66bcde;
103+
box-shadow: 0 0 30px #e13c62;
104+
text-shadow: 0 0 15px #e13c62;
105+
opacity: 1;
106+
transform: scale(1.1); /* This scales up the box to 110% of its original size when you hover over it. Adjust the scale factor (1.1) as needed. */
93107

94-
.box:nth-child(2):hover {
95-
background: linear-gradient(to right, #a044ff, #6a3093);
96108
}
97-
109+
98110
.box:nth-child(3) {
99-
background: linear-gradient(to right, #3494e6, #ec6ead);
111+
background: linear-gradient(to right, #8cb5f5, #e2c4f6);
112+
opacity: 0.5;
100113
}
101114

102115
.box:nth-child(3):hover {
103-
background: linear-gradient(to right, #ec6ead, #3494e6);
104-
}
105-
106-
.box:nth-child(4) {
107-
background: linear-gradient(to right, #ee9ca7, #ffdde1);
108-
}
109-
110-
.box:nth-child(4):hover {
111-
background: linear-gradient(to right, #dd4557, #73484e);
112-
}
113-
114-
.box:nth-child(5) {
115-
background: linear-gradient(to right, #7f4fe7, #9772e7);
116+
background: #8b6dc3;
117+
color: #66bcde;
118+
box-shadow: 0 0 30px #e13c62;
119+
text-shadow: 0 0 30px #e13c62;
120+
opacity: 1;
121+
transform: scale(1.1); /* This scales up the box to 110% of its original size when you hover over it. Adjust the scale factor (1.1) as needed. */
116122

117123
}
118124

119-
.box:nth-child(5):hover {
120-
background: linear-gradient(to right, #5eb88e, #851087);
121-
}
122-
123125
.main-box {
124126
grid-row: span 2;
125127
grid-column: 2;
126128
position: relative;
127129
padding: 20px;
128-
background: linear-gradient(to right, #6a3093, #a044ff); /* Different variant */
130+
background: linear-gradient(to right, #c1bafd, #330867); /* Different variant */
131+
opacity: 0.5;
132+
padding-left: 5px;
133+
transition: transform 2s ease; z-index: 0s;
129134
}
130135

131136
.main-box:hover {
132-
background: linear-gradient(to right, #30065a, #c296e1);
137+
background: #460b8f; /* Different variant */
138+
color: #66bcde;
139+
box-shadow: 0 0 30px #e13c62;
140+
text-shadow: 0 0 30px #e13c62;
141+
opacity: 1;
142+
transform: scale(1.05); /* This scales up the box to 110% of its original size when you hover over it. Adjust the scale factor (1.1) as needed. */
143+
z-index: 1;
133144
}
134145

135146
.grid {
@@ -140,7 +151,8 @@ body, html {
140151
grid-template-rows: repeat(2, 1fr);
141152
gap: 15px;
142153
height: 100%;
143-
padding: 20px;
154+
padding: 30px;
155+
margin-top: 10px;
144156
margin-bottom: 10px;
145157
box-sizing: border-box;
146158
}

0 commit comments

Comments
 (0)