Skip to content

Commit 05cec57

Browse files
committed
Pastel Update
1 parent 63e5ab9 commit 05cec57

1 file changed

Lines changed: 15 additions & 20 deletions

File tree

src/pages/index.astro

Lines changed: 15 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
}
4242

4343
.bg-frame-1 {
44-
background: linear-gradient(to bottom, #82AD99 0%, #508C72 45%, #508C72 100%);
44+
background: linear-gradient(to bottom, #A5E6A5 0%, #77DD77 45%, #77DD77 100%);
4545
aspect-ratio: 1920 / 1080;
4646
position: relative;
4747
}
@@ -54,7 +54,7 @@
5454
transform: translateX(-50%);
5555
width: 69%;
5656
height: 100%;
57-
background: linear-gradient(180deg, #82AD99 0%, #508C72 57%);
57+
background: linear-gradient(180deg, #A5E6A5 0%, #77DD77 57%);
5858
}
5959

6060
.bg-frame-1::after {
@@ -65,7 +65,7 @@
6565
}
6666

6767
.bg-frame-2 {
68-
background-color: #508C72;
68+
background-color: #77DD77;
6969
background-image: url("/frame2.svg");
7070
background-size: 100% auto;
7171
background-repeat: repeat-y;
@@ -132,7 +132,7 @@
132132
height: 24px;
133133
border-radius: 6px;
134134
border: 2px solid rgba(255, 255, 255, 0.3);
135-
background: hsl(154, 35%, 65%);
135+
background: #77DD77;
136136
flex-shrink: 0;
137137
}
138138

@@ -144,13 +144,13 @@
144144
border-radius: 4px;
145145
outline: none;
146146
background: linear-gradient(to right,
147-
hsl(0, 35%, 65%),
148-
hsl(60, 35%, 65%),
149-
hsl(120, 35%, 65%),
150-
hsl(180, 35%, 65%),
151-
hsl(240, 35%, 65%),
152-
hsl(300, 35%, 65%),
153-
hsl(360, 35%, 65%)
147+
hsl(0, 56%, 67%),
148+
hsl(60, 56%, 67%),
149+
hsl(120, 56%, 67%),
150+
hsl(180, 56%, 67%),
151+
hsl(240, 56%, 67%),
152+
hsl(300, 56%, 67%),
153+
hsl(360, 56%, 67%)
154154
);
155155
}
156156

@@ -237,22 +237,17 @@
237237
const degrees = document.getElementById("hue-degrees") as HTMLElement;
238238
const swatch = document.getElementById("color-swatch") as HTMLElement;
239239

240-
// Base hue of #508C72 is ~154°
241-
const BASE_HUE = 154;
242-
243-
// Apply pastel filter on load
244-
container.style.filter = "saturate(0.8) brightness(1.15)";
240+
// Base hue of #77DD77 is 120°
241+
const BASE_HUE = 120;
245242

246243
range.addEventListener("input", () => {
247244
const val = parseInt(range.value);
248-
container.style.filter = val === 0
249-
? "saturate(0.8) brightness(1.15)"
250-
: `hue-rotate(${val}deg) saturate(0.8) brightness(1.15)`;
245+
container.style.filter = val === 0 ? "" : `hue-rotate(${val}deg)`;
251246
degrees.textContent = `${val}°`;
252247

253248
// Update swatch to show the shifted base color
254249
const newHue = (BASE_HUE + val) % 360;
255-
swatch.style.background = `hsl(${newHue}, 35%, 65%)`;
250+
swatch.style.background = `hsl(${newHue}, 56%, 67%)`;
256251
});
257252

258253
toggle.addEventListener("click", () => {

0 commit comments

Comments
 (0)