-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
44 lines (39 loc) · 1.6 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
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Star Wars</title>
<link rel="stylesheet" href="css/styles.css"/>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,[email protected],100..700,0..1,-50..200" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Acme&family=Handlee&display=swap" rel="stylesheet">
</head>
<body>
<div id="app">
<div class="top">
<div>
<h1> {{title}} </h1>
<small>Olá, {{ userName }}</small>
</div>
<form>
<input placeholder="Busca por nome..." v-model="searchName"/>
<button type="button" @click="search()">Buscar</button>
</form>
</div>
<div class="characters">
<div class="item" v-for="item of characters">
<img :src="item.avatar" :alt="item.nome" />
<p>{{item.nome}}</p>
<span @click="like(item.nome)" class="like material-symbols-outlined">
favorite
</span>
<span @click="remove(item.id)" class="delete material-symbols-outlined">
delete
</span>
</div>
</div>
<script type="text/javascript" src="js/vue.js"></script>
<script type="text/javascript" src="js/app.js"></script>
</body>
</html>