Added roboto-slab-fontface-kit and adjusted MusicRow title

pull/16/head
Nikan Dalvand 2019-07-24 19:01:00 +04:30
parent 516e283cb4
commit 11cefcb63e
4 changed files with 13 additions and 2 deletions

5
package-lock.json generated
View File

@ -14231,6 +14231,11 @@
"inherits": "^2.0.1" "inherits": "^2.0.1"
} }
}, },
"roboto-slab-fontface-kit": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/roboto-slab-fontface-kit/-/roboto-slab-fontface-kit-1.0.2.tgz",
"integrity": "sha512-EdwkOvb6+D7ENrnjs1JzuHQHbeeEuQpddtbYqHzjl+c4dE2Vep0Jh5CHkpQkAhj+nELrXEUikzDayvIn2xzNNA=="
},
"run-async": { "run-async": {
"version": "2.3.0", "version": "2.3.0",
"resolved": "https://registry.npmjs.org/run-async/-/run-async-2.3.0.tgz", "resolved": "https://registry.npmjs.org/run-async/-/run-async-2.3.0.tgz",

View File

@ -59,6 +59,7 @@
"axios": "^0.18.0", "axios": "^0.18.0",
"dominant-color": "0.0.1", "dominant-color": "0.0.1",
"normalize-scss": "^7.0.1", "normalize-scss": "^7.0.1",
"roboto-slab-fontface-kit": "^1.0.2",
"vue": "^2.5.16", "vue": "^2.5.16",
"vue-carousel": "^0.18.0", "vue-carousel": "^0.18.0",
"vue-custom-scrollbar": "^1.1.0", "vue-custom-scrollbar": "^1.1.0",

View File

@ -21,6 +21,8 @@ export default {
<style lang="sass"> <style lang="sass">
@import 'normalize-scss' @import 'normalize-scss'
@import 'lato-font/scss/_public-api.scss' @import 'lato-font/scss/_public-api.scss'
$FontPath: '/node_modules/roboto-slab-fontface-kit/fonts'
@import 'roboto-slab-fontface-kit/roboto-slab.scss'
@include normalize() @include normalize()
$lato-font-path: '/node_modules/lato-font/fonts' $lato-font-path: '/node_modules/lato-font/fonts'

View File

@ -1,6 +1,6 @@
<template> <template>
<section> <section>
<h1>Top music of the month</h1> <legend>Top music of the month</legend>
<Carousel class="carousel-custom" :paginationEnabled="false" :scrollPerPage="false" :perPageCustom="[[300, 2], [540, 3], [740, 4], [800, 3], [900, 4], [1000, 4], [1200, 5] , [1300, 6]]"> <Carousel class="carousel-custom" :paginationEnabled="false" :scrollPerPage="false" :perPageCustom="[[300, 2], [540, 3], [740, 4], [800, 3], [900, 4], [1000, 4], [1200, 5] , [1300, 6]]">
<Slide v-for="item in items" :key="item.id"> <Slide v-for="item in items" :key="item.id">
<MusicBox :item="item" /> <MusicBox :item="item" />
@ -20,7 +20,10 @@ export default {
</script> </script>
<style scoped lang="sass"> <style scoped lang="sass">
section section
h1 legend
font-size: 2rem
font-family: 'Roboto Slab', serif
margin: 20px 0px margin: 20px 0px
</style> </style>