-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathindex.html
More file actions
139 lines (119 loc) · 9.19 KB
/
index.html
File metadata and controls
139 lines (119 loc) · 9.19 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Primary Meta Tags -->
<title>Github Unfollower</title>
<meta name="description" content="Find GitHub users who don't follow you back. Analyze followers and followings easily and fast.">
<meta name="keywords" content="GitHub unfollower, GitHub followers, GitHub following, GitHub tools, Nima Kian, nimakian, follow back, unfollow detector">
<meta name="author" content="nimakian">
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website"/>
<meta property="og:url" content="https://nimakian.github.io/github-unfollower/">
<meta property="og:title" content="GitHub Unfollower">
<meta property="og:description" content="Find GitHub users who don't follow you back. Analyze followers and followings easily and fast.">
<meta property="og:image" content="https://nimakian.github.io/github-unfollower/public/img/favicon/favicon.png">
<!-- Twitter -->
<meta property="twitter:card" content="summary">
<meta property="twitter:url" content="https://nimakian.github.io/github-unfollower/">
<meta property="twitter:title" content="GitHub Unfollower">
<meta property="twitter:description" content="Find GitHub users who don't follow you back. Analyze followers and followings easily and fast.">
<meta property="twitter:image" content="https://nimakian.github.io/github-unfollower/public/img/favicon/favicon.png">
<!-- Favicon -->
<link rel="icon" type="image/png" href="public/img/favicon/favicon.png">
<!-- Styles -->
<link rel="stylesheet" href="src/styles/output.css">
</head>
<body class="container mx-auto bg-background font-fira-code">
<!-- loader -->
<div id="loader" class="fixed inset-0 flex items-center justify-center bg-background z-50">
<svg class="w-11 animate-spin fill-btn-primary text-text-secondary" viewBox="0 0 100 101" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z" fill="currentColor"/>
<path d="M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z" fill="currentFill"/>
</svg>
</div>
<header class="px-2.5">
<h1 class="py-4 sm:py-6 text-xl sm:text-3xl text-text-primary text-center">Github Unfollower Detector</h1>
<div class="flex items-center justify-between gap-x-2 sm:gap-x-3">
<input id="search-user-input" type="text" placeholder="Enter your GitHub UserName..." class="w-full px-3 py-4 outline-none border border-border-input rounded-md text-text-primary">
<button id="search-user-btn" class="max-w-36 px-3 sm:px-4 py-4 whitespace-nowrap bg-btn-primary hover:bg-btn-primary-hover transition-colors duration-150 cursor-pointer text-text-title border border-border-box rounded-md">Search User</button>
</div>
</header>
<main class="w-full px-2.5 py-4 gap-2 grid sm:grid-cols-2 grid-cols-1">
<div class="border border-border-box rounded-md p-2.5 flex flex-col justify-between">
<div>
<h2 class="text-lg sm:text-xl text-text-primary">People you follow but they don't follow you back</h2>
<div id="not-followingBack-container" class="w-full mt-3 flex flex-col gap-y-2">
<!-- data load from js -->
</div>
</div>
<div id="not-followingBack-pagination" class="mt-5 flex justify-center items-center gap-5">
<button class="prev-btn px-3 py-1 text-text-title rounded-md bg-btn-primary hover:bg-btn-primary-hover transition-colors duration-150 cursor-not-allowed opacity-50">Prev</button>
<div>
<span class="text-text-secondary">Page</span>
<span class="current-page text-text-primary"> 1 </span>
<span class="text-text-secondary">of</span>
<span class="total-pages text-text-primary"> 1 </span>
</div>
<button class="next-btn px-3 py-1 text-text-title rounded-md bg-btn-primary hover:bg-btn-primary-hover transition-colors duration-150 cursor-not-allowed opacity-50">Next</button>
</div>
</div>
<div class="border border-border-box rounded-md p-2.5 flex flex-col justify-between">
<div>
<h2 class="text-lg sm:text-xl text-text-primary">People who follow you but you don't follow back</h2>
<div id="not-followedBack-container" class="w-full mt-3 flex flex-col gap-y-2">
<!-- data load from js -->
</div>
</div>
<div id="not-followedBack-pagination" class="mt-5 flex justify-center items-center gap-5">
<button class="prev-btn px-3 py-1 text-text-title rounded-md bg-btn-primary hover:bg-btn-primary-hover transition-colors duration-150 cursor-not-allowed opacity-50">Prev</button>
<div>
<span class="text-text-secondary">Page</span>
<span class="current-page text-text-primary"> 1 </span>
<span class="text-text-secondary">of</span>
<span class="total-pages text-text-primary"> 1 </span>
</div>
<button class="next-btn px-3 py-1 text-text-title rounded-md bg-btn-primary hover:bg-btn-primary-hover transition-colors duration-150 cursor-not-allowed opacity-50">Next</button>
</div>
</div>
</main>
<footer class="flex items-center justify-between mx-2.5 py-4 text-text-primary border-t border-border-box">
<button id="popup-token-open" title="Over 6,000 total followers/following? GitHub token needed!" class="p-1 cursor-pointer">Enter Your Token</button>
<a class="p-1" href="https://github.com/nimakian/github-unfollower" target="_blank">View on GitHub</a>
</footer>
<!-- toast -->
<div id="toast-container" class="fixed m-4 right-0 top-0 z-50">
<!-- toast load in js -->
</div>
<!-- popup-token -->
<div id="popup-token" class="fixed inset-0 items-center justify-center z-10 hidden backdrop-blur-xs">
<div id="popup-token-overlay" class="absolute inset-0 bg-overlay cursor-pointer z-0"></div> <!-- overlay -->
<div id="popup-token-content" class="bg-background-box border border-border-box rounded-xl p-6 max-w-md text-text-primary text-sm z-10">
<h2 class="text-xl font-semibold text-text-title">Enter GitHub Token</h2>
<div class="text-text-secondary mt-4 leading-relaxed">
<span>⚠️If your total followers and following are close to or exceed <b>6,000</b> a GitHub token is required.</span>
<div class="py-5">
<p>🔑 <b>How to generate a GitHub token:</b></p>
<ol class="list-decimal list-inside">
<li>Go to <a href="https://github.com/settings/tokens" target="_blank" class="text-btn">https://github.com/settings/tokens</a></li>
<li>Click <b>"Generate new token (classic)"</b></li>
<li>Set an <b>expiration date</b> (e.g., 30 days)</li>
<li>Scroll down to the <b>"Select scopes"</b> section</li>
<li><b>Tick the checkbox for <code class="text-warning">user</code> scope</b></li>
<li>Click "Generate token" and copy it</li>
<li>Paste it into the input field below</li>
</ol>
</div>
<span>🔐 <b>Note:</b> Your token is only stored <u>locally</u> in your browser and never sent anywhere.</span>
</div>
<input id="popup-token-input" autocomplete="off" type="text" placeholder="Paste your GitHub token here..." class="w-full px-3 py-2 mt-7 rounded-md bg-background border border-border-input outline-none"/>
<div class="flex justify-end items-center mt-5 space-x-2">
<button id="popup-token-hide" class="px-4 py-2 rounded-md cursor-pointer bg-btn-secondary hover:bg-btn-secondary-hover text-text-title">Cancel</button>
<button id="popup-token-sub" class="px-4 py-2 rounded-md cursor-pointer bg-btn-primary hover:bg-btn-primary-hover text-text-title">Submit</button>
</div>
</div>
</div>
<script src="src/scripts/app.js" type="module"></script>
</body>
</html>