fixing layout blog bug

This commit is contained in:
Manuel Ernesto Garcia 2022-10-03 21:52:02 -04:00
parent 9600adbf9f
commit 82f17479bc
2 changed files with 2 additions and 2 deletions

View file

@ -19,7 +19,7 @@ const { image, title = SITE_TITLE, description = SITE_DESCRIPTION } = Astro.prop
<input id="my-drawer" type="checkbox" class="drawer-toggle" />
<div class="drawer-content flex flex-col bg-base-100">
<Header title={SITE_TITLE} />
<div class="flex justify-center">
<div class="md:flex md:justify-center">
<main class="p-6 pt-10 max-w-[900px]">
<slot />
</main>

View file

@ -18,7 +18,7 @@ const {
---
<BaseLayout title={title} description={description} image={heroImage}>
<main class="flex justify-center">
<main class="md:flex md:justify-center">
<article class="prose prose-lg max-w-[750px] prose-img:mx-auto">
{heroImage && <img src={heroImage} alt={title} class="w-full mb-6" />}
<h1 class="title my-2 text-4xl font-bold">{title}</h1>