[S] Dim background
This commit is contained in:
+4
-1
@@ -28,8 +28,11 @@
|
|||||||
|
|
||||||
get titleStyle()
|
get titleStyle()
|
||||||
{
|
{
|
||||||
|
let dim = `rgba(0, 0, 0, ${config.title.dim / 100})`;
|
||||||
|
dim = `linear-gradient(${dim}, ${dim})`;
|
||||||
|
|
||||||
return `height: ${config.title.height}vh;`
|
return `height: ${config.title.height}vh;`
|
||||||
+ `background: url(${require('./assets/' + config.title.background)})`;
|
+ `background-image: ${dim}, url(${require('./assets/' + config.title.background)});`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -2,6 +2,8 @@
|
|||||||
"title":
|
"title":
|
||||||
{
|
{
|
||||||
"text": "Charlie's Gallery",
|
"text": "Charlie's Gallery",
|
||||||
"height": 100
|
"height": 80,
|
||||||
|
"background": "title.jpeg",
|
||||||
|
"dim": 50
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user