componentize user info
This commit is contained in:
@@ -2,7 +2,7 @@ Vue.component('owncast-footer', {
|
||||
props: {
|
||||
appVersion: {
|
||||
type: String,
|
||||
default: "0.1",
|
||||
default: '0.1',
|
||||
},
|
||||
},
|
||||
|
||||
@@ -32,4 +32,28 @@ Vue.component('stream-tags', {
|
||||
</li>
|
||||
</ul>
|
||||
`,
|
||||
});
|
||||
});
|
||||
|
||||
Vue.component('user-details', {
|
||||
props: ['logo', 'platforms', 'summary', 'tags', 'extraContent'],
|
||||
template: `
|
||||
<div class="user-content">
|
||||
<div class="user-image rounded-full bg-white">
|
||||
<img class="logo" alt="Logo" v-bind:src="logo">
|
||||
</div>
|
||||
<div class="user-content-header border-b border-gray-500 border-solid">
|
||||
<h2 class="font-semibold">
|
||||
About <span class="streamer-name text-indigo-600">
|
||||
<slot></slot>
|
||||
</span>
|
||||
</h2>
|
||||
<social-list v-bind:platforms="platforms"></social-list>
|
||||
<div class="stream-summary" v-html="summary"></div>
|
||||
<stream-tags v-bind:tags="tags"></stream-tags>
|
||||
</div>
|
||||
|
||||
<div v-html="extraContent"></div>
|
||||
|
||||
</div>
|
||||
`,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user