Skip to content

Commit

Permalink
article: fix two column layout in article
Browse files Browse the repository at this point in the history
  • Loading branch information
macrat committed Jan 6, 2024
1 parent 2beeb01 commit 0821276
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion pages/blog/2024/01/blanktar-renewal.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ Next.jsをやめて完全に静的なサイトにした結果、以下のよう

まだ細かいチューンングをする前ですが、それでもかなりの高速化ができたようです。

<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(506px, 1fr)); grid-gap: 1em">
<div class="two-columns-20240106">
<div>

## Before
Expand All @@ -179,6 +179,18 @@ Next.jsをやめて完全に静的なサイトにした結果、以下のよう

</div>
</div>
<style>
.two-columns-20240106 {
display: grid;
grid-template-columns: 1fr 1fr;
grid-gap: 1em
}
@media (max-width: calc(800px)) {
.two-columns-20240106 {
display: block;
}
}
</style>


# リニューアルを終えて
Expand Down

0 comments on commit 0821276

Please sign in to comment.