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.
Binary file removed images/division_bell.jpg
Binary file not shown.
62 changes: 51 additions & 11 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,55 @@
<!DOCTYPE html>

<html>
<head>

<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<select name="my_select" style="height: 40px; line-height: 100px;">
<option name="reggae"> Select your genre </option>
<option name="reggae"> Reggae </option>
<option name="blues"> Blues </option>
</select>

</body>
<script
src="https://code.jquery.com/jquery-3.1.1.min.js"
integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8="
crossorigin="anonymous"></script>
<!-- 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>

<link rel="stylesheet" href="style.css">
<script type="text/javascript" src="script.js"></script>

</head>
<body>
<div class="container">
<div class="row">
<div class="col-borderL col-md-6">
<div class="row"></div>
<div class="col-md-4"></div>
<div class="row">
<div class="col-md-4">
<div id="track_bin">
<font color="purple">track bin</font></div>
<div>
<button type="button"id="choose">
<a href="playlistpage.html">choose tracks</a></button>
</div>
</div>
<div class="row"></div>
<div class="col-md-4"></div>
<div class="row"></div>
</div>
</div>
<div id="albumPhoto" class="col-borderR col-md-6">
</div>
<div class="row">
<div class="col-md-12" id="footer">
© 2017 Carol Cordova
</div>
</div>

</div>
</div>
</body>
</html>
66 changes: 66 additions & 0 deletions playlistpage.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
<!DOCTYPE html>

<html>

<head>
<meta charset="utf-8">
<script
src="https://code.jquery.com/jquery-3.1.1.min.js"
integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8="
crossorigin="anonymous"></script>
<!-- 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>

<link rel="stylesheet" href="style.css">
<script type="text/javascript" src="script.js"></script>

</head>
<body>
<div class="container-fluid">
<div class="row">
<div class="col-md-12" id="toprow">click an album to add its tracks to the bin</div>
</div>

<div class="row">
<div class="col-md-12" id="albumlist">

</div>

</div>
<div class="row">
<div class="col-md-10 col-md-offset-1" id="scroll">
<div class="horizontal">

</div>
</div>
</div>
<div class="row">
<div class="row">
<div class="col-md-8 col-md-offset-2" id="details">




</div>
<div class="row">
<div class="col-md-8 col-md-offset-2" id="buttons">
<button type="button"id="choose">clear tracks</button>
<button type="button"id="choose">submit bin</button>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12" id="footer">
© 2017 Carol Cordova
</div>
</div>
</div>
</div>
</body>
</html>
44 changes: 44 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@

/* Module 1: STRUCTURE AND CSS
* As a user, when I visit the splash page, I should see a page whose general layout matches the design mockup [excluding dynamic content]
* As a user, when I visit the splash page, I should see a railroad track with 19% opacity on the right hand side.
* As a user, when I visit the playlist page, I should see a page whose general layout matches the design mockup [excluding dynamic content]
* As a user, when I click "choose tracks" on the splash page, it takes me to the playlist page. */

/*## APIs:
A user will hit this api to get all of the albums:
https://lit-fortress-6467.herokuapp.com/object

A user will send a POST request to this api to send the playlist when completed. https://lit-fortress-6467.herokuapp.com/post*/


$( document ).ready(function() {
var albCovers = [];
$.getJSON('https://lit-fortress-6467.herokuapp.com/object/',function(data){
while(albCovers.length < 3){
var rand = Math.floor(Math.random() * data['results'].length);
var covers = albCovers.indexOf(data['results'][rand]['cover_art']);
if(albCovers.indexOf(data['results'][rand]['cover_art']) === -1){
albCovers.push(data['results'][rand]['cover_art']);
}
}
for (var i=0; i< albCovers.length; i++){
$("#albumPhoto").append(`
<div class="row">
<div class="col-md-4"></div>
<div id="image2" class="col-md-4">
<img src="images/${albCovers[i]}" class="img-responsive">
</div>
<div class="col-md-4">6</div>
</div>
`)
}
for (var i=0; i< data.results.length; i++) {
$("#albumlist").append('<img src="images/' + data.results[i].cover_art +'" class="img-responsive">')

}
//$("#details")=(data.results.name)


})
});
129 changes: 129 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
.container {
border-top: 30px solid #9a9b84;

}
.col-borderR {
background-image: url('/Users/ccordova/Documents/galvanize/mar 06 albums exercise/resources/track.fw.png');
background-position: center;
background-size:500px 900px;
background-repeat: repeat-y;
opacity: 0.81;
filter: alpha(opacity=50);
}

#choose {
color: white;
background-color: black;
border:3px solid black;
border-radius: 10%;
width: 150px;
height: 40px;

}

#track_bin {
align-items: center;
font-family: Avenir,Avenir,serif;
font-size: 42px;
color: purple;
}

.playlistcontainer {
border-top: 50px solid #9a9b84;
border-bottom: 30px solid #9a9b84;
text: 16px;
text-indent: 22px;
}

#albumlist {
align-items: center;
margin-bottom: 30px;

}
#albumlist img {
margin: 20px;
height: 130px;
width: 130px;
display: inline-block;
}

.col-borderL {
background-position: center;
}




}
.panel {
margin: 15px;
align-items: center;
}

#toprow {
padding-top: 15vh;
background-color: #9a9b84;
font-family: Avenir;
font-weight: normal;
color: white;
font-size: 25px;
}

#footer {
padding: 1vh;
text-indent: 2%;
background-color: #9a9b84;
font-family: Avenir;
font-weight: normal;
color: white;
font-size: 15px;
height:15%;

}

/*<.row {
height:200px;
}*/

#details {
border: 2px solid black;
border-radius: 2%;
height: 30vh;
margin-bottom:30px;
}
#scroll {
border: 1px solid black;
height: 2vh;
margin-bottom:6vh;

}

#buttons {
margin-bottom: 60px;
color:white;
}

// This container element gives us the scrollbars we want.
div.horizontal {
width: 100%;
height: 400px;
overflow: auto;
border: 1px solid black;
}

// table-layout: fixed does a lot of the magic, here. It makes sure that the "table cells" retain the pixel dimensions you want.
.table {
display: table;
table-layout: fixed;
width: 100%;
}

// Arranging your content inside the "cells" is as simple as using the vertical-align and text-align properties. Floats work, too.
article {
width: 400px;
height: 400px;
display: table-cell;
background: #e3e3e3;
vertical-align: middle;
text-align: center;
}