-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
105 lines (95 loc) · 3.15 KB
/
Copy pathindex.html
File metadata and controls
105 lines (95 loc) · 3.15 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css"
/>
<link rel="stylesheet" href="./css/style.css" />
<style>
.hidden {
display: none;
}
</style>
<title>Random Github Repository finder</title>
</head>
<body>
<div class="container">
<div class="wrapper">
<header class="header">
<i class="fa-brands fa-github" style="font-size: 20px"></i>
<h1>GitHub Repository Finder</h1>
</header>
<main>
<select name="language" id="language" class="language-picker">
<!-- <option value="">All languages</option> -->
</select>
<!-- Non empty -->
<section class="repo-info hidden active-state">
<h2 class="repo-name">driver.js</h2>
<p class="repo-description">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Esse quo
voluptates fugit quibusdam dolor hic, natus eligendi voluptatum
distinctio recusandae!
</p>
<ul class="repo-stats">
<li>
<div class="language-color"></div>
<span class="repo-language">Javascript</span>
</li>
<li>
<i class="fa fa-star" aria-hidden="true"></i>
<span class="repo-stars"> 24, 442</span>
</li>
<li>
<i class="fa fa-code-fork" aria-hidden="true"></i>
<span class="repo-forks"> 1, 456</span>
</li>
<li>
<i
class="fa-solid fa-circle-exclamation"
aria-hidden="true"
></i>
<span class="repo-issues"> 24,442</span>
</li>
</ul>
</section>
<!-- Empty state -->
<section
class="repo-info empty-state"
style="background: rgb(220, 220, 220)"
>
<p style="color: black; text-align: center; font-weight: 600">
Please select a language
</p>
</section>
<!-- Loading state -->
<section
class="repo-info hidden loading-state"
style="background: rgb(220, 220, 220)"
>
<p
class="loading"
style="color: black; text-align: center; font-weight: 600"
></p>
</section>
<!-- Error state -->
<section
class="repo-info hidden error-state"
style="background: rgb(250, 155, 155); border: none"
>
<p
style="color: rgb(66, 0, 0); text-align: center; font-weight: 600"
>
Error fetching a repository, please refresh..
</p>
</section>
<button class="refresh-button hidden">Refresh</button>
</main>
</div>
</div>
<script type="module" src="./js/script.js"></script>
</body>
</html>