[S] Dim background

This commit is contained in:
Hykilpikonna
2019-12-22 22:56:54 -05:00
parent 601328db2b
commit 2e8724ee02
2 changed files with 7 additions and 2 deletions
+4 -1
View File
@@ -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>
+3 -1
View File
@@ -2,6 +2,8 @@
"title": "title":
{ {
"text": "Charlie's Gallery", "text": "Charlie's Gallery",
"height": 100 "height": 80,
"background": "title.jpeg",
"dim": 50
} }
} }