mirror of
https://github.com/karl0ss/homepage.git
synced 2025-05-05 23:13:40 +01:00
Merge pull request #183 from andrii-kryvoviaz/add-background-image-opacity
Add backgroundOpacity option
This commit is contained in:
commit
51ad3184b6
@ -46,6 +46,7 @@ export default function Home({ settings }) {
|
|||||||
if (settings.background) {
|
if (settings.background) {
|
||||||
wrappedStyle.backgroundImage = `url(${settings.background})`;
|
wrappedStyle.backgroundImage = `url(${settings.background})`;
|
||||||
wrappedStyle.backgroundSize = "cover";
|
wrappedStyle.backgroundSize = "cover";
|
||||||
|
wrappedStyle.opacity = settings.backgroundOpacity ?? 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user