Skip to content

Commit d07b874

Browse files
committed
Tweak brightness of background image
1 parent f1d60e5 commit d07b874

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

src/layouts/Layout.astro

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,16 @@ const { title } = Astro.props;
175175
font-family: Inter, sans-serif;
176176
}
177177

178+
:root {
179+
--footer-bg-filter: brightness(60%) blur(1px);
180+
}
181+
182+
@media (prefers-color-scheme: light) {
183+
:root {
184+
--footer-bg-filter: brightness(120%) saturate(90%) blur(2px);
185+
}
186+
}
187+
178188
.footer {
179189
background: top/100px repeat-x, bottom/cover url(/images/bg-dark-mode.jpg);
180190
}

src/pages/faq.astro

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,6 @@ import Header from '../components/Header.astro';
244244
--background-color-rgb: 29, 29, 34;
245245
--text-color-rgb: 255, 255, 255;
246246
color: white;
247-
--hero-bg-filter: brightness(70%) blur(2px);
248-
--footer-bg-filter: brightness(80%) blur(1px);
249247
}
250248

251249
@media (prefers-color-scheme: light) {
@@ -255,8 +253,6 @@ import Header from '../components/Header.astro';
255253
--background-color-rgb: 244, 242, 255;
256254
color: #121212;
257255
--text-color-rgb: 18, 18, 18;
258-
--hero-bg-filter: blur(2px);
259-
--footer-bg-filter: brightness(125%) saturate(80%) blur(2px);
260256
}
261257
}
262258

src/pages/index.astro

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,7 @@ import FeatureSection from '../components/FeatureSection.astro';
115115
--background-color-rgb: 29, 29, 34;
116116
--text-color-rgb: 255, 255, 255;
117117
color: white;
118-
--hero-bg-filter: brightness(70%) blur(2px);
119-
--footer-bg-filter: brightness(80%) blur(1px);
118+
--hero-bg-filter: brightness(55%) blur(2px);
120119
}
121120

122121
@media (prefers-color-scheme: light) {
@@ -127,7 +126,6 @@ import FeatureSection from '../components/FeatureSection.astro';
127126
color: #121212;
128127
--text-color-rgb: 18, 18, 18;
129128
--hero-bg-filter: blur(2px);
130-
--footer-bg-filter: brightness(125%) saturate(80%) blur(2px);
131129
}
132130
}
133131

0 commit comments

Comments
 (0)