mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-22 02:35:32 -05:00
[web] Refactor hero template
This commit is contained in:
27
web-src/src/components/HeadingHero.vue
Normal file
27
web-src/src/components/HeadingHero.vue
Normal file
@@ -0,0 +1,27 @@
|
||||
<template>
|
||||
<div class="title is-5" v-text="content.title" />
|
||||
<div class="subtitle is-6">
|
||||
<a @click="content.handler" v-text="content.subtitle" />
|
||||
</div>
|
||||
<div
|
||||
class="is-size-7 is-uppercase has-text-centered-mobile"
|
||||
v-text="content.count"
|
||||
/>
|
||||
<div class="buttons is-centered-mobile mt-5">
|
||||
<control-button
|
||||
v-for="(action, index) in content.actions"
|
||||
:key="index"
|
||||
:button="action"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import ControlButton from '@/components/ControlButton.vue'
|
||||
|
||||
export default {
|
||||
name: 'HeadingHero',
|
||||
components: { ControlButton },
|
||||
props: { content: { required: true, type: Object } }
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user