-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
68 lines (62 loc) · 2.18 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Github User Profile</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/semantic.min.css">
</head>
<body>
<div id="app" class="ui container">
<h1>GitHub Profiles</h1>
<div v-if class="ui cards">
<github-user-card
v-for="username in usernames"
:username="username"
>
</github-user-card>
</div>
<div v-else>
<div class="ui active inverted dimmer">
<div class="ui text loader">Loading</div>
</div>
<p></p>
</div>
</div>
<script type="text/x-template" id="github-user-card-template">
<div class="ui card">
<div class="image">
<img :src="user.avatar_url">
</div>
<div class="content">
<a class="header">{{user.name}}</a>
<div class="meta">
<span class="date">Joined in {{new Date(user.created_at).getFullYear()}} </span>
</div>
<div class="description">
{{user.bio}} at {{user.company}}
</div>
</div>
<div class="extra content">
<a>
<i class="location arrow icon"></i>
{{ user.location }}
</a>
<div class="ui labeled button" tabindex="0">
<a :href="user.html_url" target="_blank">
<div class="ui violet button">
<i class="github icon"></i>
</div>
<a class="ui basic red left pointing label">
57 <i class="tags icon"></i>
</a>
</a>
</div>
</div>
</div>
</script>
<script src="https://unpkg.com/vue"></script>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script src="index.js"></script>
</body>
</html>