[+] Make height configurable

This commit is contained in:
Hykilpikonna
2019-12-22 22:31:33 -05:00
parent 40eae210ca
commit d10b3587e2
2 changed files with 9 additions and 5 deletions
+4 -4
View File
@@ -1,7 +1,7 @@
<template>
<div id="app">
<div id="title">
<div>{{config.title}}</div>
<div id="title" :style="`height: ${config.title.height}vh`">
<div>{{config.title.text}}</div>
</div>
</div>
</template>
@@ -22,7 +22,8 @@
*/
mounted()
{
document.title = config.title;
// Set title
document.title = config.title.text;
}
}
</script>
@@ -40,6 +41,5 @@
#title
{
background: lightblue;
height: 100vh;
}
</style>
+5 -1
View File
@@ -1,3 +1,7 @@
{
"title": "Charlie's Gallery"
"title":
{
"text": "Charlie's Gallery",
"height": 100
}
}