-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
179 lines (176 loc) · 13.1 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
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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
<!DOCTYPE html>
<html lang="en" class="">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/png" sizes="50x50" href="src/assets/github-icon-light.svg">
<title>Github | Dev Search</title>
<link rel="stylesheet" href="src/styles/output.css">
</head>
<body class="bg-gray-50 dark:text-white dark:bg-gray-900">
<div class="container mx-auto px-4">
<div class="flex justify-center w-full">
<div class="lg:w-7/12">
<!-- Main header -->
<header class="flex justify-between my-5">
<div class="flex justify-start">
<a role="link" href="https://github.com/anuraagnagar/github-devsearch-JS" target="_blank">
<svg id="github-icon" class="mr-2" height="45" width="45">
<image href="src/assets/github-icon-light.svg" class="w-full" />
</svg>
</a>
<div class="flex flex-col">
<h1 class="text-3xl font-bold leading-none">
GITHUB.
</h1><span class="text-sm leading-none">Dev Search</span>
</div>
</div>
<div class="mr-2">
<svg id="theme-icon"
class="cursor-pointer p-1 rounded-full border-gray-300 dark:border-gray-600 hover:border"
height="45" width="45">
<image href="src/assets/brightness-icon-light.svg" class="w-full" />
</svg>
</div>
</header>
<!-- Search input form -->
<form id="search-form" class="mb-5">
<label for="search"
class="mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white">Search</label>
<div class="relative">
<input id="search-input" type="search"
class="block w-full p-3 md:p-4 text-lg text-gray-900 border border-gray-300 shadow rounded-lg outline-none focus:outline-black dark:focus:outline-white dark:bg-gray-800 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white"
placeholder="Enter a github username..." autocomplete="off" required="true">
<button type="submit"
class="absolute right-2.5 bottom-2.5 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-2 md:py-1">
<svg class="w-5 h-5 text-gray-500 dark:text-gray-400 my-2" aria-hidden="true"
xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 20 20">
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"
stroke-width="2" d="m19 19-4-4m0-7A7 7 0 1 1 1 8a7 7 0 0 1 14 0Z" />
</svg>
</button>
</div>
</form>
<!-- Users detail card -->
<section
class="p-3 lg:p-6 bg-white border border-gray-300 rounded-lg shadow dark:bg-gray-800 dark:border-gray-700">
<div>
<div class="flex justify-start">
<img id="profile"
class="w-20 h-20 md:w-36 md:h-36 text-dark bg-gray-100 rounded border border-gray-300 dark:text-white dark:bg-gray-700 dark:border-gray-600 mr-5"
src="https://avatars.githubusercontent.com/u/9919?v=4" alt="User avatar">
<div class="flex flex-col w-full">
<div class="mb-5">
<h3 id="fullname"
class="mb-1 text-3xl font-bold tracking-tight text-gray-900 dark:text-white">
GitHub</h3>
<h5
class="inline font-bold hover:text-violet-500 dark:text-white dark:hover:text-violet-500">
<a id="username" href="#" target="_blank">@github</a>
</h5>
<p id="bio" class="mt-3 text-gray-600 dark:text-gray-400">
How people build software.
</p>
</div>
<div class="mb-5">
<div class="flex justify-start ml-2 mb-3">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20"
fill="currentColor" class="my-auto mr-2" viewBox="0 0 16 16">
<path
d="M12.166 8.94c-.524 1.062-1.234 2.12-1.96 3.07A31.493 31.493 0 0 1 8 14.58a31.481 31.481 0 0 1-2.206-2.57c-.726-.95-1.436-2.008-1.96-3.07C3.304 7.867 3 6.862 3 6a5 5 0 0 1 10 0c0 .862-.305 1.867-.834 2.94zM8 16s6-5.686 6-10A6 6 0 0 0 2 6c0 4.314 6 10 6 10z" />
<path
d="M8 8a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm0 1a3 3 0 1 0 0-6 3 3 0 0 0 0 6z" />
</svg>
<h4 id="location" class="text-lg italic text-gray-500">San Francisco, CA</h4>
</div>
<div class="flex justify-start ml-2 mb-3">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20"
fill="currentColor" class="my-auto mr-2" viewBox="0 0 16 16">
<path
d="M4.715 6.542 3.343 7.914a3 3 0 1 0 4.243 4.243l1.828-1.829A3 3 0 0 0 8.586 5.5L8 6.086a1.002 1.002 0 0 0-.154.199 2 2 0 0 1 .861 3.337L6.88 11.45a2 2 0 1 1-2.83-2.83l.793-.792a4.018 4.018 0 0 1-.128-1.287z" />
<path
d="M6.586 4.672A3 3 0 0 0 7.414 9.5l.775-.776a2 2 0 0 1-.896-3.346L9.12 3.55a2 2 0 1 1 2.83 2.83l-.793.792c.112.42.155.855.128 1.287l1.372-1.372a3 3 0 1 0-4.243-4.243L6.586 4.672z" />
</svg>
<h4
class="text-lg italic text-gray-500 hover:text-violet-500 dark:hover:text-violet-500">
<a id="website" href="#">Not Available</a>
</h4>
</div>
<div class="flex justify-start ml-2 mb-3">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20"
fill="currentColor" class="my-auto mr-2" viewBox="0 0 16 16">
<path
d="M5.026 15c6.038 0 9.341-5.003 9.341-9.334 0-.14 0-.282-.006-.422A6.685 6.685 0 0 0 16 3.542a6.658 6.658 0 0 1-1.889.518 3.301 3.301 0 0 0 1.447-1.817 6.533 6.533 0 0 1-2.087.793A3.286 3.286 0 0 0 7.875 6.03a9.325 9.325 0 0 1-6.767-3.429 3.289 3.289 0 0 0 1.018 4.382A3.323 3.323 0 0 1 .64 6.575v.045a3.288 3.288 0 0 0 2.632 3.218 3.203 3.203 0 0 1-.865.115 3.23 3.23 0 0 1-.614-.057 3.283 3.283 0 0 0 3.067 2.277A6.588 6.588 0 0 1 .78 13.58a6.32 6.32 0 0 1-.78-.045A9.344 9.344 0 0 0 5.026 15z" />
</svg>
</svg>
<h4
class="text-lg italic text-gray-500 hover:text-violet-500 dark:hover:text-violet-500">
<a id="twitter" href="#">Not Available</a>
</h4>
</div>
<div class="flex justify-start ml-2 mb-3">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20"
fill="currentColor" class="my-auto mr-2" viewBox="0 0 16 16">
<path
d="M0 4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V4Zm2-1a1 1 0 0 0-1 1v.217l7 4.2 7-4.2V4a1 1 0 0 0-1-1H2Zm13 2.383-4.708 2.825L15 11.105V5.383Zm-.034 6.876-5.64-3.471L8 9.583l-1.326-.795-5.64 3.47A1 1 0 0 0 2 13h12a1 1 0 0 0 .966-.741ZM1 11.105l4.708-2.897L1 5.383v5.722Z" />
</svg>
<h4 class="text-lg italic text-gray-500 hover:text-violet-500
dark:hover:text-violet-500">
<a id="email" href="#">Not Available</a>
</h4>
</div>
<div class="flex justify-start ml-2 mb-3">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20"
fill="currentColor" class="my-auto mr-2" viewBox="0 0 16 16">
<path
d="M14.763.075A.5.5 0 0 1 15 .5v15a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5V14h-1v1.5a.5.5 0 0 1-.5.5h-9a.5.5 0 0 1-.5-.5V10a.5.5 0 0 1 .342-.474L6 7.64V4.5a.5.5 0 0 1 .276-.447l8-4a.5.5 0 0 1 .487.022ZM6 8.694 1 10.36V15h5V8.694ZM7 15h2v-1.5a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 .5.5V15h2V1.309l-7 3.5V15Z" />
<path
d="M2 11h1v1H2v-1Zm2 0h1v1H4v-1Zm-2 2h1v1H2v-1Zm2 0h1v1H4v-1Zm4-4h1v1H8V9Zm2 0h1v1h-1V9Zm-2 2h1v1H8v-1Zm2 0h1v1h-1v-1Zm2-2h1v1h-1V9Zm0 2h1v1h-1v-1ZM8 7h1v1H8V7Zm2 0h1v1h-1V7Zm2 0h1v1h-1V7ZM8 5h1v1H8V5Zm2 0h1v1h-1V5Zm2 0h1v1h-1V5Zm0-2h1v1h-1V3Z" />
</svg>
<h4 id="company" class="text-lg italic text-gray-500">Not Available</h4>
</div>
</div>
<div
class="flex justify-around p-2 lg:p-5 bg-gray-100 border border-gray-300 rounded-lg dark:bg-gray-900 dark:border-gray-700 mb-5">
<div>
<h3 class="text-sm md:text-1xl font-bold">Repository</h3>
<p id="repository" class="text-sm text-gray-500">000</p>
</div>
<div>
<h3 class="text-sm md:text-1xl font-bold">Followers</h3>
<p id="followers" class="text-sm text-gray-500">000</p>
</div>
<div>
<h3 class="text-sm md:text-1xl font-bold">Following</h3>
<p id="following" class="text-sm text-gray-500">000</p>
</div>
</div>
<div>
<h4 id="created" class="text-sm font-bold text-gray-500 dark:text-gray-400">
</h4>
</div>
</div>
</div>
</div>
</section>
<!-- footer section -->
<footer class="my-5 ml-2">
<div class="leading-none">
<p class="flex text-sm text-gray-700 dark:text-gray-200">Made by
<svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" fill="currentColor"
class="text-sm text-gray-700 dark:text-gray-200 ml-1 mt-1" viewBox="0 0 16 16">
<path fill-rule="evenodd"
d="M4.931.481c1.627-1.671 5.692 1.254 0 5.015-5.692-3.76-1.626-6.686 0-5.015Zm6.84 1.794c1.084-1.114 3.795.836 0 3.343-3.795-2.507-1.084-4.457 0-3.343ZM7.84 7.642c2.71-2.786 9.486 2.09 0 8.358-9.487-6.268-2.71-11.144 0-8.358Z" />
</svg>
</p>
<h3 class="font-bold text-gray-400 dark:text-gray-500">
<a href="https://github.com/anuraagnagar" class="hover:text-violet-500">Anurag Nagar</a>
</h3>
</div>
</footer>
</div>
</div>
</div>
<script src="src/scripts.js"></script>
</body>
</html>