finished recommend box in the middle row
parent
f99bdc7e4d
commit
6635c063d8
|
|
@ -26,7 +26,7 @@ $FontPath: '/node_modules/roboto-slab-fontface-kit/fonts'
|
||||||
@include normalize()
|
@include normalize()
|
||||||
|
|
||||||
$lato-font-path: '/node_modules/lato-font/fonts'
|
$lato-font-path: '/node_modules/lato-font/fonts'
|
||||||
|
|
||||||
@include lato-include-font('normal')
|
@include lato-include-font('normal')
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="middle-row">
|
<div class="middle-row">
|
||||||
<div class="grow-half">
|
<div class="grow-half favourite">
|
||||||
<div class="favourite__title-container">
|
<div class="favourite__title-container">
|
||||||
<legend>favourite songs</legend>
|
<legend>favourite songs</legend>
|
||||||
<Button variant="outlined" class="view-all">View All</Button>
|
<Button variant="outlined" class="view-all">View All</Button>
|
||||||
|
|
@ -28,9 +28,23 @@
|
||||||
<List >
|
<List >
|
||||||
<ListItem v-for="favourite in favourites" :key="favourite.id" :item="favourite"></ListItem>
|
<ListItem v-for="favourite in favourites" :key="favourite.id" :item="favourite"></ListItem>
|
||||||
</List>
|
</List>
|
||||||
</div>
|
</div> <!-- favourite box-->
|
||||||
|
|
||||||
<div class="grow-half"></div>
|
<div class="grow-half recommend" >
|
||||||
|
<div class="recommend__title">
|
||||||
|
<legend>Recommended For You</legend>
|
||||||
|
<h3>Rock</h3>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<carousel :dots="false" :nav="false" :autoWidth="true" class="carousel-custom">
|
||||||
|
<MusicBox v-for="item in items" :key="item.id" :item="item" />
|
||||||
|
</carousel>
|
||||||
|
|
||||||
|
<!-- <carousel :dots="false" :nav="false" :autoWidth="true" class="carousel-custom">
|
||||||
|
<MusicBox v-for="item in items" :key="item.id" :item="item" />
|
||||||
|
</carousel> -->
|
||||||
|
|
||||||
|
</div> <!-- recommended box -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|
@ -42,10 +56,12 @@ import MusicRow from './MusicRow'
|
||||||
import List from './List'
|
import List from './List'
|
||||||
import ListItem from '../components/ListItem'
|
import ListItem from '../components/ListItem'
|
||||||
import Button from '../components/Button'
|
import Button from '../components/Button'
|
||||||
|
import carousel from 'vue-owl-carousel'
|
||||||
|
import MusicBox from '../components/MusicBox'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'HomePage',
|
name: 'HomePage',
|
||||||
components: { ActionBar, MusicRow, List, ListItem, Button },
|
components: { ActionBar, MusicRow, List, ListItem, Button, carousel, MusicBox },
|
||||||
data: () => {
|
data: () => {
|
||||||
return {
|
return {
|
||||||
items: [
|
items: [
|
||||||
|
|
@ -118,12 +134,69 @@ export default {
|
||||||
artist: 'The Weeknd',
|
artist: 'The Weeknd',
|
||||||
duration: '4:30',
|
duration: '4:30',
|
||||||
artwork: '/static/demo/starboy.png'
|
artwork: '/static/demo/starboy.png'
|
||||||
|
}
|
||||||
|
// {
|
||||||
|
// id: 3,
|
||||||
|
// title: 'Tilte',
|
||||||
|
// artist: 'Juice WRLD',
|
||||||
|
// duration: '5:30',
|
||||||
|
// artwork: '/static/demo/clever.jpg'
|
||||||
|
// }
|
||||||
|
],
|
||||||
|
|
||||||
|
recommends: [
|
||||||
|
{
|
||||||
|
id: 0,
|
||||||
|
title: 'Habiba',
|
||||||
|
artist: 'Oldasinus',
|
||||||
|
artwork: '/static/demo/habiba.jpg'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 1,
|
||||||
|
title: 'Starboy',
|
||||||
|
artist: 'The Weeknd',
|
||||||
|
artwork: '/static/demo/starboy.png'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 2,
|
||||||
|
title: 'Tilte',
|
||||||
|
artist: 'Juice WRLD',
|
||||||
|
artwork: '/static/demo/clever.jpg'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 3,
|
id: 3,
|
||||||
|
title: 'Habiba',
|
||||||
|
artist: 'Oldasinus',
|
||||||
|
artwork: '/static/demo/habiba.jpg'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 4,
|
||||||
|
title: 'Starboy',
|
||||||
|
artist: 'The Weeknd',
|
||||||
|
artwork: '/static/demo/starboy.png'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 5,
|
||||||
|
title: 'Tilte',
|
||||||
|
artist: 'Juice WRLD',
|
||||||
|
artwork: '/static/demo/clever.jpg'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 6,
|
||||||
|
title: 'Habiba',
|
||||||
|
artist: 'Oldasinus',
|
||||||
|
artwork: '/static/demo/habiba.jpg'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 7,
|
||||||
|
title: 'Starboy',
|
||||||
|
artist: 'The Weeknd',
|
||||||
|
artwork: '/static/demo/starboy.png'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 8,
|
||||||
title: 'Tilte',
|
title: 'Tilte',
|
||||||
artist: 'Juice WRLD',
|
artist: 'Juice WRLD',
|
||||||
duration: '5:30',
|
|
||||||
artwork: '/static/demo/clever.jpg'
|
artwork: '/static/demo/clever.jpg'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
@ -133,11 +206,13 @@ export default {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="sass">
|
<style lang="sass">
|
||||||
|
@import url('https://fonts.googleapis.com/css?family=Nothing+You+Could+Do&display=swap') // have to refactor this
|
||||||
|
|
||||||
section.page
|
section.page
|
||||||
padding: 1rem 2.5rem
|
padding: 1rem 2.5rem
|
||||||
overflow-x: hidden
|
overflow-x: hidden
|
||||||
.VueCarousel-wrapper
|
.VueCarousel-wrapper
|
||||||
overflow: unset
|
overflow: unset
|
||||||
|
|
||||||
.middle-row
|
.middle-row
|
||||||
display: flex
|
display: flex
|
||||||
|
|
@ -171,7 +246,7 @@ section.page
|
||||||
legend
|
legend
|
||||||
font-size: 2rem
|
font-size: 2rem
|
||||||
font-family: 'Roboto Slab', serif
|
font-family: 'Roboto Slab', serif
|
||||||
margin: 20px 0px
|
margin: 15px 0px
|
||||||
text-transform: capitalize
|
text-transform: capitalize
|
||||||
|
|
||||||
.view-all
|
.view-all
|
||||||
|
|
@ -183,4 +258,33 @@ section.page
|
||||||
display: flex
|
display: flex
|
||||||
align-items: center
|
align-items: center
|
||||||
justify-content: center
|
justify-content: center
|
||||||
|
|
||||||
|
.recommend
|
||||||
|
margin-left: 2rem
|
||||||
|
padding: 0
|
||||||
|
&__title
|
||||||
|
display: flex
|
||||||
|
align-items: center
|
||||||
|
legend
|
||||||
|
font-size: 2rem
|
||||||
|
font-family: 'Roboto Slab', serif
|
||||||
|
margin: 15px 0px 20px 0
|
||||||
|
text-transform: capitalize
|
||||||
|
|
||||||
|
h3
|
||||||
|
font-size: 1.5rem
|
||||||
|
font-weight: 200
|
||||||
|
font-family: 'Nothing You Could Do', cursive;
|
||||||
|
margin-left: 1rem
|
||||||
|
.carousel-custom
|
||||||
|
.owl-stage-outer
|
||||||
|
overflow: unset
|
||||||
|
|
||||||
|
@media(max-width: 1000px)
|
||||||
|
.middle-row
|
||||||
|
flex-wrap: wrap
|
||||||
|
|
||||||
|
.recommend
|
||||||
|
margin-left: 0
|
||||||
|
margin-top: 1.5rem
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue