mirror of
https://github.com/arnaucube/decentralized-blogging-platform.git
synced 2026-02-07 11:26:43 +01:00
added post page, and added write page, with text editor
This commit is contained in:
@@ -5,10 +5,11 @@
|
||||
<div class="o_userProfileBackground">
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<img class="o_userImgCircular" ng-src="https://www.eyerys.com/sites/default/files/mark_zuckerberg.jpg" />
|
||||
<img class="o_userImgCircular o_profilePageImage" ng-src="https://www.eyerys.com/sites/default/files/mark_zuckerberg.jpg" />
|
||||
<h4>
|
||||
{{user.name}} {{user.lastname}}
|
||||
</h4>
|
||||
<h6 class="card-subtitle mb-2 text-muted">@{{user.username}}</h6>
|
||||
<p>{{user.description}}</p>
|
||||
<p>
|
||||
<a ng-href="#!/userLikes/{{user._id}}">
|
||||
@@ -35,17 +36,7 @@
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<div ng-repeat="post in user.posts">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">{{post.title}}</h5>
|
||||
<h6 class="card-subtitle mb-2 text-muted">{{post.subtitle}}</h6>
|
||||
<img ng-src="{{post.img}}" class="img-fluid" />
|
||||
<p class="card-text">{{post.content}}</p>
|
||||
<div class="pull-right">
|
||||
<i title="Server" class="fa fa-heart ct_red300 fa-1x"></i> 37
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div ng-include="'views/templates/post-thumb-template.html'"></div>
|
||||
<br>
|
||||
</div>
|
||||
</div>
|
||||
@@ -62,21 +53,11 @@
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<b>Featured posts</b>
|
||||
</div>
|
||||
<div class="">
|
||||
<h5>Featured posts</h5>
|
||||
<div ng-repeat="post in featured_posts">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">{{post.title}}</h5>
|
||||
<h6 class="card-subtitle mb-2 text-muted">{{post.subtitle}}</h6>
|
||||
<img ng-src="{{post.img}}" class="img-fluid" />
|
||||
<p class="card-text">{{post.content}}</p>
|
||||
<div class="pull-right">
|
||||
<i title="Server" class="fa fa-heart ct_red300 fa-1x"></i> 37
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<div ng-include="'views/templates/post-thumb-template.html'"></div>
|
||||
<br>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -20,40 +20,6 @@ angular.module('app.user', ['ngRoute'])
|
||||
console.log('no user');
|
||||
});*/
|
||||
//fake data
|
||||
$scope.user = {
|
||||
username: "mark_zuckerberg",
|
||||
name: "Mark",
|
||||
lastname: "Zuckerberg",
|
||||
description: "Hi all, I'm here to write decentralized blog posts.",
|
||||
twitter: "arnaucode",
|
||||
github: "arnaucode",
|
||||
posts: [
|
||||
{
|
||||
title: "This is the second post",
|
||||
subtitle: "this is the subtitle of the second post",
|
||||
img: "https://cdn-images-1.medium.com/fit/t/800/240/1*4_E6m7J0112DBi1Lmdniiw.png",
|
||||
content: "Some quick example text to build on the card title and make up the bulk of the card's content."
|
||||
},
|
||||
{
|
||||
title: "This is the first post",
|
||||
subtitle: "this is the subtitle of the first post",
|
||||
img: "https://bootstrap-themes.github.io/application/assets/img/unsplash_1.jpg",
|
||||
content: "Some quick example text to build on the card title and make up the bulk of the card's content."
|
||||
}
|
||||
]
|
||||
};
|
||||
$scope.featured_posts= [
|
||||
{
|
||||
title: "Thinking about python development",
|
||||
subtitle: "this is the subtitle of the second post",
|
||||
img: "https://cdn.static-economist.com/sites/default/files/images/2015/09/blogs/economist-explains/code2.png",
|
||||
content: "Some quick example text to build on the card title and make up the bulk of the card's content."
|
||||
},
|
||||
{
|
||||
title: "Thinking about G",
|
||||
subtitle: "this is the subtitle of the first post",
|
||||
img: "https://cdn-images-1.medium.com/max/1600/1*RNkyx-Zq7w61eR74nMYgnA.jpeg",
|
||||
content: "Some quick example text to build on the card title and make up the bulk of the card's content."
|
||||
}
|
||||
]
|
||||
$scope.user = user;
|
||||
$scope.featured_posts= featured_posts;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user