Skip to content

Commit 3494c60

Browse files
committed
Tweak styling of homepage styles
1 parent e563a2c commit 3494c60

File tree

3 files changed

+22
-8
lines changed

3 files changed

+22
-8
lines changed

packages/homepage/src/components/PostElements.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ export const Container = styled.div`
88
export const Title = styled.h2`
99
font-family: 'Poppins', sans-serif;
1010
font-weight: 600;
11-
font-size: 1.5rem;
11+
font-size: 1.25rem;
1212
line-height: 1.2;
13+
margin-bottom: 1rem;
1314
1415
color: #f2f2f2;
1516
`;
@@ -20,6 +21,7 @@ export const PostDate = styled.span`
2021
font-size: 14px;
2122
color: #b8b9ba;
2223
display: block;
24+
margin-bottom: 0.5rem;
2325
`;
2426

2527
export const AuthorImage = styled.img`

packages/homepage/src/pages/_blog.elements.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ export const Posts = styled.article`
1414
`;
1515

1616
export const Subtitle = styled.h3`
17-
font-family: 'Poppins', sans-serif;
18-
font-weight: 300;
17+
font-family: 'Open Sans', sans-serif;
18+
font-weight: 500;
1919
font-size: 16px;
2020
line-height: 1.5;
2121
@@ -98,8 +98,9 @@ export const PageTitle = styled.h1`
9898
`;
9999

100100
export const PageSubtitle = styled.h2`
101-
font-family: 'Poppins', sans-serif;
102-
font-weight: 500;
101+
font-family: 'Open Sans', sans-serif;
102+
font-weight: 600;
103103
font-size: 18px;
104104
line-height: 1.5;
105+
margin-bottom: 0;
105106
`;

packages/homepage/src/templates/_post.elements.js

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export const mainStyle = css`
77
line-height: 1.7;
88
99
font-weight: 500;
10-
font-size: 16px;
10+
font-size: 18px;
1111
1212
color: rgba(255, 255, 255, 0.9);
1313
@@ -17,8 +17,14 @@ export const mainStyle = css`
1717
h4,
1818
h5,
1919
h6 {
20-
font-family: 'Poppins', sans-serif;
2120
color: white;
21+
font-weight: 800;
22+
}
23+
24+
h1,
25+
h2,
26+
h3 {
27+
font-family: 'Poppins', sans-serif;
2228
}
2329
2430
h2 {
@@ -36,7 +42,7 @@ export const mainStyle = css`
3642
margin-top: 2rem;
3743
margin-bottom: 0.5rem;
3844
font-size: 20px;
39-
font-weight: 400;
45+
font-weight: 600;
4046
}
4147
4248
p {
@@ -47,6 +53,7 @@ export const mainStyle = css`
4753
p,
4854
li {
4955
font-family: 'Open Sans', sans-serif;
56+
color: rgba(255, 255, 255, 0.8);
5057
}
5158
5259
img {
@@ -58,6 +65,10 @@ export const mainStyle = css`
5865
text-align: center;
5966
color: rgba(255, 255, 255, 0.6);
6067
}
68+
69+
a {
70+
color: ${props => props.theme.shySecondary};
71+
}
6172
`;
6273

6374
export const Image = styled.img`

0 commit comments

Comments
 (0)