This repository has been archived by the owner on Mar 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
305 lines (305 loc) · 10.1 KB
/
index.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
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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, viewport-fit=cover"
/>
<title>GitHub User Search App | devfinder</title>
<script>
document.querySelector("html").removeAttribute("class");
</script>
<script src="/js/user-preference.min.js"></script>
<link rel="stylesheet" href="/css/style.min.css" />
<script src="/js/app.min.js" defer></script>
<!-- Favicons -->
<link rel="apple-touch-icon" href="/favicons/apple-touch-icon.png" />
<link
rel="icon"
type="image/png"
sizes="32x32"
href="/favicons/favicon-32x32.png"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="/favicons/favicon-16x16.png"
/>
<link rel="icon" type="image/png" href="/images/devfinder.png" />
<link
rel="mask-icon"
href="/favicons/safari-pinned-tab.svg"
color="#5bbad5"
/>
<meta name="msapplication-TileColor" content="#2b5797" />
<meta name="msapplication-config" content="/favicons/browserconfig.xml" />
<link rel="manifest" href="/manifest.json" />
<meta name="theme-color" content="#ffffff" />
<meta
name="description"
content="In this project, I use the GitHub users API to pull profile data and display it. It's a great challenge for me to practice working with a 3rd-party API."
/>
<meta name="url" content="https://officialdevfinder.netlify.app/" />
<meta property="og:locale" content="en_US" />
<meta property="og:type" content="website" />
<meta property="og:title" content="GitHub User Search App | devfinder" />
<meta property="og:site_name" content="devfinder" />
<meta
property="og:description"
content="In this project, I use the GitHub users API to pull profile data and display it. It's a great challenge for me to practice working with a 3rd-party API."
/>
<meta property="og:url" content="https://officialdevfinder.netlify.app/" />
<meta
property="og:image"
content="https://officialdevfinder.netlify.app/design/preview.jpg"
/>
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:image:type" content="image/jpeg" />
<meta name="twitter:card" content="summary_large_image" />
<link rel="canonical" href="https://officialdevfinder.netlify.app/" />
<link rel="sitemap" type="application/xml" href="/sitemap.xml" />
<link
rel="author"
href="https://officialdevfinder.netlify.app/humans.txt"
/>
</head>
<body dir="ltr">
<noscript>
<p>Please enable JavaScript to use this application.</p>
</noscript>
<header class="header">
<div class="container">
<a href="/" class="header__home">
<svg
class="header__logo"
width="126"
height="21"
aria-hidden="true"
focusable="false"
>
<use href="/svg/sprite.svg#logo"></use>
</svg>
<span class="sr-only">devfinder - Home</span>
</a>
<fieldset class="theme-switcher">
<legend class="sr-only">Theme Switcher</legend>
<div class="theme-switcher__container">
<input
type="radio"
name="theme-toggle"
id="light"
class="theme-switcher__radio js-light-theme-radio-button"
/>
<label for="light" class="theme-switcher__text">
<span>light</span>
<svg
class="theme-switcher__icon"
width="20"
height="20"
aria-hidden="true"
focusable="false"
>
<use href="/svg/sprite.svg#sun"></use>
</svg>
</label>
</div>
<div class="theme-switcher__container">
<input
type="radio"
name="theme-toggle"
id="dark"
class="theme-switcher__radio js-dark-theme-radio-button"
/>
<label for="dark" class="theme-switcher__text">
<span>dark</span>
<svg
class="theme-switcher__icon"
width="20"
height="20"
aria-hidden="true"
focusable="false"
>
<use href="/svg/sprite.svg#moon"></use>
</svg>
</label>
</div>
</fieldset>
</div>
</header>
<main id="main" class="app">
<h1 class="sr-only">GitHub user app example</h1>
<div class="container">
<form class="search-form js-search-form" autocomplete="on">
<input
type="text"
name="username"
id="username-input"
class="search-form__input js-search-input"
placeholder=" "
required
autocomplete="username"
inputmode="search"
aria-describedby="error"
/>
<label for="username-input" class="search-form__placeholder">
Search GitHub username...
</label>
<p
id="error"
class="search-form__error js-alert-message"
aria-live="polite"
></p>
<button class="search-form__button" type="submit">Search</button>
</form>
<p
class="sr-only js-notification"
role="status"
aria-live="polite"
aria-atomic="true"
></p>
<div class="result">
<img
src="/images/octocat.jpg"
alt="@octocat"
class="result__avatar js-avatar"
width="120"
height="120"
/>
<div class="result__person">
<div class="result__wrapper">
<h2 class="result__name js-name">The Octocat</h2>
<a
href="https://github.com/octocat"
class="result__username js-user-github-link"
rel="nofollow me"
>
@octocat
</a>
</div>
<p class="result__join-date">
Joined
<time
class="result__time js-time"
datetime="2011-01-25T18:44:36Z"
>
25 Jan 2011
</time>
</p>
</div>
<p class="result__bio js-bio is-not-available">
This profile has no bio
</p>
<ul class="result__statistic" role="list">
<li class="result__item">
<span class="result__category">Repos</span>
<span class="result__number js-repository">8</span>
</li>
<li class="result__item">
<span class="result__category">Followers</span>
<span class="result__number js-followers">3938</span>
</li>
<li class="result__item">
<span class="result__category">Following</span>
<span class="result__number js-following">9</span>
</li>
</ul>
<ul class="result__details" role="list">
<li class="result__item js-location">
<svg
class="result__icon"
width="14"
height="20"
aria-hidden="true"
focusable="false"
>
<use href="/svg/sprite.svg#location"></use>
</svg>
<span class="sr-only">Location:</span>
<span class="result__location js-value">San Francisco</span>
</li>
<li class="result__item js-website">
<svg
class="result__icon"
width="20"
height="20"
aria-hidden="true"
focusable="false"
>
<use href="/svg/sprite.svg#link"></use>
</svg>
<span class="sr-only">Website:</span>
<span class="js-value">
<a
href="https://github.blog"
class="result__link"
rel="nofollow me"
>
https://github.blog
</a>
</span>
</li>
<li class="result__item js-twitter is-not-available">
<svg
class="result__icon"
width="20"
height="18"
aria-hidden="true"
focusable="false"
>
<use href="/svg/sprite.svg#twitter"></use>
</svg>
<span class="sr-only">Twitter:</span>
<span class="js-value">
<span class="result__link"> Not Available </span>
</span>
</li>
<li class="result__item js-office">
<svg
class="result__icon"
width="20"
height="20"
aria-hidden="true"
focusable="false"
>
<use href="/svg/sprite.svg#office"></use>
</svg>
<span class="sr-only">Office:</span>
<span class="js-value">
<a
href="https://github.com/github"
class="result__link"
rel="nofollow me"
>
@github
</a>
</span>
</li>
</ul>
</div>
</div>
</main>
<footer class="attribution">
<div class="container">
<p class="attribution__credit">
Challenge by
<a href="https://www.frontendmentor.io/" class="attribution__link">
Frontend Mentor</a
>. Coded by
<a href="https://github.com/vanzasetia" class="attribution__link">
Vanza Setia</a
>.
</p>
</div>
</footer>
<script>
if ("serviceWorker" in navigator) {
window.addEventListener("load", () => {
navigator.serviceWorker.register("/service-worker.js");
});
}
</script>
</body>
</html>