blob: de479a81e0e92eb6ae108d94ab7c990593679749 (
plain) (
blame)
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
|
import * as React from 'react';
import styled from 'styled-components';
import { Alpha, Beta } from './Typography';
import { withContext, Props } from './withContext';
import Container from './Container';
import { media } from '../variables';
import MainIcon from 'ts/icons/logos/0x.svg';
import compiler from 'ts/context/compiler';
import cov from 'ts/context/cov';
import profiler from 'ts/context/profiler';
import trace from 'ts/context/trace';
const tools = [trace, cov, compiler, profiler];
function Footer(props: Props) {
const { colors } = props;
return (
<StyledFooter background={colors.secondary}>
<Container>
<Top>
<Alpha>Other tools by 0x</Alpha>
<List>
{tools.map(({ title, subtitle, icon }) => (
<ListItem key={title}>
<Icon as={icon} />
<div>
<Beta>
<StyledLink colors={colors} href="#">
{title}
</StyledLink>
</Beta>
<p>{subtitle}</p>
</div>
</ListItem>
))}
</List>
</Top>
<Media as="aside">
<Icon as={MainIcon} />
<Small>
Built by 0x. 0x is an open, permissionless protocol allowing for ERC20 tokens to be traded on
the Ethereum blockchain.
</Small>
</Media>
</Container>
</StyledFooter>
);
}
const StyledFooter = styled.footer`
background-color: ${(props: { background: string }) => props.background};
padding-top: 6.25rem;
padding-bottom: 5.4375rem;
${media.small`padding-top: 2.5rem;`};
`;
const Top = styled.div`
display: flex;
justify-content: space-between;
margin-bottom: 9.375rem;
${media.medium`
display: block;
margin-bottom: 5.3125rem;
`};
${Alpha} {
${media.medium`margin-bottom: 3.8125rem;`};
}
`;
const Icon = styled.div`
margin-right: 1.3125rem;
flex-shrink: 0;
${media.small`margin-right: 0.9375rem`};
`;
const Media = styled.div`
display: flex;
align-items: center;
${Icon} {
align-self: flex-start;
}
`;
const List = styled.ul`
display: flex;
width: 66.693548387%;
flex-wrap: wrap;
flex-direction: row;
margin: 0;
padding: 0;
${media.medium`
width: 100%;
`};
${media.small`
display: block;
`};
`;
const ListItem = styled.li`
display: flex;
align-items: center;
flex-basis: 50%;
margin-bottom: 3.3125rem;
:nth-last-of-type(-n + 2) {
margin-bottom: 0;
${media.small`margin-bottom: 1.875rem`};
}
${media.small`
margin-bottom: 1.875rem
:last-of-type {
margin-bottom: 0;
}
`};
`;
const Small = styled.small`
font-size: 1em;
max-width: 37.5rem;
`;
const StyledLink =
styled.a <
{ colors: any } >
`
:hover {
color: ${props => props.colors.main};
}
`;
export default withContext(Footer);
|