0.2.3 #99
14 changed files with 73 additions and 46 deletions
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<main class="main">
|
<main class="main">
|
||||||
<form class="login-form" method="POST" action="{% url 'accounts:login' %}">
|
<form class="form login-form" method="POST" action="{% url 'accounts:login' %}">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<div class="form__header">
|
<div class="form__header">
|
||||||
<h1 class="form__title">Login</h1>
|
<h1 class="form__title">Login</h1>
|
||||||
|
|
|
||||||
|
|
@ -44,20 +44,20 @@ class PostModal extends React.Component {
|
||||||
</span>
|
</span>
|
||||||
</button>
|
</button>
|
||||||
<div className="post__header">
|
<div className="post__header">
|
||||||
<h1 className={titleClassName}>
|
<h1 className={titleClassName}>{`${post.title} `}</h1>
|
||||||
{`${post.title} `}
|
<div className="post__meta-info">
|
||||||
|
<span className="post__date">{publicationDate}</span>
|
||||||
<a
|
<a
|
||||||
className="post__link"
|
className="post__link"
|
||||||
href={post.url}
|
href={post.url}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
>
|
>
|
||||||
<img src="/static/link.svg" width="45" />
|
<img src="/static/link.svg" />
|
||||||
</a>
|
</a>
|
||||||
</h1>
|
|
||||||
<span className="post__date">{publicationDate}</span>
|
|
||||||
</div>
|
</div>
|
||||||
<aside className="post__meta-info">
|
</div>
|
||||||
|
<aside className="post__section-info">
|
||||||
{this.props.category && (
|
{this.props.category && (
|
||||||
<h5 title={this.props.category.name}>{this.props.category.name}</h5>
|
<h5 title={this.props.category.name}>{this.props.category.name}</h5>
|
||||||
)}
|
)}
|
||||||
|
|
|
||||||
|
|
@ -20,21 +20,23 @@ class PostItem extends React.Component {
|
||||||
this.props.selectPost(post);
|
this.props.selectPost(post);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<div className="posts-header">
|
|
||||||
<h5 className={titleClassName} title={post.title}>
|
<h5 className={titleClassName} title={post.title}>
|
||||||
{post.title}
|
{post.title}
|
||||||
</h5>
|
</h5>
|
||||||
|
|
||||||
|
<div className="posts-info">
|
||||||
|
<span className="posts-info__date" title={publicationDate}>
|
||||||
|
{publicationDate}
|
||||||
|
</span>
|
||||||
<a
|
<a
|
||||||
className="posts-header__link"
|
className="posts-info__link"
|
||||||
href={post.url}
|
href={post.url}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
>
|
>
|
||||||
<img src="/static/link.svg" width="20" />
|
<img src="/static/link.svg" />
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<span title={publicationDate}>{publicationDate}</span>
|
|
||||||
</li>
|
</li>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
padding: 15px;
|
padding: 15px;
|
||||||
|
|
||||||
width: 50%;
|
width: 50%;
|
||||||
border-radius: 2px;
|
border-radius: 5px;
|
||||||
|
|
||||||
background-color: $white;
|
background-color: $white;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,9 @@
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
||||||
width: 70%;
|
width: 70%;
|
||||||
font-family: $form-font;
|
border-radius: 5px;
|
||||||
|
|
||||||
|
font-family: $form-font;
|
||||||
background-color: $white;
|
background-color: $white;
|
||||||
|
|
||||||
&__fieldset {
|
&__fieldset {
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,7 @@
|
||||||
@import "posts-section/index";
|
@import "posts-section/index";
|
||||||
@import "posts/index";
|
@import "posts/index";
|
||||||
@import "posts-header/index";
|
@import "posts-header/index";
|
||||||
|
@import "posts-info/index";
|
||||||
@import "post/index";
|
@import "post/index";
|
||||||
@import "post-message/index";
|
@import "post-message/index";
|
||||||
@import "read-button/index";
|
@import "read-button/index";
|
||||||
|
|
|
||||||
|
|
@ -8,5 +8,4 @@
|
||||||
font-family: $article-font;
|
font-family: $article-font;
|
||||||
|
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
background-color: $white;
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,11 +5,11 @@
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
width: 80%;
|
width: 80%;
|
||||||
max-height: 90%;
|
height: 90%;
|
||||||
|
|
||||||
margin: 2% auto 5% auto;
|
margin: 2% auto 5% auto;
|
||||||
|
|
||||||
border-radius: 2px;
|
border-radius: 5px;
|
||||||
|
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
|
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
&__header {
|
&__header {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
padding: 20px 0 20px 0;
|
padding: 20px 0 10px 0;
|
||||||
width: 75%;
|
width: 75%;
|
||||||
|
|
||||||
font-family: $article-header-font;
|
font-family: $article-header-font;
|
||||||
|
|
@ -33,15 +33,16 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
&__link {
|
&__link {
|
||||||
height: 100%;
|
display: inline-flex;
|
||||||
|
padding: 0 10px;
|
||||||
|
|
||||||
& img {
|
& img {
|
||||||
height: 50%;
|
width: 30px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&__date {
|
&__date {
|
||||||
margin: 10px 0 0 0;
|
align-self: center;
|
||||||
font-size: small;
|
font-size: small;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -91,6 +92,13 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
&__meta-info {
|
&__meta-info {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
|
||||||
|
margin: 15px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__section-info {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,8 @@
|
||||||
.posts-header {
|
.posts-header {
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
padding: 0 5px 0 0;
|
|
||||||
|
|
||||||
width: 80%;
|
|
||||||
|
|
||||||
&__link {
|
|
||||||
display: flex;
|
|
||||||
padding: 0 0 0 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
&__title {
|
&__title {
|
||||||
|
width: 80%;
|
||||||
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,14 @@
|
||||||
|
.posts-info {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
|
||||||
|
width: 20%;
|
||||||
|
|
||||||
|
&__date {
|
||||||
|
align-self: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__link {
|
||||||
|
display: inline-flex;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
@import "posts-info";
|
||||||
|
|
@ -0,0 +1,19 @@
|
||||||
|
.posts-section {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
|
||||||
|
margin: 20px;
|
||||||
|
padding: 10px;
|
||||||
|
border-radius: 5px;
|
||||||
|
|
||||||
|
background-color: $white;
|
||||||
|
|
||||||
|
&:first-child {
|
||||||
|
padding: 0 10px 10px 10px;
|
||||||
|
margin: 0 20px 20px 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__name {
|
||||||
|
padding: 20px 0 10px 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -1,12 +1 @@
|
||||||
.posts-section {
|
@import "post-section";
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
|
|
||||||
padding: 10px;
|
|
||||||
|
|
||||||
&__name {
|
|
||||||
padding: 20px 0 10px 0;
|
|
||||||
|
|
||||||
border-top: 4px solid $azureish-white;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,10 @@
|
||||||
|
|
||||||
list-style: none;
|
list-style: none;
|
||||||
|
|
||||||
|
padding: 0;
|
||||||
|
|
||||||
&__item {
|
&__item {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
padding: 10px 0 10px 0;
|
padding: 10px 0 10px 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue