-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
59 lines (51 loc) · 3.11 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Top Starred Open Source Projects</title>
<link rel="stylesheet" href="styles.css">
<link href="https://cdnjs.cloudflare.com/ajax/libs/flowbite/2.3.0/flowbite.min.css" rel="stylesheet" />
</head>
<body>
<h1 class="mb-4 text-4xl font-extrabold leading-none tracking-tight text-gray-900 md:text-5xl lg:text-6xl dark:text-white title-spacing">Top <mark class="px-2 text-white bg-blue-600 rounded dark:bg-blue-500">starred & forked</mark> projects</h1>
<p class="text-lg font-normal text-gray-500 lg:text-l dark:text-gray-400">Get to know what is going on in the open-source world. Which projects got the most number of stars and forks in the last 24 hours.</p>
<hr class="h-px my-8 bg-gray-200 border-0 dark:bg-gray-700">
<p class="tracking-tighter text-gray-500 md:text-lg dark:text-gray-400">Top 10 starred projects are:</p>
<button type="button" id="loadStars" class="px-3 py-2 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800 button-spacing">Show stars</button>
<div class="relative overflow-x-auto">
<table class="w-full text-sm text-left rtl:text-right text-gray-500 dark:text-gray-400">
<thead class="text-xs text-gray-700 uppercase bg-gray-50 dark:bg-gray-700 dark:text-gray-400">
<tr>
<th scope="col" class="px-6 py-3">Repository</th>
<th scope="col" class="px-6 py-3">Stars</th>
</tr>
</thead>
<tbody id="starRows">
</tbody>
</table>
</div>
<hr class="h-px my-8 bg-gray-200 border-0 dark:bg-gray-700">
<p class="tracking-tighter text-gray-500 md:text-lg dark:text-gray-400">Top 10 forked projects are:</p>
<button type="button" id="loadForks" class="px-3 py-2 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800 button-spacing">Show forks</button>
<div class="relative overflow-x-auto">
<table class="w-full text-sm text-left rtl:text-right text-gray-500 dark:text-gray-400">
<thead class="text-xs text-gray-700 uppercase bg-gray-50 dark:bg-gray-700 dark:text-gray-400">
<tr>
<th scope="col" class="px-6 py-3">Repository</th>
<th scope="col" class="px-6 py-3">Forks</th>
</tr>
</thead>
<tbody id="forkRows">
</tbody>
</table>
</div>
<script src="script.js"></script>
</body>
<hr class="h-px my-8 bg-gray-200 border-0 dark:bg-gray-700">
<footer class="bg-white rounded-lg shadow dark:bg-gray-900 m-4">
<span class="text-sm text-gray-500 sm:text-center dark:text-gray-400"> Built with <a href="https://flowbite.com/" class="hover:underline">OpenSauced APIs</a>.
</span>
<ul class="flex flex-wrap items-center mt-3 text-sm font-medium text-gray-500 dark:text-gray-400 sm:mt-0">
</footer>
</html>