|
41 | 41 | } |
42 | 42 |
|
43 | 43 | .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%); |
45 | 45 | aspect-ratio: 1920 / 1080; |
46 | 46 | position: relative; |
47 | 47 | } |
|
54 | 54 | transform: translateX(-50%); |
55 | 55 | width: 69%; |
56 | 56 | height: 100%; |
57 | | - background: linear-gradient(180deg, #82AD99 0%, #508C72 57%); |
| 57 | + background: linear-gradient(180deg, #A5E6A5 0%, #77DD77 57%); |
58 | 58 | } |
59 | 59 |
|
60 | 60 | .bg-frame-1::after { |
|
65 | 65 | } |
66 | 66 |
|
67 | 67 | .bg-frame-2 { |
68 | | - background-color: #508C72; |
| 68 | + background-color: #77DD77; |
69 | 69 | background-image: url("/frame2.svg"); |
70 | 70 | background-size: 100% auto; |
71 | 71 | background-repeat: repeat-y; |
|
132 | 132 | height: 24px; |
133 | 133 | border-radius: 6px; |
134 | 134 | border: 2px solid rgba(255, 255, 255, 0.3); |
135 | | - background: hsl(154, 35%, 65%); |
| 135 | + background: #77DD77; |
136 | 136 | flex-shrink: 0; |
137 | 137 | } |
138 | 138 |
|
|
144 | 144 | border-radius: 4px; |
145 | 145 | outline: none; |
146 | 146 | 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%) |
154 | 154 | ); |
155 | 155 | } |
156 | 156 |
|
|
237 | 237 | const degrees = document.getElementById("hue-degrees") as HTMLElement; |
238 | 238 | const swatch = document.getElementById("color-swatch") as HTMLElement; |
239 | 239 |
|
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; |
245 | 242 |
|
246 | 243 | range.addEventListener("input", () => { |
247 | 244 | 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)`; |
251 | 246 | degrees.textContent = `${val}°`; |
252 | 247 |
|
253 | 248 | // Update swatch to show the shifted base color |
254 | 249 | const newHue = (BASE_HUE + val) % 360; |
255 | | - swatch.style.background = `hsl(${newHue}, 35%, 65%)`; |
| 250 | + swatch.style.background = `hsl(${newHue}, 56%, 67%)`; |
256 | 251 | }); |
257 | 252 |
|
258 | 253 | toggle.addEventListener("click", () => { |
|
0 commit comments