Some styling and removing extra stuff
This commit is contained in:
@@ -83,6 +83,24 @@ const posts = (await getCollection('blog')).sort(
|
||||
font-size: 1.563em;
|
||||
}
|
||||
}
|
||||
|
||||
.post {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: top;
|
||||
gap: 0.5em;
|
||||
}
|
||||
|
||||
.post-text {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 0.5em;
|
||||
}
|
||||
|
||||
.post-image img {
|
||||
max-height: 200px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
@@ -94,11 +112,17 @@ const posts = (await getCollection('blog')).sort(
|
||||
posts.map((post) => (
|
||||
<li>
|
||||
<a href={`/blog/${post.id}/`}>
|
||||
<img width={720} height={360} src={post.data.heroImage} alt="" />
|
||||
<h4 class="title">{post.data.title}</h4>
|
||||
<p class="date">
|
||||
<FormattedDate date={post.data.pubDate} />
|
||||
</p>
|
||||
<div class="post">
|
||||
<div class="post-image">
|
||||
<img width={200} height={200} src={post.data.heroImage} alt="" />
|
||||
</div>
|
||||
<div class="post-text">
|
||||
<p class="date">
|
||||
<FormattedDate date={post.data.pubDate} />
|
||||
</p>
|
||||
<h4 class="title">{post.data.title}</h4>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
))
|
||||
|
||||
Reference in New Issue
Block a user