-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
332 lines (314 loc) · 16 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
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="devShare generate QR-Code for your GitHub profile after you search for it. You can even get a card PNG to make it easy to share. Comes with dark and light modes."/>
<link rel="stylesheet" href="./css/base.css" />
<link rel="stylesheet" href="./css/main.css" />
<link rel="stylesheet" href="./css/search.css" />
<link rel="stylesheet" href="./css/buttons.css" />
<link rel="stylesheet" href="./css/navbar.css" />
<link rel="stylesheet" href="./css/loader.css" />
<link
href="https://fonts.googleapis.com/css?family=Space+Mono:regular,italic,700,700italic"
rel="stylesheet"
/>
<link
rel="shortcut icon"
href="./assets/favicon-32x32.png"
type="image/x-icon"
/>
<title>Home | devShare share GitHub profiles</title>
<meta
name="description"
content="devShare generate QR-Code for your GitHub profile after you search for it. You can even get a card PNG to make it easy to share. Comes with dark and light modes."
/>
<meta name="url" content="https://sharedev.vercel.app/" />
<!-- Primary Meta Tags -->
<meta name="title" content="Home | devShare share GitHub profiles" />
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website" />
<meta property="og:url" content="https://sharedev.vercel.app/" />
<meta property="og:title" content="devShare share GitHub profiles" />
<meta
property="og:description"
content="devShare generates QR-Code for your GitHub profile after you search for it. You can even get a PNG card, easy to share. With dark and light modes."
/>
<meta
property="og:image"
content="https://sharedev.vercel.app/assets/preview.png"
/>
<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:url" content="https://sharedev.vercel.app/" />
<meta property="twitter:title" content="devShare share GitHub profiles" />
<meta
property="twitter:description"
content="devShare generates QR-Code for your GitHub profile after you search for it. You can even get a PNG card, easy to share. With dark and light modes."
/>
<meta
property="twitter:image"
content="https://sharedev.vercel.app/assets/preview.png"
/>
<script src="https://www.gstatic.com/firebasejs/9.15.0/firebase-app-compat.js"></script>
<script src="https://www.gstatic.com/firebasejs/9.15.0/firebase-firestore-compat.js"></script>
<script src="https://www.gstatic.com/firebasejs/9.15.0/firebase-auth-compat.js"></script>
<script>
const firebaseConfig = {
apiKey: "AIzaSyD2pW6_mx1svtC14yUL-O2y-tldpkTJVeY",
authDomain: "devshare-22a82.firebaseapp.com",
projectId: "devshare-22a82",
storageBucket: "devshare-22a82.appspot.com",
messagingSenderId: "86098585581",
appId: "1:86098585581:web:09b19a085b4fd3bbff29e4",
measurementId: "G-5F1DSG04XD",
};
firebase.initializeApp(firebaseConfig);
</script>
<script src="./js/main/firebaseSide.js" defer></script>
</head>
<body style="height: 100vh;">
<noscript>You need to enable JavaScript to run this app.</noscript>
<div class="loader-container">
<div class="spinner">Loading...</div>
</div>
<div class="container">
<header>
<a href="./">
<b class="header-logo">devShare</b></a>
<!-- <i style="font-size: 20px; font-weight: 700; color: rgb(164, 213, 255);">Home</i> -->
<div>
<ul class="main-nav">
<li class="nav-item active" id="whenSignedIn4" hidden="true">
<a href="./index.html"
><svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 16 16"
width="512px"
height="512px"
>
<path
d="M8,1L1,6v9h5v-4c0-1.105,0.895-2,2-2s2,0.895,2,2v4h5V6L8,1z"
/></svg></a>
</li>
<li class="nav-item" id="whenSignedIn3" hidden="true">
<a href="./favourite.html">
<svg
xmlns="http://www.w3.org/2000/svg"
width="800px"
height="800px"
viewBox="0 0 16 16"
>
<path
d="M11.434 1a4.604 4.604 0 00-3.226 1.322L8 2.527l-.208-.205A4.589 4.589 0 004.566 1 4.589 4.589 0 001.34 2.322 4.5 4.5 0 000 5.522a4.5 4.5 0 001.34 3.2l6.133 6.061a.75.75 0 001.054 0l6.132-6.06a4.52 4.52 0 00.992-1.467 4.482 4.482 0 00-.992-4.934A4.604 4.604 0 0011.433 1z"
/></svg></a>
</li>
</ul>
</div>
<button class="header-theme-switch-btn body-s" onclick="switchTheme()">
<span id="theme-switch-text">Dark</span>
<svg
class="header-theme-icon"
width="20"
height="20"
xmlns="http://www.w3.org/2000/svg"
id="moon"
>
<path
d="M19.513 11.397a.701.701 0 00-.588.128 7.496 7.496 0 01-2.276 1.336 7.101 7.101 0 01-2.583.462 7.505 7.505 0 01-5.32-2.209 7.568 7.568 0 01-2.199-5.342c0-.873.154-1.72.41-2.49a6.904 6.904 0 011.227-2.21.657.657 0 00-.102-.924.701.701 0 00-.589-.128C5.32.61 3.427 1.92 2.072 3.666A10.158 10.158 0 000 9.83c0 2.8 1.125 5.342 2.967 7.19a10.025 10.025 0 007.16 2.98c2.353 0 4.527-.822 6.266-2.183a10.13 10.13 0 003.58-5.624.623.623 0 00-.46-.796z"
fill="#697C9A"
fill-rule="nonzero"
/>
</svg>
<svg
class="header-theme-icon hidden"
width="20"
height="20"
xmlns="http://www.w3.org/2000/svg"
id="sun"
>
<g fill="#FFF" fill-rule="nonzero">
<path
d="M13.545 6.455c-.9-.9-2.17-1.481-3.545-1.481a4.934 4.934 0 00-3.545 1.481c-.9.9-1.481 2.17-1.481 3.545 0 1.376.582 2.646 1.481 3.545.9.9 2.17 1.481 3.545 1.481a4.934 4.934 0 003.545-1.481c.9-.9 1.481-2.17 1.481-3.545a4.934 4.934 0 00-1.481-3.545zM10 3.413a.7.7 0 00.688-.688V.688A.7.7 0 0010 0a.7.7 0 00-.688.688v2.037a.7.7 0 00.688.688zM15.635 5.344l1.455-1.455a.67.67 0 000-.952.67.67 0 00-.952 0l-1.455 1.455a.67.67 0 000 .952c.238.264.66.264.952 0zM19.312 9.312h-2.037a.7.7 0 00-.688.688.7.7 0 00.688.688h2.037A.7.7 0 0020 10a.7.7 0 00-.688-.688zM15.608 14.656a.67.67 0 00-.952 0 .67.67 0 000 .952l1.455 1.455a.67.67 0 00.952 0 .67.67 0 000-.952l-1.455-1.455zM10 16.587a.7.7 0 00-.688.688v2.037A.7.7 0 0010 20a.7.7 0 00.688-.688v-2.037a.7.7 0 00-.688-.688zM4.365 14.656L2.91 16.111a.67.67 0 000 .952.67.67 0 00.952 0l1.455-1.455a.67.67 0 000-.952c-.238-.264-.66-.264-.952 0zM3.413 10a.7.7 0 00-.688-.688H.688A.7.7 0 000 10a.7.7 0 00.688.688h2.037A.7.7 0 003.413 10zM4.365 5.344a.67.67 0 00.952 0 .67.67 0 000-.952L3.862 2.937a.67.67 0 00-.952 0 .67.67 0 000 .952l1.455 1.455z"
/>
</g>
</svg>
</button>
</header>
<script src="./js/theme.js"></script>
<div class="firebase">
<div id="whenSignedOut">
<button id="signInBtn" class="btn btn-primary btn-firebase">
<div class="btn-child-firebase">
<img
src="./assets/googlebg.png"
width="25px"
height="25px"
style="margin-bottom: 0px; margin-top: 5px"
/>
</div>
<div class="btn-child-firebase">Sign in with Google</div>
</button>
<h3 class="orHeading">OR</h3>
</div>
<div id="whenSignedIn" hidden="true">
<p id="userDetails" class="body"></p>
<!-- <a href="./favourite.html">
<button class="btn btn-primary btn-firebase">Favourites</button></a
> -->
<button id="signOutBtn" class="btn btn-primary btn-firebase">
Sign Out
</button>
<!-- <p id="thingsList"></p> -->
</div>
</div>
<main>
<form class="search-container" onsubmit="submitForm(event)">
<img
src="./assets/icon-search.svg"
class="search-icon"
alt="Search icon"
/>
<input
type="text"
class="search-input"
placeholder="Search GitHub username..."
name="GitHub Username"
id="github-username"
/>
<p class="body search-error hidden" id="search-error">No results</p>
<button class="btn btn-primary" type="submit">Search</button>
</form>
<section class="user-section">
<img
src="./assets/image-user-placeholder.png"
class="user-img"
id="user-img"
alt="User profile image"
/>
<div class="user-main">
<div class="user-top">
<img
src="./assets/image-user-placeholder.png"
class="user-img"
id="user-img-mobile"
alt="User profile image"
/>
<h1 class="user-name" id="user-name">Name</h1>
<time class="body user-joined" id="user-joined-time"
>Joined ...</time
>
<p class="user-username" id="user-username">@Username</p>
</div>
<p class="body user-bio" id="user-bio">User bio...</p>
<ul class="user-stats">
<li>
<h4 class="user-stat-title">Repos</h4>
<h2 class="user-stat-value" id="user-repos">...</h2>
</li>
<li>
<h4 class="user-stat-title">Followers</h4>
<h2 class="user-stat-value" id="user-followers">...</h2>
</li>
<li>
<h4 class="user-stat-title">Following</h4>
<h2 class="user-stat-value" id="user-following">...</h2>
</li>
</ul>
<section class="user-links">
<div class="user-link-container" id="user-location">
<svg
height="20"
width="14"
xmlns="http://www.w3.org/2000/svg"
class="user-link-icon"
>
<path
d="M12.797 3.425C11.584 1.33 9.427.05 7.03.002a7.483 7.483 0 00-.308 0C4.325.05 2.17 1.33.955 3.425a6.963 6.963 0 00-.09 6.88l4.959 9.077.007.012c.218.38.609.606 1.045.606.437 0 .828-.226 1.046-.606l.007-.012 4.96-9.077a6.963 6.963 0 00-.092-6.88zm-5.92 5.638c-1.552 0-2.813-1.262-2.813-2.813s1.261-2.812 2.812-2.812S9.69 4.699 9.69 6.25 8.427 9.063 6.876 9.063z"
fill="#4b6a9b"
/>
</svg>
<span class="body user-link">Location...</span>
</div>
<div class="user-link-container" id="user-twitter">
<svg
height="18"
width="20"
xmlns="http://www.w3.org/2000/svg"
class="user-link-icon"
>
<path
d="M20 2.799a8.549 8.549 0 01-2.363.647 4.077 4.077 0 001.804-2.266 8.194 8.194 0 01-2.6.993A4.099 4.099 0 009.75 4.977c0 .324.027.637.095.934-3.409-.166-6.425-1.8-8.452-4.288a4.128 4.128 0 00-.56 2.072c0 1.42.73 2.679 1.82 3.408A4.05 4.05 0 01.8 6.598v.045a4.119 4.119 0 003.285 4.028 4.092 4.092 0 01-1.075.135c-.263 0-.528-.015-.776-.07.531 1.624 2.038 2.818 3.831 2.857A8.239 8.239 0 01.981 15.34 7.68 7.68 0 010 15.285a11.543 11.543 0 006.29 1.84c7.545 0 11.67-6.25 11.67-11.667 0-.182-.006-.357-.015-.53A8.18 8.18 0 0020 2.798z"
fill="#4b6a9b"
/>
</svg>
<a
href=""
class="body user-link"
target="_blank"
rel="noreferrer"
>Twitter...</a
>
</div>
<div class="user-link-container" id="user-website">
<svg
height="20"
width="20"
xmlns="http://www.w3.org/2000/svg"
class="user-link-icon"
>
<g fill="#4b6a9b">
<path
d="M7.404 5.012c-2.355 2.437-1.841 6.482.857 8.273.089.06.207.048.283-.027.568-.555 1.049-1.093 1.47-1.776a.213.213 0 00-.084-.3A2.743 2.743 0 018.878 10.1a2.64 2.64 0 01-.223-1.803c.168-.815 1.043-1.573 1.711-2.274l-.004-.002 2.504-2.555a2.568 2.568 0 013.648-.019 2.6 2.6 0 01.037 3.666l-1.517 1.56a.266.266 0 00-.06.273c.35 1.012.435 2.44.201 3.519-.006.03.031.05.053.028l3.228-3.295c2.062-2.105 2.044-5.531-.04-7.615a5.416 5.416 0 00-7.691.04L7.417 4.998l-.013.014z"
/>
<path
d="M13.439 13.75a.401.401 0 00.006-.003c.659-1.204.788-2.586.48-3.933l-.002.002-.001-.001a5.434 5.434 0 00-2.19-3.124.3.3 0 00-.333.015c-.553.448-1.095 1.021-1.452 1.754a.243.243 0 00.096.317c.415.24.79.593 1.04 1.061h.001c.196.33.388.958.263 1.632-.116.894-1.019 1.714-1.736 2.453-.546.559-1.935 1.974-2.49 2.542a2.6 2.6 0 01-3.666.037 2.6 2.6 0 01-.038-3.666l1.521-1.564A.266.266 0 005 11.004c-.338-1.036-.43-2.432-.217-3.51.006-.03-.031-.049-.053-.027l-3.179 3.245c-2.083 2.126-2.066 5.588.04 7.693 2.125 2.083 5.57 2.048 7.653-.078.723-.81 3.821-3.678 4.195-4.577z"
/>
</g>
</svg>
<a
href=""
class="body user-link"
target="_blank"
rel="noreferrer"
>Website...</a
>
</div>
<div class="user-link-container" id="user-organization">
<svg
height="20"
width="20"
xmlns="http://www.w3.org/2000/svg"
class="user-link-icon"
>
<g fill="#4b6a9b">
<path
d="M10.858 1.558L1.7.167A1.477 1.477 0 00.517.492 1.49 1.49 0 000 1.608v17.559c0 .458.375.833.833.833h2.709v-4.375c0-.808.65-1.458 1.458-1.458h2.083c.809 0 1.459.65 1.459 1.458V20h3.541V3a1.46 1.46 0 00-1.225-1.442zM4.583 12.292h-1.25a.625.625 0 010-1.25h1.25a.625.625 0 010 1.25zm0-2.5h-1.25a.625.625 0 010-1.25h1.25a.625.625 0 010 1.25zm0-2.5h-1.25a.625.625 0 010-1.25h1.25a.625.625 0 010 1.25zm0-2.5h-1.25a.625.625 0 010-1.25h1.25a.625.625 0 010 1.25zm4.167 7.5H7.5a.625.625 0 010-1.25h1.25a.625.625 0 010 1.25zm0-2.5H7.5a.625.625 0 010-1.25h1.25a.625.625 0 010 1.25zm0-2.5H7.5a.625.625 0 010-1.25h1.25a.625.625 0 010 1.25zm0-2.5H7.5a.625.625 0 010-1.25h1.25a.625.625 0 010 1.25zM18.85 9.035l-5.933-1.242V20h5.625A1.46 1.46 0 0020 18.542V10.46c0-.688-.47-1.274-1.15-1.425zM16.875 17.5h-1.25a.625.625 0 010-1.25h1.25a.625.625 0 010 1.25zm0-2.5h-1.25a.625.625 0 010-1.25h1.25a.625.625 0 010 1.25zm0-2.5h-1.25a.625.625 0 010-1.25h1.25a.625.625 0 010 1.25z"
/>
</g>
</svg>
<span class="body user-link">Organization...</span>
<!-- <a href="" class="body user-link" target="_blank" rel="noreferrer">Organization...</a> -->
</div>
</section>
<p id='favouriteMsg' style="color: rgb(255, 41, 41); margin-top: 10px;"></p>
<section style="display: flex">
<a href="./qr-code.html">
<button id="generateQr" class="btn btn-primary btncustom btncustomfire">
Generate QR
</button></a
>
<div id="whenSignedIn2" hidden="true">
<button id="createThing" class="btn btn-primary btncustom2 btncustomfire">
Add To Favourites
</button>
</div>
</section>
</div>
</section>
</main>
</div>
<script src="./js/main/main.js"></script>
</body>
</html>