[S] Add text color configuration
This commit is contained in:
+3
-2
@@ -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>
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
"text": "Charlie's Gallery",
|
||||
"height": 80,
|
||||
"background": "title.jpeg",
|
||||
"dim": 50
|
||||
"dim": 50,
|
||||
"text_color": "white"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user