Skip to content

Commit b51c741

Browse files
authored
Merge pull request #24 from 040code/layout
Some layouting
2 parents 0bdb976 + 185f189 commit b51c741

2 files changed

Lines changed: 12 additions & 4 deletions

File tree

src/components/PostsListItem.js

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import styled from 'styled-components'
99
const Post = styled.article`
1010
border-bottom: 1px solid rgba(214, 209, 230, 0.5);
1111
padding-bottom: 1.25rem;
12+
margin-bottom: 2rem;
1213
`
1314

1415
const ReadPost = styled(Link)`
@@ -37,7 +38,7 @@ const PostDate = styled.time`
3738
`
3839

3940
const PostHeader = styled.header`
40-
padding: 1em 0;
41+
padding: 0em 0;
4142
`
4243

4344
const Excerpt = styled.p`
@@ -46,12 +47,18 @@ const Excerpt = styled.p`
4647
`
4748

4849
const PostTitleLink = styled(Link)`
50+
font-size: 1.6rem;
51+
font-weight: bold;
52+
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
4953
&:hover {
5054
border-bottom: 1px dotted rgba(34, 34, 34, 0.8);
5155
}
5256
`
5357
const PostSubTitle = styled.p`
54-
padding: 1em 0;
58+
padding: 0.8rem 0;
59+
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
60+
font-style: italic;
61+
font-size: 1.2rem;
5562
`
5663

5764
class PostsListItem extends React.Component {
@@ -75,10 +82,11 @@ class PostsListItem extends React.Component {
7582
<TagList tags={tags} icon={true} />
7683
<PostDate>{date}</PostDate>
7784
<AuthorList authors={authors} />
78-
<ReadPost to={slug}>Read post ›</ReadPost>
85+
{/* <ReadPost to={slug}>Read post ›</ReadPost> */}
7986
</footer>
8087
</Post>
8188
)
8289
}
8390
}
8491
export default PostsListItem
92+

src/components/TagList.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class TagList extends React.Component {
3636

3737
return (
3838
<ListContainer>
39-
{icon === true && <Fragment>🏷 </Fragment>}
39+
{icon === true}
4040
{tags.map((tag, i) => {
4141
return (
4242
<Fragment key={`tag-list-${i}`}>

0 commit comments

Comments
 (0)