Skip to content

Commit

Permalink
Merge branch 'css2'
Browse files Browse the repository at this point in the history
  • Loading branch information
YOUR_GITHUB_USERNAME authored and YOUR_GITHUB_USERNAME committed Mar 7, 2016
2 parents 9e1b163 + d3d2fa3 commit 462b3ad
Show file tree
Hide file tree
Showing 13 changed files with 121 additions and 27 deletions.
Binary file added .DS_Store
Binary file not shown.
3 changes: 3 additions & 0 deletions models/genre.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@ var AlbumSchema = new Schema({
artistName: String,
name: String,
releaseDate: String,
coverImage: String,
genres: [String]
});

var GenreSchema = new Schema({
name: String,
coverImage: String,

albums: [AlbumSchema]
});

Expand Down
91 changes: 86 additions & 5 deletions public/css/styles.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
@import url('https://fonts.googleapis.com/css?family=Play');
/*@import url('vapor.ttf');*/

body {

font-family: 'Play';
}


.jumbotron {
background-image: url(/images/vapor1.png);
background-color: #CE869B;
background-size: cover;
background-repeat: no-repeat;
color: #EEE;
margin: -20px;
position: relative;
}

.jumbotron .container {
Expand All @@ -17,19 +27,44 @@
}

@font-face {
font-family: 'vapor';
src: url('fonts/vapor.ttf');
font-family: vapor;
src: url('/fonts/vapor.ttf');
}

