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
|
import * as React from 'react';
import styled from 'styled-components';
import { colors } from '../variables';
import InlineCode from './InlineCode';
const Cards = styled.dl`
display: grid;
grid-template-columns: repeat(auto-fill, minmax(25rem, 1fr));
align-items: start;
grid-gap: 1.25rem;
margin-top: 0;
margin-bottom: 0;
`;
const Card = styled.div`
background-color: ${colors.lightGray};
padding: 3.125rem;
padding-bottom: 2.5rem;
`;
const Dt = styled.dt`
font-weight: 500;
display: inline;
::after {
content: '. ';
}
`;
const Dd = styled.dd`
display: inline;
margin-left: 0;
`;
const cards = [
{
title: 'Project-centric',
body: (
<React.Fragment>
It can compile an entire project instead of only individual <InlineCode>.sol</InlineCode> files
</React.Fragment>
),
},
{
title: 'Incremental builds',
body: 'It only recompiles your smart contracts after they have changed.',
},
{
title: 'Customizable artifacts',
body:
'It allows you to store only the required compiler output in your artifacts and have complete control over your bundle size.',
},
{
title: 'Seamless',
body: 'It auto-fetches and caches the required compiler binaries.',
},
{
title: 'Versioning',
body:
'It compiles each contract with the version specified at the top of its file (it even supports version ranges!).',
},
];
function Compiler() {
return (
<Cards>
{cards.map(card => (
<Card key={card.title.split(' ').join('-')}>
<Dt>{card.title}</Dt>
<Dd>{card.body}</Dd>
</Card>
))}
</Cards>
);
}
export default Compiler;
|