-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
Copy pathHowItWorks.tsx
154 lines (142 loc) · 4.59 KB
/
HowItWorks.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
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
144
145
146
147
148
149
150
151
152
153
154
import { Divider, Flex, Heading, Text, Badge } from '@aws-amplify/ui-react';
import {
MdOutlineBadge,
MdLabelOutline,
MdCelebration,
MdPageview
} from 'react-icons/md';
import { FiGitPullRequest } from 'react-icons/fi';
import { IconCheck, IconExternalLink } from '@/components/Icons';
import ExternalLink from '../ExternalLink';
export default function HowItWorks() {
return (
<Flex direction="column" maxWidth="800px" margin="0 auto" gap="2em">
<Flex direction="column" alignItems="flex-start" gap="xxxs">
<Badge textTransform="uppercase">Making a Contribution</Badge>
<Heading level={2}>How it works</Heading>
</Flex>
<Text fontSize="large" color="font.secondary">
The Amplify Contributor Program is open to everyone in the Amplify
community! In the following steps, we describe what to expect when
contributing:
</Text>
<Flex direction="column" gap="large">
<Flex direction="row" alignItems="center">
<Flex
backgroundColor="purple.20"
color="neutral.100"
width="32px"
height="32px"
borderRadius="50%"
justifyContent="center"
alignItems="center"
>
<MdLabelOutline />
</Flex>
<Text>
The Amplify team labels issues using{' '}
<Badge variation="info">good first issue</Badge> for contributors.
</Text>
</Flex>
<Divider size="small" />
<Flex direction="row" alignItems="center">
<Flex
backgroundColor="purple.20"
color="neutral.100"
width="32px"
height="32px"
borderRadius="50%"
justifyContent="center"
alignItems="center"
>
<FiGitPullRequest />
</Flex>
<Text>
You open a pull request that contains commits you made yourself.
</Text>
</Flex>
<Divider size="small" />
<Flex direction="row" alignItems="center">
<Flex
backgroundColor="purple.20"
color="neutral.100"
width="32px"
height="32px"
borderRadius="50%"
justifyContent="center"
alignItems="center"
>
<MdPageview />
</Flex>
<Text>The Amplify team reviews your pull request.</Text>
</Flex>
<Divider size="small" />
<Flex direction="row" alignItems="center">
<Flex
backgroundColor="purple.20"
color="neutral.100"
width="32px"
height="32px"
borderRadius="50%"
justifyContent="center"
alignItems="center"
flex="none"
>
<IconCheck />
</Flex>
<Text>
If everything looks good, the Amplify team approves the pull
request. (At this time, only accepted pull requests count toward
earning badges.)
</Text>
</Flex>
<Divider size="small" />
<Flex direction="row" alignItems="center">
<Flex
backgroundColor="purple.20"
color="neutral.100"
width="32px"
height="32px"
borderRadius="50%"
justifyContent="center"
alignItems="center"
flex="none"
>
<MdOutlineBadge />
</Flex>
<Text>
If this is your first approved pull request, the Amplify team
designates you as a Contributor in the{' '}
<ExternalLink href="https://discord.gg/amplify" rel="noopener">
Amplify Community Discord server <IconExternalLink />
</ExternalLink>
.
</Text>
</Flex>
<Divider size="small" />
<Flex direction="row" alignItems="center">
<Flex
backgroundColor="purple.20"
color="neutral.100"
width="32px"
height="32px"
borderRadius="50%"
justifyContent="center"
alignItems="center"
flex="none"
>
<MdCelebration />
</Flex>
<Text>
You collect an{' '}
<ExternalLink href="https://aws.amazon.com/blogs/mobile/new-introducing-the-amplify-badge-program/">
Amplify badge <IconExternalLink />
</ExternalLink>{' '}
for your first contribution or make progress toward the Intermediate
and Advanced badges!
</Text>
</Flex>
</Flex>
</Flex>
);
}