-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathhowItWorks.js
71 lines (69 loc) · 2.07 KB
/
howItWorks.js
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
export default function HowItWorks() {
return (
<>
<style jsx>
{`
h3 span {
background: #fd4eff;
width: 1.5em;
height: 1.5em;
line-height: 1.5em;
border-radius: 50%;
display: inline-block;
text-align: center;
margin-right: 0.3em;
margin-left: -0.3em;
box-shadow: 0 3px 16px rgba(0, 0, 0, 0.2);
color: white;
}
@media only screen and (min-width: 768px) {
.how-it-works-boxes {
display: grid;
grid-template-columns: auto auto auto;
grid-gap: 30px;
}
}
`}
</style>
<div className="how-it-works-boxes">
<div className="how-it-works-description">
<h3>
<span>1</span> Read
</h3>
<p>
OctoLinker reads the source code you're currently viewing straight
from the browser or, in some cases, using the GitHub API.
</p>
<p>
No source code will ever be sent to a server! Your source code stays
in your browser.
</p>
</div>
<div className="how-it-works-description">
<h3>
<span>2</span> Find
</h3>
<p>
Based on the file type, OctoLinker invokes a plugin which then
executes a regular expression on the source code to find import
statements.
</p>
</div>
<div className="how-it-works-description">
<h3>
<span>3</span> Resolve
</h3>
<p>
Relative file references are resolved through the GitHub tree API in
your browser. External dependencies are resolved using the{" "}
<a href="https://github.com/OctoLinker/api">OctoLinker API</a>.{" "}
</p>
<p>
Only the name of a dependency along with the registry type is sent
to this service.
</p>
</div>
</div>
</>
);
}