-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
50 lines (50 loc) · 2.63 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
<!--
The author of this code is Zaid Ahmed Soomro,
GitHub: https://github.com/iamzaidsoomro
Linkedin: https://www.linkedin.com/in/zaid-ahmed-742b77200/
-->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Search GitHub</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="style.css">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<link rel="icon" href="logo.png">
</head>
<body>
<div id="app" class="text-center">
<h1 class="text-light">Search on GitHub</h1>
<div class="form-group search-bar">
<input id="uname" class="form-control" type="text" placeholder="Search Username">
<button class="btn-dark" v-on:click="getUser()">Search</button>
</div>
<div class="card-item" id="card" hidden>
<div class="card-dp">
<a v-bind:href=pic target="_blank"><img v-bind:src=pic :alt=username></a>
</div>
<div class="card-body">
<div class="intro-section">
<h5>{{username}}</h5>
<h5>{{name}}</h5>
<a v-bind:href=followersLink target="_blank">Followers: <span class="badge rounded-pill bg-dark">{{followers}}</span></a>
<a v-bind:href=followingLink target="_blank">Following: <span class="badge rounded-pill bg-dark">{{following}}</span></a>
<br><br>
<a class="connect" id="twitter" v-bind:href=twitter target="_blank"><img src="twitter.svg" v-bind:alt=twitter_username></a>
<a class="connect" id="blog" v-bind:href=blog target="_blank"><img src="link.svg" v-bind:alt=website></a>
<br>
<div id="location"><img src="location.svg" alt="location"><small>{{location}}</small></div>
</div>
<div>
<p id="bio">{{bio}}</p>
<button class="btn btn-dark"><a v-bind:href=github target="_blank">View on GitHub</a></button>
</div>
</div>
</div>
</div>
<script src="https://unpkg.com/vue@3.0.5"></script>
<script src="script.js"></script>
</body>
</html>