This repository has been archived by the owner on Sep 5, 2019. It is now read-only.
forked from SEA-Design-Dev/mean-stack-1
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #49 from mbuchthal/refactor1
add additional functionality and buttons, restyled buttons, refactor …
- Loading branch information
Showing
16 changed files
with
140 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
|
||
<article class="blog-details"> | ||
<h1>{{vm.blog.title}}</h1> | ||
<ul> | ||
<li>By: {{vm.blog.author}}</li> | ||
<li>Date: {{vm.blog.date}}</li> | ||
<li>Comments: {{vm.blog.comments}}</li> | ||
</ul> | ||
<p>{{vm.blog.content}}</p> | ||
<a href="#/blogs/{{vm.blog._id}}/edit">edit this post</a> | ||
<article class="blog_post"> | ||
<h2>{{vm.blog.title}}</h2> | ||
<div class="blog_info"> | ||
<ul class="blog-data"> | ||
<li>By: {{vm.blog.author}}</li> | ||
<li>Date: {{vm.blog.date}}</li> | ||
<li>Comments: {{vm.blog.comments}}</li> | ||
</ul> | ||
</div> | ||
<p class="full-post">{{vm.blog.content}}</p> | ||
<a href="#/blogs/{{vm.blog._id}}/edit" class="edit-button">Edit Blog</a> | ||
<a href="#/blogs" class="back-button">Back</a> | ||
</article> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,19 @@ | ||
<div> | ||
<article class="blog-detail" ng-repeat="blog in vm.blogs"> | ||
<h1>{{blog.title}}</h1> | ||
<h1 ng-if="!vm.blogs.length">No blog posts yet!</h1> | ||
<div class="blog-collection"> | ||
<article class="blog_post" ng-repeat="blog in vm.blogs"> | ||
<h2>{{blog.title}}</h2> | ||
<h2 ng-if="!vm.blogs.length">No blog posts yet!</h2> | ||
<p>{{blog.content | limitTo: 350}}</p> | ||
<ul ng-if="vm.blogs.length" class="blog-data"> | ||
<li>By: {{blog.author}}</li> | ||
<li>Date: {{blog.date}}</li> | ||
<li>Comments: {{blog.comments}}</li> | ||
</ul> | ||
<button ng-click="vm.delete(blog)">delete this blog</button> | ||
<a href="#/blogs/new">Add a new blog</a> | ||
<div class="blog_info_container"> | ||
<div class="blog_info"> | ||
<ul ng-if="vm.blogs.length" class="blog-data"> | ||
<li>By: {{blog.author}}</li> | ||
<li>Date: {{blog.date}}</li> | ||
<li>Comments: {{blog.comments}}</li> | ||
</ul> | ||
<a href="#/blogs/{{blog._id}}" class="read_more">Read More</a> | ||
<button ng-click="vm.delete(blog)">delete this blog</button> | ||
</div> | ||
</div> | ||
</article> | ||
<a href="#/blogs/new" class="add-blog">Add a new blog</a> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
|
||
body { | ||
padding: 0 5em; | ||
|
||
} | ||
// body { | ||
// padding: 0 5em; | ||
// } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
@mixin button-mock ($button-bk: inherit, $button-clr: #fff) { | ||
text-decoration: none; | ||
text-transform: uppercase; | ||
color: $button-clr; | ||
padding: 1em 2em; | ||
border: 1px solid #fff; | ||
border-radius: .5em; | ||
letter-spacing: .1em; | ||
margin: auto 1em; | ||
background-color: $button-bk; | ||
&:hover { | ||
background-color: $color-3; | ||
color: #000; | ||
border-color: $color-3; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,17 @@ | ||
.blog-detail{ | ||
display: block; | ||
line-height: 200%; | ||
font-family: $font-main; | ||
text-align: center; | ||
h1{ | ||
font-weight: bold; | ||
font-size: 2em; | ||
} | ||
button{ | ||
margin-top: 1em; | ||
margin-bottom: 1em; | ||
} | ||
a{ | ||
display: block; | ||
margin-bottom: 1em; | ||
padding: 0.8em 1.8em; | ||
color: #fff; | ||
background-color: #97F1E7; | ||
font-size: 1em; | ||
text-align: center; | ||
border-radius: 0.4em; | ||
border: 1px solid #000; | ||
border-width: 1px 3px 3px 1px; | ||
width: 10%; | ||
margin-left: 44.5%; | ||
} | ||
li{ | ||
display: inline; | ||
padding-right: 1.5em; | ||
font-style: italic; | ||
} | ||
|
||
.blog-collection { | ||
padding-bottom: 2em; | ||
} | ||
|
||
.add-blog { | ||
@include button-mock($color-1, #fff); | ||
font-size: 0.7em; | ||
} | ||
|
||
@media screen and (max-width: 50em) { | ||
.blog-detail{ | ||
a{ | ||
width: 40%; | ||
margin-left: 23%; | ||
} | ||
button{ | ||
width: 60%; | ||
margin-left: 5% | ||
} | ||
} | ||
} | ||
.read-more { | ||
@extend .add-blog; | ||
} | ||
|
||
.blog_info_container { | ||
@include flexbox; | ||
} |
Oops, something went wrong.