Skip to content

Commit 013cf4f

Browse files
Adjust blog view all alignment
1 parent ebd9489 commit 013cf4f

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed

components/blog/BlogPostsContainer.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,14 @@ const BlogPostsContainer = ({
5555
)
5656
}
5757
{viewall && posts.length >= 3 ? (
58-
<Link
59-
className={styles.viewAll}
60-
href={tag ? `/blog/category/${tag}` : '/blog/category/all'}
61-
>
62-
view all
63-
</Link>
58+
<Container>
59+
<Link
60+
className={styles.viewAll}
61+
href={tag ? `/blog/category/${tag}` : '/blog/category/all'}
62+
>
63+
view all
64+
</Link>
65+
</Container>
6466
) : null}
6567
</div>
6668
</RevealContentContainer>

styles/Blog.module.scss

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@
1010
.viewAll {
1111
font-size: 1.5rem;
1212
font-weight: bold;
13-
margin: -6rem 6.5rem 4rem 0;
14-
text-align: right;
13+
position: relative;
14+
top: -3rem;
15+
display: block;
16+
text-align: center;
1517

16-
@include mobile {
17-
text-align: center;
18-
margin: -5rem auto 4rem auto;
18+
@include desktop {
19+
float: right;
20+
top: -5rem;
1921
}
2022
}
2123

0 commit comments

Comments
 (0)