-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy pathHeader.tsx
69 lines (60 loc) · 1.3 KB
/
Header.tsx
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
import React from "react";
import styled from "styled-components";
import PNKLogo from "svgs/styled/pnk.svg";
import ChartIcon from "svgs/icons/chart.svg";
const Container = styled.div`
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 8px;
`;
const PNKLogoAndTitle = styled.div`
display: flex;
gap: 0 12px;
align-items: center;
`;
const StyledChartIcon = styled(ChartIcon)`
path {
fill: ${({ theme }) => theme.primaryText};
}
`;
const StyledPNKLogo = styled(PNKLogo)`
width: 32px;
height: 32px;
[class$="stop-1"] {
stop-color: ${({ theme }) => theme.primaryBlue};
}
[class$="stop-2"] {
stop-color: ${({ theme }) => theme.secondaryPurple};
}
`;
const Title = styled.p`
margin: 0;
font-weight: 600;
`;
const Last30DaysContainer = styled.div`
display: flex;
gap: 8px;
align-items: center;
`;
const Last30DaysText = styled.p`
margin: 0;
font-size: 14px;
font-weight: 600;
`;
const Header: React.FC = () => {
return (
<Container>
<PNKLogoAndTitle>
<StyledPNKLogo />
<Title>Simulator</Title>
</PNKLogoAndTitle>
<Last30DaysContainer>
<StyledChartIcon />
<Last30DaysText>Last 30 Days</Last30DaysText>
</Last30DaysContainer>
</Container>
);
};
export default Header;