-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
55 lines (51 loc) · 2.47 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>GitHub Finder - by @rodrigocabral</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<script src="https://unpkg.com/vue"></script>
</head>
<body class="bg-light">
<header>
<!-- Navbar fixa -->
<nav class="navbar navbar-expand-md navbar-dark bg-dark">
<div class="container">
<a href="#" class="navbar-brand">GitHub Finder</a>
</div>
</nav>
</header>
<main class="container" id="app">
<div class="row">
<div class="bg-white my-3 p-3 rounded shadow-sm col-12">
<h1>Busca de Usuários do GitHub</h1>
<p class="lead">Informe o usuário para pesquisar os perfis</p>
<div class="input-group mb-3">
<input type="text" class="form-control" v-model="term" placeholder="Nome do usuário" >
<div class="input-group-append">
<button class="btn btn-outline-secondary" @click="findUser" type="button" id="button-addon2">Pesquisar</button>
</div>
</div>
</div>
</div>
<div v-if="items.length > 0" class="row">
<div class="bg-white my-3 p-3 rounded shadow-sm col-12">
<h6 class="border-bottom border-gray pb-2 mb-0">Resultado da busca</h6>
<template v-for="item in items">
<div class="media text-muted pt-3">
<img data-src="" alt="32x32" class="mr-2 rounded" style="width: 32px; height: 32px;" :src="item.avatar_url" data-holder-rendered="true">
<p class="media-body pb-3 mb-0 small lh-125 border-bottom border-gray">
<strong class="d-block text-gray-dark"><a :href="item.html_url" target="_blank">@{{item.login}}</a></strong>
<a :href="item.repos_url" target="_blank">
{{item.repos_url}}
</a>
</p>
</div>
</template>
</div>
</div>
</main>
<script src="app.js"></script>
</body>
</html>