combine.fm/views/index.ejs

44 lines
1.5 KiB
Text
Raw Normal View History

<% include header.ejs %>
<header>
<h1><a href="/">match<span class="audio-lighten">.audio</span></a></h1>
</header>
2014-11-30 12:21:03 +00:00
<div class="container">
2014-12-04 00:35:04 +00:00
<div class="row share-form">
<div class="col-md-6 col-md-offset-3">
2014-12-04 00:35:04 +00:00
<form role="form" method="post" action="/search">
<div class="input-group input-group-lg">
2014-12-04 23:50:45 +00:00
<input type="text" name="url" placeholder="Paste link here" class="form-control" autofocus>
2014-12-04 00:35:04 +00:00
<span class="input-group-btn">
2014-12-04 13:01:45 +00:00
<input type="submit" class="btn btn-lg btn-custom" value="Share Music">
2014-12-04 00:35:04 +00:00
</span>
</div>
2014-12-01 12:41:26 +00:00
</form>
2014-12-05 18:18:39 +00:00
<% if (error.length > 0) { %>
<p class="alert alert-danger"><%= error %></p>
<% } %>
2014-12-01 12:41:26 +00:00
</div>
2014-11-30 12:21:03 +00:00
</div>
2014-12-04 00:35:04 +00:00
2014-12-05 18:18:39 +00:00
<div class="row blurb">
<div class="col-md-6 col-md-offset-3">
2014-12-04 23:28:19 +00:00
<p>Make sharing from music services better.
We match album and track links from Rdio, Spotify, Deezer, Beats Music, Google Music and iTunes and give you back a link with all of them.</p>
2014-12-06 11:14:46 +00:00
</div>
</div>
<div class="row">
<div class="col-md-6 col-md-offset-3">
<% if (recent.length) { %><h2>Recently Shared</h2><% } %>
<div class="row recent">
<% for (var i=0;i < recent.length;i++) { var item = recent[i].items[0]; %>
2014-12-06 12:24:03 +00:00
<div class="col-sm-4 col-xs-6">
2014-12-06 11:14:46 +00:00
<a href="/<%= item.service.replace("playmusic", "") %>/<%= item.type %>/<%= item.id %>"><img src="<%= item.artwork %>" width="100%"></a>
2014-12-06 12:24:03 +00:00
</div>
2014-12-06 11:14:46 +00:00
<% } %>
</div>
2014-11-30 12:21:03 +00:00
</div>
</div>
</div>
<% include footer.ejs %>