Update styles
This commit is contained in:
parent
0ecdd6e405
commit
b016eab27b
|
@ -11,9 +11,15 @@ export default class Post extends Component {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="content-wrapper">
|
<div className="content-wrapper">
|
||||||
<h1>{this.props.post.title}</h1>
|
<a href={this.props.post.link}>
|
||||||
<h4>{this.props.post.published}</h4>
|
<h1>{this.props.post.title}</h1>
|
||||||
<div className="content" dangerouslySetInnerHTML={{__html: this.props.post.body}}>
|
</a>
|
||||||
|
<div className="content">
|
||||||
|
<div className="post-date">
|
||||||
|
<h3>{this.props.post.published}</h3>
|
||||||
|
</div>
|
||||||
|
<div className="post-content" dangerouslySetInnerHTML={{__html: this.props.post.body}}>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|
|
@ -131,6 +131,10 @@ body {
|
||||||
padding: 0 5px 0 5px;
|
padding: 0 5px 0 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.post-content {
|
||||||
|
clear: both;
|
||||||
|
}
|
||||||
|
|
||||||
.post-summary, .post-content{
|
.post-summary, .post-content{
|
||||||
clear: both;
|
clear: both;
|
||||||
}
|
}
|
||||||
|
@ -155,6 +159,6 @@ body {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
@media screen and (min-width: $break-large) {
|
@media screen and (min-width: $break-large) {
|
||||||
width: 80%;
|
width: 90%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,6 +22,7 @@ api.get('/post/:postname', (req, res) => {
|
||||||
} else {
|
} else {
|
||||||
res.json({
|
res.json({
|
||||||
published: post.published,
|
published: post.published,
|
||||||
|
link: post.link,
|
||||||
title: post.title,
|
title: post.title,
|
||||||
body: data,
|
body: data,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue