-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
68 lines (64 loc) · 3.32 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="./favicon.png">
<title>DRflamios GitHub Pages</title>
<link rel="stylesheet" href="./style.css">
<script src="./jquery-3.7.1.min.js"></script>
</head>
<body class="bg-gray-900">
<main class="m-auto p-4 flex justify-center items-center">
<div id="loading-state" class="flex justify-center items-center py-12" style="display: none;">
<div class="animate-spin rounded-full h-12 w-12 border-b-2 border-white"></div>
</div>
<div id="error-state" class="bg-red-500 text-white p-4 rounded-lg mb-8" style="display: none;"></div>
<div id="content" style="display: none;">
<div class="bg-gray-800 p-6 rounded-lg mb-8">
<div class="flex items-center gap-6">
<img id="user-avatar" class="w-24 h-24 rounded-full" src="">
<div>
<h2 id="user-name" class="text-2xl font-bold text-white"></h2>
<p id="user-login" class="text-gray-400"></p>
<p id="user-bio" class="mt-2 text-white"></p>
</div>
</div>
<div class="grid grid-cols-2 gap-4 mt-6">
<template id="user-location" style="display: none;">
<div class="flex items-center gap-2 text-white">
<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
<path fill-rule="evenodd" d="M5.05 4.05a7 7 0 119.9 9.9L10 18.9l-4.95-4.95a7 7 0 010-9.9zM10 11a2 2 0 100-4 2 2 0 000 4z" clip-rule="evenodd"/>
</svg>
<span id="location-text"></span>
</div>
</template>
</div>
</div>
<div class="grid grid-cols-1 md:grid-cols-4 gap-4 mb-8">
<div class="bg-gray-800 p-4 rounded-lg">
<p class="text-sm text-gray-400">Repositories</p>
<p id="user-repos" class="text-2xl font-bold text-white"></p>
</div>
<div class="bg-gray-800 p-4 rounded-lg">
<p class="text-sm text-gray-400">Followers</p>
<p id="user-followers" class="text-2xl font-bold text-white"></p>
</div>
<div class="bg-gray-800 p-4 rounded-lg">
<p class="text-sm text-gray-400">Following</p>
<p id="user-following" class="text-2xl font-bold text-white"></p>
</div>
<div class="bg-gray-800 p-4 rounded-lg">
<p class="text-sm text-gray-400">Member Since</p>
<p id="user-created-at" class="text-2xl font-bold text-white"></p>
</div>
</div>
<div>
<h2 class="text-2xl font-bold text-white mb-4">Top Repositories</h2>
<div id="top-repos" class="grid grid-cols-1 md:grid-cols-2 gap-4"></div>
</div>
</div>
</main>
<script src="./script.js"></script>
</body>
</html>