-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
131 lines (125 loc) · 4.46 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="css/bootstrap.min.css" />
<link rel="stylesheet" href="css/style.css" />
<title>Github Info</title>
</head>
<body>
<!--PreLoader Start -->
<div class="preloader"> <img class="preloader-icon" src="image/preloder.gif" alt="My Site Preloader"> </div>
<!-- PreLoader End -->
<div class="container" id="git_info">
<div class="row justify-content-center my-4 mx-2">
<h5 class="text-center">
Enter a valid github username it shows the github details information of that user. (Ex: sakibmd, lahin31, hasinhayder)
</h5>
</div>
<div class="row justify-content-center my-4">
<div class="col-md-6">
<div class="card p-2">
<div class="card-header">
<h4>Get Github Details Easily</h4>
</div>
<div class="card-body">
<br />
<form @submit.prevent="get_details">
<div class="form-group">
<label for="username"><b>Username</b></label>
<input placeholder="enter username" id="username" type="text" class="form-control" v-model="username" />
</div>
<div class="buttons">
<button type="submit" class="btn btn-success btn-sm mr-2">Get Details</button>
<a href class="btn btn-warning btn-sm" @click.prevent="reset">Reset</a
>
</div>
</form>
</div>
</div>
</div>
<div class="col-md-6" v-if="showresult">
<div v-if="userinfo.id">
<table class="table table-bordered mt-2">
<tr>
<th>Name</th>
<td>{{ userinfo.name }}</td>
</tr>
<tr>
<th>Profile Photo</th>
<td>
<img
:src="userinfo.avatar_url"
:alt="userinfo.name"
height="200"
width="180"
/>
</td>
</tr>
<tr>
<th>Username</th>
<td>{{ userinfo.login }}</td>
</tr>
<tr>
<th>Id</th>
<td>{{ userinfo.id }}</td>
</tr>
<tr>
<th>Email</th>
<td>{{ userinfo.blog }}</td>
</tr>
<tr>
<th>Organization</th>
<td>{{ userinfo.company }}</td>
</tr>
<tr>
<th>Location</th>
<td>{{ userinfo.location }}</td>
</tr>
<tr>
<th>Followers</th>
<td>{{ userinfo.followers }}</td>
</tr>
<tr>
<th>Following</th>
<td>{{ userinfo.following }}</td>
</tr>
<tr>
<th>Repository</th>
<td>{{ userinfo.public_repos }}</td>
</tr>
<tr>
<th>Twitter username</th>
<td>{{ userinfo.twitter_username }}</td>
</tr>
<tr>
<th>Account Created</th>
<td>{{ userinfo.created_at.substring(0, 10) }}</td>
</tr>
<tr>
<th>Bio</th>
<td>{{ userinfo.bio }}</td>
</tr>
</table>
</div>
<div class="text-center" v-else>
<div
v-if="userinfo['message'] == 'Not Found'"
class="card mt-3 p-3 bg-danger text-white"
>
<h6>Invalid Username! Please enter a valid username</h6>
</div>
<div v-else class="card p-3">
<h6>Please wait....</h6>
<div class="preloader-image justify-content-center"><img height="64" width="64" src="image/64x64.gif" alt=""></div>
</div>
</div>
</div>
</div>
</div>
<script src="js/vue.global.js"></script>
<script src="js/script.js "></script>
</body>
</html>