Added first revision of MusicBox
|
|
@ -0,0 +1,37 @@
|
||||||
|
<template>
|
||||||
|
<div class="music-box">
|
||||||
|
<img @load="onLoad" src="/static/demo/artwork-5.png" alt="Artwork">
|
||||||
|
<p class="title">Don't Hide - single</p>
|
||||||
|
<p class="artist">Mike Perry & Willie Willie Willie</p>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: 'MusicBox',
|
||||||
|
methods: {
|
||||||
|
onLoad () {
|
||||||
|
console.log('loaded')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped lang="sass">
|
||||||
|
div.music-box
|
||||||
|
width: 150px
|
||||||
|
img
|
||||||
|
border-radius: 4px
|
||||||
|
width: 100%
|
||||||
|
height: auto
|
||||||
|
p
|
||||||
|
text-overflow: ellipsis
|
||||||
|
white-space: nowrap
|
||||||
|
overflow: hidden
|
||||||
|
margin: 0.5rem 0
|
||||||
|
&.title
|
||||||
|
font-size: .9rem
|
||||||
|
&.artist
|
||||||
|
font-size: 0.8rem
|
||||||
|
color: lighten(black,50)
|
||||||
|
</style>
|
||||||
|
|
@ -36,8 +36,8 @@ export default {
|
||||||
<style lang="sass" scoped>
|
<style lang="sass" scoped>
|
||||||
section.action-bar
|
section.action-bar
|
||||||
display: flex
|
display: flex
|
||||||
padding: 1rem 2.5rem
|
|
||||||
align-items: center
|
align-items: center
|
||||||
|
padding-bottom: 1rem
|
||||||
.search-wrapper
|
.search-wrapper
|
||||||
transition: width 200ms
|
transition: width 200ms
|
||||||
transition: margin-top 100ms
|
transition: margin-top 100ms
|
||||||
|
|
|
||||||
|
|
@ -1,18 +1,28 @@
|
||||||
<template>
|
<template>
|
||||||
<section>
|
<section class="page">
|
||||||
<ActionBar />
|
<ActionBar />
|
||||||
<p>home</p>
|
<div>
|
||||||
|
<MusicBox />
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import ActionBar from './ActionBar'
|
import ActionBar from './ActionBar'
|
||||||
|
import MusicBox from '../components/MusicBox'
|
||||||
export default {
|
export default {
|
||||||
name: 'HomePage',
|
name: 'HomePage',
|
||||||
components: {ActionBar}
|
components: { ActionBar, MusicBox },
|
||||||
|
data: () => {
|
||||||
|
return {
|
||||||
|
top: []
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style scoped lang="sass">
|
||||||
|
section.page
|
||||||
|
padding: 1rem 2.5rem
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 56 KiB After Width: | Height: | Size: 56 KiB |
|
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 40 KiB |
|
Before Width: | Height: | Size: 61 KiB After Width: | Height: | Size: 61 KiB |
|
Before Width: | Height: | Size: 62 KiB After Width: | Height: | Size: 62 KiB |
|
Before Width: | Height: | Size: 76 KiB After Width: | Height: | Size: 76 KiB |
|
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 44 KiB |
|
Before Width: | Height: | Size: 60 KiB After Width: | Height: | Size: 60 KiB |
|
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 36 KiB |
|
Before Width: | Height: | Size: 51 KiB After Width: | Height: | Size: 51 KiB |
|
Before Width: | Height: | Size: 64 KiB After Width: | Height: | Size: 64 KiB |