Skip to content

Commit 6ca5416

Browse files
committed
Make blog landing page responsive on mobile
1 parent 5c639f2 commit 6ca5416

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/components/Blogs/Blogs.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ const PostDiv = styled.div`
1616
width: 100%;
1717
margin: 0 auto;
1818
display: inline-block;
19+
@media (max-width: 900px) {
20+
padding: 0px;
21+
display: flex;
22+
flex-direction: column;
23+
}
1924
`
2025

2126

@@ -29,6 +34,9 @@ const ImageDiv = styled.div`
2934
border-radius: 10px;
3035
box-shadow: 0px 0px 8px 0px #ada8a8;
3136
}
37+
@media (max-width: 900px) {
38+
width: 100%;
39+
}
3240
`
3341

3442
const PostText = styled.div`
@@ -59,6 +67,9 @@ const PostText = styled.div`
5967
}
6068
}
6169
}
70+
@media (max-width: 900px) {
71+
width: 100%;
72+
}
6273
`
6374

6475
const Blogs: React.FC = () => {

0 commit comments

Comments
 (0)