-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoptions.html
79 lines (73 loc) · 1.95 KB
/
options.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Options - GitHub Checker</title>
<style>
body, input, button {
font-size: 1rem;
}
input[type="text"] {
display: block;
width: 100%;
padding: .5rem;
margin-bottom: 1rem;
box-sizing: border-box;
}
h1 {
margin-top: 0;
}
.container {
max-width: 800px;
padding: 1rem;
margin: 0 auto;
display: flex;
}
.logo {
width: 336px;
height: 336px;
margin-right: 2rem;
}
.github-personal-token {
width: 100%;
-webkit-mask-image: linear-gradient(180deg, transparent 9%, black 33%, black 64%, transparent 97%);
mask-image: linear-gradient(180deg, transparent 9%, black 33%, black 64%, transparent 97%);
}
#success-paragraph, #failure-paragraph, #loading-paragraph {
display: none;
}
</style>
</head>
<body>
<div class="container">
<img class="logo" src="./images/icon.svg" />
<form id="access-token-form">
<h1>
Hello there,
</h1>
<h2>
Thanks for using GitHub Checker!
</h2>
<p>
We need a personal access token to fetch GitHub data on your behalf.
</p>
<p>
Make sure you select "repo" from the scopes selection:
<img class="github-personal-token" src="./images/github-personal-token.png" />
</p>
<p>
Go <a target="_blank" href="https://github.com/settings/tokens/new">create a new token</a>.
</p>
<p>
<input autofocus placeholder="Access token" type="text" id="access-token-input" />
<button type="submit">Save</button>
</p>
<p id="loading-paragraph">Loading...</p>
<p id="success-paragraph">New access token saved!</p>
<p id="failure-paragraph"></p>
</form>
<script src="./options.js"></script>
</div>
</body>
</html>