Skip to content

Commit

Permalink
🎨 style(BlogPost.astro): update flexbox properties in the tag contain…
Browse files Browse the repository at this point in the history
…er to center align and add vertical gap for better visual spacing

🎨 style([...slug].astro): remove unnecessary class and adjust grid column sizes for better layout
🎨 style([...slug].astro): increase font size of prose container for better readability on larger screens
  • Loading branch information
danielcgilibert committed Aug 18, 2023
1 parent 692a854 commit d3ee8b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/layouts/BlogPost.astro
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const articleDate = pubDate.toISOString()
</h1>
</div>

<div class='flex flex-wrap gap-2 md:gap-5'>
<div class='flex flex-wrap justify-center items-center gap-2 gap-y-4 md:gap-5'>
{tags.map((tag) => <Tag>{tag}</Tag>)}
</div>
</header>
Expand Down
5 changes: 2 additions & 3 deletions src/pages/post/[...slug].astro
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ const { Content, headings, remarkPluginFrontmatter } = await post.render()
---

<BlogPost data={post.data} headings={headings} readTime={remarkPluginFrontmatter.minutesRead}>
<div
class='grid grid-cols-1 px-2 sm:px-12 sm: md:pl-2 md:grid-cols-[20%_auto] gap-16 mt-8 md:pr-12'>
<div class='grid grid-cols-1 md:pl-2 md:grid-cols-[20%_auto] gap-16 mt-8'>
<!-- aside -->
<aside class='md:flex flex-col gap-8 hidden'>
<Share />
Expand All @@ -45,7 +44,7 @@ const { Content, headings, remarkPluginFrontmatter } = await post.render()

<!-- main -->
<div class='max-w-full w-full'>
<div class='prose dark:prose-invert mb-12 min-w-full'>
<div class='prose md:prose-lg dark:prose-invert mb-12 min-w-full'>
<Content components={{ pre: Code }} />
</div>

Expand Down

0 comments on commit d3ee8b4

Please sign in to comment.