-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
132 lines (119 loc) · 7.67 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Github Fight</title>
<meta charset="UTF-8">
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/octicons/4.4.0/font/octicons.css" rel="stylesheet">
<link href="src/style.css" rel="stylesheet">
<link href="src/octocatfight.ico" rel="shortcut icon" />
</head>
<body>
<div class="container" id="app">
<div class="title">
<svg height="32" class="octicon octicon-logo-github" viewBox="0 0 45 16" version="1.1" width="90" aria-hidden="true"><path fill-rule="evenodd" d="M18.53 12.03h-.02c.009 0 .015.01.024.011h.006l-.01-.01zm.004.011c-.093.001-.327.05-.574.05-.78 0-1.05-.36-1.05-.83V8.13h1.59c.09 0 .16-.08.16-.19v-1.7c0-.09-.08-.17-.16-.17h-1.59V3.96c0-.08-.05-.13-.14-.13h-2.16c-.09 0-.14.05-.14.13v2.17s-1.09.27-1.16.28c-.08.02-.13.09-.13.17v1.36c0 .11.08.19.17.19h1.11v3.28c0 2.44 1.7 2.69 2.86 2.69.53 0 1.17-.17 1.27-.22.06-.02.09-.09.09-.16v-1.5a.177.177 0 0 0-.146-.18zm23.696-2.2c0-1.81-.73-2.05-1.5-1.97-.6.04-1.08.34-1.08.34v3.52s.49.34 1.22.36c1.03.03 1.36-.34 1.36-2.25zm2.43-.16c0 3.43-1.11 4.41-3.05 4.41-1.64 0-2.52-.83-2.52-.83s-.04.46-.09.52c-.03.06-.08.08-.14.08h-1.48c-.1 0-.19-.08-.19-.17l.02-11.11c0-.09.08-.17.17-.17h2.13c.09 0 .17.08.17.17v3.77s.82-.53 2.02-.53l-.01-.02c1.2 0 2.97.45 2.97 3.88zm-8.72-3.61H33.84c-.11 0-.17.08-.17.19v5.44s-.55.39-1.3.39-.97-.34-.97-1.09V6.25c0-.09-.08-.17-.17-.17h-2.14c-.09 0-.17.08-.17.17v5.11c0 2.2 1.23 2.75 2.92 2.75 1.39 0 2.52-.77 2.52-.77s.05.39.08.45c.02.05.09.09.16.09h1.34c.11 0 .17-.08.17-.17l.02-7.47c0-.09-.08-.17-.19-.17zm-23.7-.01h-2.13c-.09 0-.17.09-.17.2v7.34c0 .2.13.27.3.27h1.92c.2 0 .25-.09.25-.27V6.23c0-.09-.08-.17-.17-.17zm-1.05-3.38c-.77 0-1.38.61-1.38 1.38 0 .77.61 1.38 1.38 1.38.75 0 1.36-.61 1.36-1.38 0-.77-.61-1.38-1.36-1.38zm16.49-.25h-2.11c-.09 0-.17.08-.17.17v4.09h-3.31V2.6c0-.09-.08-.17-.17-.17h-2.13c-.09 0-.17.08-.17.17v11.11c0 .09.09.17.17.17h2.13c.09 0 .17-.08.17-.17V8.96h3.31l-.02 4.75c0 .09.08.17.17.17h2.13c.09 0 .17-.08.17-.17V2.6c0-.09-.08-.17-.17-.17zM8.81 7.35v5.74c0 .04-.01.11-.06.13 0 0-1.25.89-3.31.89-2.49 0-5.44-.78-5.44-5.92S2.58 1.99 5.1 2c2.18 0 3.06.49 3.2.58.04.05.06.09.06.14L7.94 4.5c0 .09-.09.2-.2.17-.36-.11-.9-.33-2.17-.33-1.47 0-3.05.42-3.05 3.73s1.5 3.7 2.58 3.7c.92 0 1.25-.11 1.25-.11v-2.3H4.88c-.11 0-.19-.08-.19-.17V7.35c0-.09.08-.17.19-.17h3.74c.11 0 .19.08.19.17z"></path></svg>
<span class="fight-name"> Fight</span>
<p class="gh-btns pull-right">
<iframe src="https://ghbtns.com/github-btn.html?user=marcosrjjunior&repo=github-fight&type=watch&count=true&size=large"
allowtransparency="true" frameborder="0" scrolling="0" width="152" height="30"></iframe>
</p>
</div>
<div class="jumbotron pn" v-show="$data.winner.status">
<h3>{{ $data.winner.message }}</h3>
<h4>
<a href="https://github.com/{{ $data.winner.user.login }}">{{ $data.login }}</a>
</h4>
<div class="giphy"></div>
</div>
<div class="row marketing">
<div class="col-xs-5">
<corner
v-ref:one
corner="Blue Corner User"
image="https://octodex.github.com/images/luchadortocat.png"
></corner>
</div>
<div class="col-xs-2">
<button class="btn btn-danger btn-lg fight" v-show="requiredUsers" id="fight" @click="fight()">
FIGHT!
</button>
</div>
<div class="col-xs-5">
<corner
v-ref:two
corner="Red Corner User"
image="https://octodex.github.com/images/spidertocat.png"
></corner>
</div>
</div>
<template id="corner-template">
<div>
<div class="panel panel-default" v-if="! user.id">
<div class="panel-heading">
<div class="input-group">
<input type="text" class="form-control" placeholder="{{ corner }}"
v-model="user.login"
@keyup.enter="getUser"
>
<a class="input-group-addon btn" :disabled="! user.login" @click="getUser">
<i class="octicon octicon-check"></i>
</a>
</div>
</div>
<div class="panel-body">
<img class="octodex" :src="image">
</div>
</div>
<div class="panel panel-default" v-show="user.id">
<div class="panel-heading">
<label>
{{ user.login }}
<span class="user-info">
<span class="octicon octicon-star"> {{ user.stars }} </span>
<span class="octicon octicon-person"> {{ user.followers }} </span>
</span>
</label>
<span class="pull-right octicon octicon-x" @click="removeUser"></span>
</div>
<div class="panel-body user-avatar">
<img class="users" :src="user.avatar">
</div>
<ul class="list-group" v-for="repo in user.repos | orderBy 'stars' -1">
<li class="list-group-item">
<button class="btn btn-link" type="button" data-toggle="tooltip" data-placement="top" title="{{ repo.description }}">
<span class="glyphicon glyphicon-chevron-up"></span>
</button>
<a href="{{ repo.url }}">
{{ repo.name }}
</a>
<span class="pull-right octicon octicon-star repo-star">
{{ repo.stars }}
</span>
</li>
</ul>
</div>
</div>
</template>
<nav class="infos">
<ul class="pager">
<li>
<a><span class="octicon octicon-star"> <span>5 Points</a>
</li>
<li>
<a><span class="octicon octicon-person"> <span>2 Points</a>
</li>
</ul>
</nav>
<footer class="footer">
<p>
Made for study, this joke uses <a href="http://vuejs.org/">Vuejs</a>, <a href="https://developer.github.com/v3/">Github API</a> and <a href="https://api.giphy.com/">Giphy API</a> to compare Users
</p>
<p>
Created by <a href="https://github.com/marcosrjjunior"><strong>@marcosrjjunior</strong></a>
</p>
</footer>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="build/build.js"></script>
</body>
</html>