Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions PlaylistPage.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8">
<title>Playlist Page</title>
<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" href="PlaylistPageStyle.css">
<script type="text/javascript" src="PlayListPageJavascript.js"></script>
</head>
<body>
<div class="container">

<div id="headerTop">
<div class="header">
<div class="topNavBar col-sm-12">
<h2 class="navbarText">click an album to add its track to the bin</h2>
</div>
</div>
</div>

<div id="bodyMid">
<div class="row col-sm-12">
<div class="albumCoverCont">
<img class="images" >
</div>
</div>
<div class="albumListCont col-sm-9 col-sm-offset-1">
</div>
<div class="btnRow col-sm-4 col-sm-offset-1">
<button type="button" class="btn buttonOne">Clear Tracks</button>
<button type="button" class="btn buttonTwo">Submit Bin</button>
</div>
</div>

<div id="footerBottom">
<div class="footer col-sm-12">
<h4 class="footerText"> &copy 2017 Ismael Perez</h4>
</div>
</div>
</div>
</body>
</html>
15 changes: 15 additions & 0 deletions PlaylistPageJavascript.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
window.addEventListener('load', function(){

$.ajax({
url:'https://lit-fortress-6467.herokuapp.com/object',
success:function(data){

for (var i = 0; i < data.results.length; i++) {
var image = (data.results[0]['cover_art']);
var element = document.createElement('img');
$('image').attr('class', 'images')
$('.images').attr('src', image);
}
}
});
});
95 changes: 95 additions & 0 deletions PlaylistPageStyle.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
body {
margin: 0;
padding: 0;
height: 100%;
}

.container {
margin: 0;
padding: 0;
min-height: 100%;
width: 100%;
}

.topNavBar {
height: 120px;
width: 100%;
margin: 0;
padding: 0;
background-color: #9B9B8C;
}

.navbarText {
color: white;
font-weight: 200;
margin-left: 50px;
margin-top: 80px;
}

.row {
height: 120px;
border: 1px solid black;
margin: 0;
margin-bottom: 30px;
padding: 0;
}

.albumCoverCont {
height: 70px;
width: 70px;
border: 2px solid black;
margin-top: 10px;
margin-left: 40px;
}
.images{
height: 100%;
width: 100%;
}

.albumListCont {
background-color: #EEEEEE;
height: 160px;
border: 2px solid black;
}

.btnRow {
margin-top: 20px;
padding: 0;

}

.buttonOne {
width: 40%;
margin-right: 3%;
color: white;
background-color: #353526;
font-weight: 200;
height: 40px;
}

.buttonTwo {
width: 40%;
color: white;
background-color: #353526;
font-weight: 200;
height: 40px;
}

#footerBottom {
position: absolute;
bottom: 0;
width: 100%;
height: 40px;
}

.footer {
height: 40px;
background-color: #9B9B8C;

}

.footerText {
margin-left: 50px;
color: white;
font-weight: 200;
}
56 changes: 56 additions & 0 deletions SplashPage.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8">
<title>Splash Page</title>
<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" href="SplashPageStyle.css">
<script type="text/javascript" src="SplashPageJavascript.js"></script>
</head>

<body>
<div class="container">

<div id="headerTop">
<div class="header">
<div class="topNavBar col-sm-12">
</div>
</div>
</div>

<div class="bodyMid">
<div class="leftHalf">
<div class="leftSideContentCont">
<h1 class="trackBinText">track bin</h1>
<div class="leftSideButtonCont">
<button type="button" class="btn-lg chooseTracksBtn btn-lg-pull-center">Choose Tracks</button>
</div>
</div>
</div>
<div class="rightHalf col-sm-6">
<div class="albumsContainer">
<div class="albImgContOne col-sm-2">
<img class="albImgOne" >
</div>
<div class="albImgContTwo col-sm-2">
</div>
<div class="albImgContThree col-sm-2">
</div>
</div>
<div class="railImage">
</div>
<div class="block">
</div>
</div>
</div>

<div id="footerBottom">
<div class="footer col-sm-12">
<h4 class="footerText"> &copy 2017 Ismael Perez</h4>
</div>
</div>
</div>
</body>
</html>
14 changes: 14 additions & 0 deletions SplashPageJavascript.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
window.addEventListener('load', function(){

$.ajax({
url:'https://lit-fortress-6467.herokuapp.com/object',
success:function(data){
var image =(data["results"][0]['cover_art']);
$('.albImgOne').attr('src', image)

$('.chooseTracksBtn').click(function() {
window.location='PlaylistPage.html';
}); }
});

});
132 changes: 132 additions & 0 deletions SplashPageStyle.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
body{
margin: 0;
padding: 0;
height: 100%;
}


.container {
margin: 0;
padding: 0;
min-height: 100%;
width: 100%;
background-color: #EEEEEE;
}

.topNavBar {
height: 60px;
background-color: #9B9B8C;
margin: 0;
padding: 0;
border-bottom: 2px solid black;
}

.leftHalf {
background-color: #EEEEEE;
min-height: 100%;
width: 50%;
float: left;
}

.leftSideContentCont {
margin-left: 30%;
margin-top: 40%
}

.trackBinText {
text-align: center;
font-size: 48px;
font-weight: 200;
color: #692A7E;
margin: 0;
margin-bottom: 10px;
padding: 0;
width: 50%;
}

.chooseTracksBtn {
background-color: #353526;
color: #EEEEEE;
width: 200px;
}

.rightHalf {
height: 90vh;
width: 50%;
margin: 0;
padding: 0;
float: right;
}

.railImage {
background-image: url(resources/track.fw.png);
background-size: 100%;
opacity: 0.4;
height: 100%;
width: 100%;
z-index: 0;
}

.albumsContainer {

}

.albImgContOne {
height: 180px;
width: 180px;
background-color: red;
padding: 0;
margin-left: 36%;
margin-top: 3%;
margin-bottom: 1%;
text-align: center;
position: relative;
z-index: 1;
}
.albImgOne{
height: 100%;
width: 100%;
}

.albImgContTwo {
height: 180px;
width: 180px;
background-color: blue;
padding: 0;
margin-left: 36%;
margin-top: 1%;
margin-bottom: 1%;
position: relative;
z-index: 1;
}

.albImgContThree {
height: 180px;
width: 180px;
background-color: green;
padding: 0;
margin-left: 36%;
margin-top: 1%;
margin-bottom: 1%;
text-align: center;
position: relative;
z-index: 1;
}

#footerBottom {
position: absolute;
bottom: 0;
width: 100%;
height: 40px;
}

.footer {
height: 40px;
background-color: #9B9B8C;
}

.footerText {
margin-left: 50px;
color: white;
font-weight: 200;
}
11 changes: 0 additions & 11 deletions index.html

This file was deleted.