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
Binary file added .DS_Store
Binary file not shown.
File renamed without changes
112 changes: 112 additions & 0 deletions index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}

.container{
width: 100%;
}

.splashHead{
height: 50px;
background-color: #9A9B8D;
border-bottom: 2px solid black;
}

.splashLeft{
height: 710px;
background-color: #EEEEEE;
}

.splashTitle{
margin-top: 200px;
text-align: center;
}

.splashTitle span{
color: #693D76;
font-size: 84px;
font-family: sans-serif;
font-weight: 100;

}

.splashButton{
background-color: #343525;
color: #EEEEEE;
padding: 8px 20px;
text-align: center;
display: inline-block;
font-size: 23px;
font-family: sans-serif;
font-weight: 100;
border-radius: 5px;
height: 50px;
}


a {
color: inherit;
}

a:hover{
color: #EEEEEE;
text-decoration: none;
}

.splashRight{
height:710px;
}

.splashRight span img{
position: relative;
margin-left: -15px;
height:710px;
width: 104.4%;
opacity: 0.19;
z-index: 1;
}

.splashAlbumArt{
position: absolute;
height:225px;
width:225px;
z-index: 2;
margin-left: 35%;
}

.artOne{
top:8px;
}

.artTwo{
top:243px;
}

.artThree{
top:478px;
}

.albumArt{
width: 225px;
height: 225px;
margin-left: -15px;
}

.splashFoot{
height: 50px;
background-color: #67675B;
border-top: 2px solid black;
position: relative;
}

.splashFoot span{
color: white;
font-size: 20px;
font-weight: 200;
position: absolute;
top: 50%;
transform: translateY(-50%);
left: 5%;
}
70 changes: 62 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,65 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>


</body>

<head>
<meta charset="utf-8">
<title>Track Bin</title>
<!-- Linking js page -->
<script type="text/javascript" src="http://code.jquery.com/jquery-2.1.4.min.js"></script>
<script type="text/javascript" src="index.js"></script>

<!-- Importing Bootstrap -->
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">

<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">

<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>

<!-- Linking css page -->
<link rel="stylesheet" href="index.css">
</head>

<body>
<div class="container">
<section class="row">
<div class="col-md-12 splashHead">
</div>
</section>
<section class="row">
<div class="col-md-6 splashLeft">
<section class = "row">
<div class="col-md-6 col-md-offset-3 splashTitle">
<span>track bin</span>
</div>
<a href="playPage.html"><div class="col-md-6 col-md-offset-3 splashButton">
<span>choose tracks</span>
</div></a>
</section>
</div>
<div class="col-md-6 splashRight">
<span><img src="resources/track.jpg" alt="railroad"></span>
<section class = "row">
<div class="col-md-4 col-md-offset-4 splashAlbumArt artOne">
<img src="" id="pictureOne" class = "albumArt"/>
</div>
<div class="col-md-4 col-md-offset-4 splashAlbumArt artTwo">
<img src="" id="pictureTwo" class = "albumArt"/>
</div>
<div class="col-md-4 col-md-offset-4 splashAlbumArt artThree">
<img src="" id="pictureThree" class = "albumArt"/>
</div>
</section>
</div>
</section>
<section class="row">
<div class="col-md-12 splashFoot">
<span>&#169; 2017 kyle barker</span>
</div>
</section>
</div>
</body>

</html>
37 changes: 37 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
$(document).ready(function() {
console.log("ready!");

$(window).load(function() {
$.get("https://lit-fortress-6467.herokuapp.com/object", function(data) {

var dataArray = data["results"];
console.log(dataArray)
var coverArtArray = [];

//push to art array
for(var i = 0; i < dataArray.length; i++){
var coverArt = dataArray[i]["cover_art"];
coverArtArray.push(coverArt);
}
//make random piece of art
var randomArtOne = coverArtArray[Math.floor(Math.random()*coverArtArray.length)];
var randomArtTwo = coverArtArray[Math.floor(Math.random()*coverArtArray.length)];
var randomArtThree = coverArtArray[Math.floor(Math.random()*coverArtArray.length)];

//make sure we don't have duplicates on the art
while(randomArtOne === randomArtTwo || randomArtOne === randomArtThree || randomArtTwo === randomArtThree){
randomArtTwo = coverArtArray[Math.floor(Math.random()*coverArtArray.length)];
randomArtThree = coverArtArray[Math.floor(Math.random()*coverArtArray.length)];
}

var imageOneString = './images/' + randomArtOne;
var imageTwoString = './images/' + randomArtTwo;
var imageThreeString = './images/' + randomArtThree;


$("#pictureOne").attr('src', imageOneString);
$("#pictureTwo").attr('src', imageTwoString);
$("#pictureThree").attr('src', imageThreeString);
});
});
});
135 changes: 135 additions & 0 deletions playPage.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}

.container{
width: 100%;
}

.playHead{
height: 100px;
background-color: #9A9B8D;
}

.playHead span{
display: inline-block;
position: relative;
color: #EEEEEE;
font-size: 30px;
font-family: sans-serif;
font-weight: 100;
padding-left: 5%;
padding-top: 55px;
}

.trackSelector{
height: 150px;
overflow: auto;
white-space: nowrap;
overflow-x: scroll;
}

.artList {
color: #EEEEEE;
display: inline-block;
height: 100px;
width: 110%;
margin-top: 20px;
margin-left: 25px;
}

.albumArt{
height: 100px;
width: 100px;
margin-left: 30px;
cursor: pointer;
}

.selectedTracks{
height:270px;
background-color: #EEEEEE;
border: solid 4px black;
display: inline-block;
margin-top: 30px;
overflow: scroll;
}

.trackInfo{
font-size: 20px;
margin-left: -10px;
}


.clearAndSubmitRow{
height:175px;
display: inline-block;
margin-top: 30px;
}

.clearButton {
cursor: pointer;
}
.clearButton span{
background-color: #343525;
color: #EEEEEE;
padding: 8px 20px;
text-align: center;
display: inline-block;
font-size: 23px;
font-family: sans-serif;
font-weight: 100;
border-radius: 5px;
height: 50px;
width: 90%;
margin-left: -15px;
}

.submitButton {
cursor: pointer;
}

.submitButton span{
background-color: #343525;
color: #EEEEEE;
padding: 8px 20px;
text-align: center;
display: inline-block;
font-size: 23px;
font-family: sans-serif;
font-weight: 100;
border-radius: 5px;
height: 50px;
width: 90%;
margin-left: -45px;
}

.playFoot{
height: 50px;
background-color: #67675B;
position: relative;
}

.playFoot span{
color: white;
font-size: 20px;
font-weight: 200;
position: absolute;
top: 50%;
transform: translateY(-50%);
left: 5%;
}

.trackSelector::-webkit-scrollbar {
width: 1em;
}

.trackSelector::-webkit-scrollbar-track {
background-color: #EEEEEE;
}

.trackSelector::-webkit-scrollbar-thumb {
background-color: darkgrey;
border-radius: 7px;
}
Loading