forked from codesandbox/codesandbox-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPostElements.js
More file actions
40 lines (34 loc) · 822 Bytes
/
PostElements.js
File metadata and controls
40 lines (34 loc) · 822 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import styled from 'styled-components';
export const Container = styled.div`
color: rgba(255, 255, 255, 0.9);
margin-bottom: 1rem;
`;
export const Title = styled.h2`
font-family: ${props => props.theme.homepage.appleFont};
font-weight: 600;
font-size: 1.25rem;
line-height: 1.2;
margin-bottom: 1rem;
color: #f2f2f2;
`;
export const PostDate = styled.span`
font-family: ${props => props.theme.homepage.appleFont};
font-weight: 500;
font-size: 14px;
color: #b8b9ba;
display: block;
margin-bottom: 0.5rem;
`;
export const AuthorImage = styled.img`
width: 32px;
height: 32px;
border-radius: 4px;
margin-right: 1rem;
`;
export const Author = styled.h4`
font-family: ${props => props.theme.homepage.appleFont};
font-weight: 500;
font-size: 18px;
margin: 0;
color: #f2f2f2;
`;