Skip to content

Commit

Permalink
feat: updated typography and styles for better readability
Browse files Browse the repository at this point in the history
  • Loading branch information
naffiq committed Mar 31, 2021
1 parent 4ba9043 commit 8fe6093
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/Container.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const Container = styled.div<{ narrow?: boolean }>`
`;

export const ContainerContent = styled.div`
padding: 0 32px;
padding: 32px 32px;
display: block;
width: calc(100% - 64px);
`;
Expand Down
4 changes: 3 additions & 1 deletion src/components/Typography.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ export const LineThrough = styled.span`
`;

export const Paragraph = styled.p`
line-height: 24px;
font-family: 'Lora', serif;
line-height: 1.8rem;
font-size: 1.1rem;
`;

export const Heading1 = styled.h1``;
Expand Down
8 changes: 8 additions & 0 deletions src/layouts/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ html {
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
height: 100%;
font-size: 18px;
}
body {
margin: 0;
Expand All @@ -11,3 +12,10 @@ body {
#___gatsby > * {
height: 100%;
}

.blog-post-content {
font-family: 'Lora', serif;
line-height: 1.8rem;
font-size: 1.1rem;
margin: 2rem 0;
}
6 changes: 2 additions & 4 deletions src/layouts/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,8 @@ const DefaultLayout = ({ children }: DefaultLayoutProps) => {
}
]}
>
<link
href="https://fonts.googleapis.com/css?family=Open+Sans:400,700,800|Playfair+Display"
rel="stylesheet"
/>
<link rel="preconnect" href="https://fonts.gstatic.com"/>
<link href="https://fonts.googleapis.com/css2?family=Lora:wght@400;700&family=Open+Sans:wght@400;700;800&display=swap" rel="stylesheet"/>
<link
href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"
rel="stylesheet"
Expand Down

0 comments on commit 8fe6093

Please sign in to comment.