[S] Add text color configuration

This commit is contained in:
Hykilpikonna
2019-12-22 23:01:53 -05:00
parent c5456b64e2
commit 6918b3201f
2 changed files with 5 additions and 3 deletions
+3 -2
View File
@@ -1,7 +1,7 @@
<template>
<div id="app">
<div id="title" :style="titleStyle">
<div>{{config.title.text}}</div>
<div id="title-text">{{config.title.text}}</div>
</div>
</div>
</template>
@@ -35,7 +35,8 @@
dim = `linear-gradient(${dim}, ${dim})`;
return `height: ${config.title.height}vh;`
+ `background-image: ${dim}, url(${require('./assets/' + config.title.background)});`;
+ `background-image: ${dim}, url(${require('./assets/' + config.title.background)});`
+ `color: ${config.title.text_color}`;
}
}
</script>
+2 -1
View File
@@ -4,6 +4,7 @@
"text": "Charlie's Gallery",
"height": 80,
"background": "title.jpeg",
"dim": 50
"dim": 50,
"text_color": "white"
}
}