-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
79 lines (77 loc) · 3.79 KB
/
index.html
File metadata and controls
79 lines (77 loc) · 3.79 KB
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" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Github stats</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Anybody:ital,wght@0,100..900;1,100..900&display=swap"
rel="stylesheet"
/>
</head>
<body>
<div class="bg-dotted text-gray-100 min-w-screen min-h-screen">
<header class="h-screen flex flex-col justify-center items-center gap-10 md:gap-40">
<h1 class="font-black text-7xl text-center md:text-9xl w-full md:w-160">YOUR GITHUB STATS</h1>
<span class="flex flex-col items-center gap-8">
<span class="gradient-border">
<span class="gradient-border-inset"></span>
<input type="text" id="username-input" placeholder="Your username..." class="relative z-10 w-70 md:w-100 focus:outline-0 rounded-3xl p-1 md:p-3 text-gray-100 text-center text-lg font-light">
</span>
<button class="group relative w-70 md:w-100 bg-linear-to-r from-purple-600 to-blue-600 rounded-3xl p-2 md:p-3" id="get-stats">
<span class="absolute inset-0.5 bg-zinc-900 opacity-0 md:opacity-100 group-hover:opacity-0 duration-100 rounded-3xl"></span>
<span class="relative z-10">GET STATS</span>
</button>
</span>
</header>
<main class="w-11/12 m-auto">
<div class="grid grid-cols-2 gap-4">
<div id="profile" class="w-full col-span-2 card">
<div class="flex justify-between p-1 md:p-8 md:flex-row flex-col items-center md:items-start">
<div class="flex flex-col items-center">
<img src="https://avatars.githubusercontent.com/radeqq007" alt="github pfp" class="w-50 md:w-60 rounded-full" id="pfp">
<h3 class="font-black text-4xl" id="username">Username</h3>
<p class="italic text-lg md:text-xl" id="bio"></p>
</div>
<div class="flex flex-col items-center md:items-end w-1/2 gap-4 mt-10">
<h4 class="text-3xl flex justify-between w-80">
Followers:
<span class="bg-zinc-900 w-30 text-center rounded-xl p-1" id="followers">
16
</span>
</h4>
<h4 class="text-3xl flex justify-between w-80">
Following:
<span class="bg-zinc-900 w-30 text-center rounded-xl p-1" id="following">
26
</span>
</h4>
</div>
</div>
</div>
<div class="card flex flex-col gap-10 col-span-2 md:col-span-1 items-center justify-center">
<h3 class="font-bold text-4xl text-center">Most used languages:</h3>
<div class="w-80 md:w-100 relative flex justify-center">
<canvas id="languages-chart"></canvas>
</div>
</div>
<div class="card flex flex-col gap-10 col-span-2 md:col-span-1 items-center justify-center">
<h3 class="font-bold text-4xl text-center">Types of repositories:</h3>
<div class="w-80 md:w-100 relative flex justify-center">
<canvas id="types-chart"></canvas>
</div>
</div>
<div class="col-span-2 flex flex-col gap-2">
<h3 class="font-bold text-4xl text-center">Most liked repositories:</h3>
<div id="liked-repos" class="w-full flex flex-col items-center gap-4">
</div>
</div>
</div>
</main>
</div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>