Skip to content

Commit

Permalink
style: apply blog content style
Browse files Browse the repository at this point in the history
  • Loading branch information
hyesungoh committed Mar 19, 2023
1 parent 6ba7bc6 commit 1c83f8e
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion apps/blog/src/pages/[slug].page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function Post({ title, subtitle, category, date, content, ogImage }: Props) {
<P theme={theme}>
<DateAndCategoryLink date={date} category={category} />
</P>
<article dangerouslySetInnerHTML={{ __html: content }}></article>
<Article dangerouslySetInnerHTML={{ __html: content }}></Article>
</Main>
<AuthorSection hasKbarButton />
<Comments />
Expand All @@ -59,6 +59,36 @@ const P = styled.p<{ theme: NextUITheme | undefined }>`
color: ${({ theme }) => theme.colors.accents6.value};
`;

const Article = styled.article`
& h1,
& h2 {
margin-top: 2rem;
}
& h3,
& h4,
& h5,
& h6 {
margin-top: 1rem;
}
& img {
margin-top: 0.75rem;
}
& hr {
margin: 1.5rem 0;
}
& p {
margin-bottom: 0.25rem;
}
& blockquote p:last-of-type {
margin-bottom: 0;
}
`;

interface Paths {
params: {
slug: string;
Expand Down

2 comments on commit 1c83f8e

@vercel
Copy link

@vercel vercel bot commented on 1c83f8e Mar 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

comet-land-blog – ./apps/blog

comet-land-blog-git-main-hyesungoh.vercel.app
comet-land-blog.vercel.app
comet-land-blog-hyesungoh.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 1c83f8e Mar 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

comet-land-resume – ./apps/resume

comet-land-resume-git-main-hyesungoh.vercel.app
comet-land-resume.vercel.app
comet-land-resume-hyesungoh.vercel.app

Please sign in to comment.