-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
134 additions
and
37 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
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,20 +1,53 @@ | ||
{% extends 'base.html' %} {% block content %} | ||
<!-- | ||
static 넣으려면 이렇게 합시다. | ||
{% load static %} | ||
<img src="{% static 'img/ssu_likelion_logo.png'%}" /> | ||
--> | ||
<a href="{% url 'new' %}">create post</a> | ||
<br /> | ||
<br /> | ||
{% for post in posts %} | ||
<div> | ||
<a href="{%url 'profile' post.writer.id%}"><p>{{post.writer.nickName}}</p></a> | ||
<p>{{post.pub_date}}</p> | ||
<a href="{%url 'detail' post.id%}" | ||
><p><img src="{{post.image.url}}" /></p | ||
></a> | ||
{% extends 'base.html' %} {% load static %} {% block moreHead %} | ||
<link href="{% static 'css/home.css'%}" rel="stylesheet" type="text/css" /> | ||
{% endblock %}{% block content %} | ||
<div class="main"> | ||
{% for post in posts %} | ||
<section class="cardViewSection"> | ||
<div class="cardView"> | ||
<div class="cardHeader"> | ||
<div class="userNickName"> | ||
<a href="{%url 'profile' post.writer.id%}" | ||
>{{post.writer.nickName}}</a | ||
> | ||
</div> | ||
</div> | ||
<div class="cardImage"> | ||
<img src="{{post.image.url}}" /> | ||
</div> | ||
</div> | ||
|
||
<div class="cardInfo"> | ||
<div class="infoLeft"> | ||
<img src="{% static '/img/liked.png'%}" alt="좋아용" class="feedImg" /> | ||
<img | ||
src="{% static '/img/comment.png'%}" | ||
alt="코멘트" | ||
class="feedImg" | ||
/> | ||
<img src="{% static '/img/upload.png'%}" alt="업로드" class="feedImg" /> | ||
</div> | ||
<div class="infoRight"> | ||
<a href="{% url 'edit' post.id%}"> | ||
<img src="{% static '/img/edit.png'%}" alt="수정" class="feedImg" /> | ||
</a> | ||
<a href="{% url 'delete' post.id%}"> | ||
<img src="{% static '/img/delete.png'%}" alt="삭제" class="feedImg" /> | ||
</a> | ||
</div> | ||
</div> | ||
<div class="comment"> | ||
comment1<br /> | ||
comment2<br /> | ||
</div> | ||
<div class="comment_form"> | ||
<form action=""> | ||
<input type="text" placeholder="댓글 입력.." /> | ||
</form> | ||
</div> | ||
</section> | ||
<br /> | ||
<br /> | ||
{% endfor %} | ||
</div> | ||
<br /> | ||
<br /> | ||
{% endfor %} {% endblock %} | ||
{% endblock %} |
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,11 +1,42 @@ | ||
{{writer.nickName}}님이 쓰신 글 목록 {% for post in writer_posts %} | ||
<div> | ||
<p>{{post.writer.nickName}}</p> | ||
<p>{{post.pub_date}}</p> | ||
<a href="{%url 'detail' post.id%}" | ||
><p><img src="{{post.image.url}}" /></p | ||
></a> | ||
{% extends 'base.html' %} {% load static %} {% block moreHead %} | ||
<link href="{% static 'css/profile.css'%}" rel="stylesheet" type="text/css" /> | ||
{% endblock %} {% block content %} | ||
<!--프로필 헤더--> | ||
<div class="profileHeader"> | ||
<div class="profileImgBox"> | ||
<button> | ||
<img | ||
src="{% static '/img/ssu_likelion_logo_150x150.png'%}" | ||
alt="profileImg" | ||
/> | ||
</button> | ||
</div> | ||
<div class="profileInfoBox"> | ||
<div class="UserNickNameBox"> | ||
<h1>{{writer.nickName}}</h1> | ||
<button>프로필 편집</button> | ||
</div> | ||
<div class="UserFeedInfo"> | ||
<ul> | ||
<li>000 게시물</li> | ||
<li>000 팔로워</li> | ||
<li>000 팔로잉</li> | ||
</ul> | ||
</div> | ||
<div>hello world✈</div> | ||
</div> | ||
</div> | ||
<br /> | ||
<br /> | ||
{% endfor %} | ||
|
||
<!--유저 피드--> | ||
<main> | ||
{% for post in writer_posts %} | ||
<div class="postCard"> | ||
<img src="{{post.image.url}}" /> | ||
<ul aria-hidden="true"> | ||
<li>Likes: 0</li> | ||
<li>Comments: 0</li> | ||
</ul> | ||
</div> | ||
{% endfor %} | ||
</main> | ||
{% endblock %} |
File renamed without changes.
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