.vaporfont {
font-family: 'vapor';

.btn-color {
background-color: #C5BCB0;
}

.btn-color {
background-color: #C5BCB0;
}


.legend2 {
font-family: vapor;
font-size: 40px;
font-weight: bold;

}

.vaporfont {
margin-top: 70px;
font-size: 50px;
font-weight: bold;
font-family: vapor;

}

.aFonts {

font-size: 20px;
}

.aFonts {

font-size: 20px;

/*---- Splash Style ----*/

.splash-title {
Expand Down Expand Up @@ -81,6 +116,51 @@
border-color: #5AFFF7;
}

.statue {

top: 166px;
left: 815px;
position: absolute;
}

.statue2{

top: -55px;
left: 946px;
position: absolute;
}

.mainbtn {
background-color: limegreen;
font-size: 20px;
/*
background-image: url('/images/tape.jpg');
background-size: 80px 60px;*/
/* padding: 19px 17px;
*/
}





















=======
.navbar-brand {
padding: 0px;
padding-left: 10px;
Expand All @@ -90,3 +170,4 @@
.navbar-brand > img {
height: 32px;
}
>>>>>>> master
Binary file added public/fonts/.DS_Store
Binary file not shown.
Binary file added public/images/ctapehot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/cupcake.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/tape.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/vstatue1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/vstatue2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/vstatueg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 2 additions & 5 deletions public/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,10 +287,7 @@ function renderAlbum(album) {
" <h4 class='inline-header'>Released date:</h4>" +
" <span class='album-release-date'>" + album.releaseDate + "</span>" +
" </li>" +
// " <li class='list-group-item'>" +
// " <h4 class='inline-header'>Cover Image:</h4>" +
// " <span class='cover-image'>" + album.coverImage + "</span>" +
// " </li>" +

" </ul>" +
" </div>" +
" </div>" +
Expand Down Expand Up @@ -321,7 +318,7 @@ function renderGenre(genre){
" <!-- begin genre internal row -->" +
" <div class='row'>" +
" <div class='col-md-3 col-xs-12 thumbnail genre-art'>" +
" <img src='" + "http://placehold.it/400x400'" + " alt='genre image'>" +
" <img src='" + genre.coverImage + "' alt='genre image'>" +
" </div>" +
" <div class='col-md-9 col-xs-12'>" +
" <ul class='list-group'>" +
Expand Down
21 changes: 17 additions & 4 deletions views/genres.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -36,24 +36,37 @@

<!-- Text input-->
<div class="form-group">
<label class="col-md-4 control-label" for="name">Genre Name</label>
<div class="col-md-4">
<label class=" aFonts col-md-4 control-label" for="name">Genre Name</label>
<div class="col-md-6">
<input id="name" name="name" type="text" placeholder="" class="form-control input-md" required="">

</div>
</div>


<!-- Text input-->
<div class="form-group">
<label class="aFonts col-md-4 control-label" for="coverImage">Cover Image</label>
<div class="col-md-6">
<input id="genreImage" name="coverImage" type="text" placeholder="URL" class="form-control input-md">

</div>
</div>

<!-- Button -->
<div class="form-group">
<label class="col-md-4 control-label" for="singlebutton">Save Genre</label>
<label class="aFonts col-md-4 control-label" for="singlebutton">Save Genre</label>
<div class="col-md-4">
<button id="singlebutton" class="btn btn-primary" name="singlebutton">Submit</button>
<button class="mainbtn" id="singlebutton" class="btn btn-primary" name="singlebutton">Submit</button>
</div>
</div>
</fieldset>
</form>
</div>
</div>

<img class= "statue2" src="/images/vstatueg.png" alt="picture">

</section>
</div>

Expand Down
26 changes: 13 additions & 13 deletions views/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
<div class="wrapper">
<div class="jumbotron">


<!-- Start Form -->
<section id='album-form' class="container">
<div class="row">
Expand All @@ -40,11 +41,11 @@
<fieldset>

<!-- Form Name -->
<legend>Add New Album</legend>
<legend class ="legend2">Add New Album</legend>

<!-- Text input-->
<div class="form-group">
<label class="col-md-4 control-label" for="name">Album Name</label>
<label class="aFonts col-md-4 control-label" for="name">Album Name</label>
<div class="col-md-6">
<input id="name" name="name" type="text" placeholder="" class="form-control input-md" required="">

Expand All @@ -53,7 +54,7 @@

<!-- Text input-->
<div class="form-group">
<label class="col-md-4 control-label" for="artistName">Artist Name</label>
<label class=" aFonts col-md-4 control-label" for="artistName">Artist Name</label>
<div class="col-md-6">
<input id="textinput" name="artistName" type="text" placeholder="" class="form-control input-md">

Expand All @@ -62,7 +63,7 @@

<!-- Text input-->
<div class="form-group">
<label class="col-md-4 control-label" for="releaseDate">Release Date</label>
<label class="aFonts col-md-4 control-label" for="releaseDate">Release Date</label>
<div class="col-md-6">
<input id="releaseDate" name="releaseDate" type="text" placeholder="1992" class="form-control input-md">

Expand All @@ -71,30 +72,27 @@

<!-- Textarea -->
<div class="form-group">
<label class="col-md-4 control-label" for="genres">Genres (separated by commas)</label>
<label class=" aFonts col-md-4 control-label" for="genres">Genres (separated by commas)</label>
<div class="col-md-6">
<textarea class="form-control" id="genres" name="genres">rock, pop</textarea>
</div>
</div>

<!-- Text input-->
<div class="form-group">
<label class="col-md-4 control-label" for="coverImage">Cover Image</label>
<label class="aFonts col-md-4 control-label" for="coverImage">Cover Image</label>
<div class="col-md-6">
<input id="coverImage" name="coverImage" type="text" placeholder="URL" class="form-control input-md">

</div>
</div>





<!-- Button -->
<div class="form-group">
<label class="col-md-4 control-label" for="singlebutton">Save Album</label>
<label class="aFonts col-md-4 control-label" for="singlebutton">Save Album</label>
<div class="col-md-4">
<button id="singlebutton" class="btn btn-primary" name="singlebutton">Submit</button>
<button id="singlebutton" class="mainbtn btn " name="singlebutton">Submit</button>
</div>
</div>
</fieldset>
Expand All @@ -104,8 +102,8 @@
</section>
<!-- End Form -->
<div class="container">
<h1 class="vaporfont">Welcome to tunely</h1>
<p>Your music binder!</p>
<h1 class="vaporfont">Welcome to Tunely</h1>
<p>Not your ordinary music!</p>
</div>
</div>

Expand All @@ -119,6 +117,8 @@
<div id='albums'>

</div>

<img class= "statue" src="./images/vstatue1.png" alt="picture">
</section>

<!-- begin songModal: this is not visible until you call .modal() on it -->
Expand Down

0 comments on commit 462b3ad

Please sign in to comment.