2016-10-03 13:31:29 +01:00
< template >
2021-01-23 16:59:26 +00:00
< div id = "home" class = "container" >
2018-04-19 22:22:49 +01:00
< div class = "notification is-success" v-if = "slack" >
< button class = "delete" v -on : click = "slack = false;closeNotification()" > < / button >
Combine . fm has been added to your Slack workspace !
< / div >
2016-10-03 13:31:29 +01:00
< search > < / search >
< div class = "blurb" >
< p >
2017-10-23 17:58:23 +01:00
Combine . fm makes sharing from music services better . What happens when you share your favourite song on Spotify with a friend , but they don ' t use Spotify ?
2016-10-03 13:31:29 +01:00
< / p >
< p >
2021-01-24 20:59:16 +00:00
We match album and track links from Spotify , Apple Music , Deezer , Youtube , and Youtube Music and give you back one link with matches we find on all of them .
2016-10-03 13:31:29 +01:00
< / p >
< / div >
< div class = "recently-shared" >
< h2 class = "title is-2" > Recently Shared < / h2 >
< ul class = "columns is-multiline" >
< li v-for = "(item, index) in recents" class="column is-one-third " >
< router-link : to = "{ name: 'share', params: { service: item.service, type: item.albumName ? 'track' : 'album', id: item.externalId }}" > < div v -bind : style = "{ backgroundImage: `url(${item.matches.find(function(el) { return el.service == item.service }).artworkLarge })` }" class = "artwork" >
< / div > < / router-link >
< / li >
< / ul >
< / div >
< div class = "faq" >
< h2 class = "title is-2" > Questions ? < / h2 >
< h3 class = "title is-3" > Why would I want to use this ? < / h3 >
2017-10-23 17:58:23 +01:00
< p > Sometimes when people want to share music they don 't know what service their friends are using. Combine.fm let' s you take a link from one service and expand it into a link that supports all services . < / p >
2016-10-03 13:31:29 +01:00
< h3 class = "title is-3" > I still don ' t get it . < / h3 >
2021-01-24 20:59:16 +00:00
< p > That 's not actually a question, but that' s ok . Here 's an example: I' m listening to a cool new album I found on Spotify . So I go to the address bar ( the box that sometimes says https : //www.google.com in it) and copy the link to share with my friend. But my friend uses Apple Music. So first I go to Combine.fm and paste the link there, then grab the Combine.fm link from the address bar and send them that link instead.</p>
2016-10-03 13:31:29 +01:00
< h3 class = "title is-3" > Where do I find a link to paste in the box ? < / h3 >
< p > Most music services have a 'share' dialog for albums and tracks in their interface . If you have them open in a web browser instead of an app , you can simply copy and paste the address bar and we ' ll work out the rest . < / p >
< h3 class = "title is-3" > Can I share playlists ? < / h3 >
< p > Unfortunately not . Playlists would add a huge amount of complexity and would almost certainly cause the site to break the API limits imposed by some of the services we support . < / p >
< h3 class = "title is-3" > Why don ' t you guys support Bandcamp , Amazon Music , Sony Music Unlimited … ? < / h3 >
2017-10-23 17:58:23 +01:00
< p > Let me stop you there . Combine . fm is open source , that means any capable programmer who wants to add other music services can look at our code and submit changes . If you 're not a programmer, you can always submit a request and maybe we' ll do it for you . < / p >
2016-10-03 13:31:29 +01:00
< / div >
< div >
< h2 class = "title is-2" > Tools < / h2 >
2018-04-19 22:03:49 +01:00
< p >
< a href = "https://slack.com/oauth/authorize?client_id=349358389361.349904899522&scope=links:read,chat:write:bot" > < img alt = "Add to Slack" height = "40" width = "139" src = "https://platform.slack-edge.com/img/add_to_slack.png" srcset = "https://platform.slack-edge.com/img/add_to_slack.png 1x, https://platform.slack-edge.com/img/add_to_slack@2x.png 2x" / > < / a >
< / p >
< p >
Add to Slack and get links matched inline .
< / p >
< hr / >
< p >
< a href = "https://chrome.google.com/webstore/detail/kjfpkmfgcflggjaldcfnoppjlpnidolk" > < img src = "/assets/images/chrome-web-store.png" alt = "Download the Chrome Extension" height = "75" width = "248" / > < / a >
< / p >
< p >
Download the Chrome Extension and get Combine . fm links right from your address bar .
< / p >
2016-10-03 13:31:29 +01:00
< / div >
< / div >
< / template >
< script >
import { fetchRecents } from '../store/api' ;
import search from '../components/search.vue' ;
export default {
name : 'index-view' ,
components : { search } ,
2018-04-08 16:31:46 +01:00
created ( ) {
2016-10-03 13:31:29 +01:00
// fetch the data when the view is created and the data is
// already being observed
this . fetch ( ) ;
2016-10-24 00:18:36 +01:00
this . $store . state . share = false ;
2016-10-03 13:31:29 +01:00
} ,
data ( ) {
return {
recents : { } ,
2018-04-19 22:22:49 +01:00
slack : this . $route . query . slack ,
2016-10-03 13:31:29 +01:00
} ;
} ,
watch : {
2018-04-08 16:31:46 +01:00
$route : 'fetch' ,
recents ( ) {
2016-10-03 13:31:29 +01:00
if ( typeof document !== 'undefined' ) {
2018-04-08 16:31:46 +01:00
document . title = 'Combine.fm • Share Music' ;
2016-10-03 13:31:29 +01:00
}
} ,
} ,
methods : {
2018-04-08 16:31:46 +01:00
fetch ( ) {
2016-10-03 13:31:29 +01:00
if ( ! this . $store . state . recents ) {
fetchRecents ( ) . then ( ( res ) => {
this . recents = res . body . recents ;
} ) ;
} else {
this . recents = this . $store . state . recents ;
}
} ,
2018-04-19 22:22:49 +01:00
closeNotification ( ) {
this . $router . replace ( '/' ) ;
} ,
2016-10-03 13:31:29 +01:00
} ,
2018-04-08 16:31:46 +01:00
} ;
2016-10-03 13:31:29 +01:00
< / script >
2018-04-28 20:56:20 +01:00
< style lang = "scss" >
2016-10-03 13:31:29 +01:00
. blurb {
margin - bottom : 50 px ;
}
. recently - shared {
margin - bottom : 50 px ;
}
. faq {
margin - bottom : 50 px ;
}
. faq p {
margin - bottom : 30 px ;
}
2021-01-23 16:59:26 +00:00
# home {
2016-10-23 23:04:32 +01:00
max - width : 600 px ;
2016-10-03 13:31:29 +01:00
margin - top : 40 px ;
}
p {
margin - bottom : 10 px ;
}
. recent . artwork {
margin - bottom : 30 px ;
}
< / style >