[+] Make height configurable
This commit is contained in:
+4
-4
@@ -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>
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
{
|
||||
"title": "Charlie's Gallery"
|
||||
"title":
|
||||
{
|
||||
"text": "Charlie's Gallery",
|
||||
"height": 100
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user