orchard/resources/cider-ui-tests/views/pages/artist.ejs

65 lines
No EOL
2.9 KiB
Text

<template v-if="page == 'artist-page' && artistPage.data.attributes">
<div class="content-inner artist-page">
<div class="artist-header">
<div class="row">
<div class="col-sm" style="width: auto;">
<div class="artist-image">
</div>
</div>
<div class="col flex-center">
<h1>{{ artistPage.data.attributes.name }}</h1>
</div>
</div>
</div>
<div class="artist-body">
<div class="row">
<div class="col-auto" v-if="artistPage.data.views['latest-release']">
<h3>Latest Release</h3>
<mediaitem-square-sp
v-for="song in artistPage.data.views['latest-release'].data"
:item="song"></mediaitem-square-sp>
</div>
<div class="col" v-if="artistPage.data.views['top-songs']">
<h3>Top Songs</h3>
<mediaitem-list-item
v-for="song in artistPage.data.views['top-songs'].data.limit(artistPage.topSongsExpanded ? 10 : 5)"
:item="song"></mediaitem-list-item>
<button class="showmoreless" @click="artistPage.topSongsExpanded = !artistPage.topSongsExpanded">
<template v-if="!artistPage.topSongsExpanded">
Show more
</template>
<template v-else>
Show less
</template>
</button>
</div>
</div>
<div class="row">
<div class="col">
<template v-for="(view) in artistPage.data.meta.views.order" v-if="artistPage.data.views[view].data.length != 0">
<div class="row">
<div class="col">
<h3>{{ artistPage.data.views[view].attributes.title ? artistPage.data.views[view].attributes.title : "???"}}</h3>
</div>
<div class="col-auto flex-center" v-if="view.data >= 10">
<button class="cd-btn-seeall">See All</button>
</div>
</div>
<mediaitem-scroller-horizontal-large
:items="artistPage.data.views[view].data.limit(10)"></mediaitem-scroller-horizontal-large>
</template>
<div class="row">
<div class="col">
<h3>About Artist Name</h3>
</div>
<div class="col">
</div>
</div>
<h3>Similar Artists</h3>
</div>
</div>
</div>
</div>
</template>