center buttons in div

This commit is contained in:
Troy 2025-01-26 13:48:52 +00:00
parent 31b2a973bc
commit c52e42a57f
Signed by: troy
GPG key ID: DFC06C02ED3B4711
4 changed files with 11 additions and 5 deletions

View file

@ -31,7 +31,9 @@ const work = await Promise.all(
<entry.Content />
</article>
{entry.data.article ? (
<Button href={entry.data.article} link="View project" />
<div class="flex justify-center">
<Button href={entry.data.article} link="View project" />
</div>
) : null}
</li>
))

View file

@ -42,7 +42,9 @@ const projects = allProjects
</ol>
{
allProjects.length > HOME.HOMESETTINGS!.NUM_PROJECTS_ON_HOMEPAGE ? (
<Button href="/projects" link="View all" />
<div class="flex justify-center">
<Button href="/projects" link="View all" />
</div>
) : null
}
</section>
@ -64,7 +66,9 @@ const projects = allProjects
</ol>
{
allPosts.length > HOME.HOMESETTINGS!.NUM_POSTS_ON_HOMEPAGE ? (
<Button href="/posts" link="View all" />
<div class="flex justify-center">
<Button href="/posts" link="View all" />
</div>
) : null
}
</section>