fix blog + mobile layout issues

pull/1/head
Drake 2 years ago
parent 77afcff04e
commit c3a7be91a0

@ -6,11 +6,11 @@ const posts = allPosts.map(item => (Object.assign({}, item.frontmatter, {url: it
<div> <div>
{posts.map((post) => { {posts.map((post) => {
if (!post.wip) { return ( if (!post.wip) { return (
<a href={post.url} style="text-decoration: none;"> <a href={post.url}>
<p> <div class="main-content" style="margin-bottom: 10px; font-size: 125%;">
<b>{post.title}</b> - {post.pubDate}<br> <div><b>{post.title}</b> - {post.pubDate}<br></div>
<i>{post.description}</i> <i>{post.description}</i>
</p> </div>
</a> </a>
)}})} )}})}
</div> </div>

@ -3,6 +3,13 @@
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
text-align: center;
@media (max-width: 470px) {
margin-bottom: 132px;
}
@media (min-width: 470px) {
margin-bottom: 3.4375em;
}
} }
.blog-content { .blog-content {
@ -12,6 +19,7 @@
} }
.footer { .footer {
text-align: left; //Why does text-align being center in .main-content affect the footer at all?!
position: fixed; position: fixed;
display: flex; display: flex;
flex-grow: 1; flex-grow: 1;

Loading…
Cancel
Save