-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
41 lines (37 loc) · 1.66 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
<!DOCTYPE html>
<html lang="pt-BR">
<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="/assets/css/global.css">
<link rel="stylesheet" href="/assets/css/pokedex.css">
<link rel="stylesheet" href="/node_modules/normalize.css/normalize.css">
<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=Fuzzy+Bubbles&family=Roboto:wght@100;300;500;700&display=swap" rel="stylesheet">
<title>Pokedex</title>
<!-- carrega os estilos e links antes de carregar a pagina -->
</head>
<body>
<section class="content">
<h1>Pokedex</h1>
<div id="totalPokemon"></div>
<!-- essa estrutura de OL tem que ser repetida para cada um dos dados vindos da API -->
<ol id="pokemonList" class="pokemons">
<!-- aqui o JS vai colocar a lista de pokemons vindos da API -->
</ol>
<div class="pagination">
<!-- botao para paginacao -->
<button id="loadMoreButton" class="btn" type="button">
Load More
</button>
</div>
</section>
<footer>
<p class="rodape">2022 - Exemplo de consumo de API com JavaScript - <span>Fernando Gropp ©</span></p>
</footer>
<!-- a ordem da importacao da API é muito importante -->
<script src="/assets/js/pokemon-model.js"></script>
<script src="/assets/js/poke-api.js"></script>
<script src="/assets/js/main.js"></script>
</body>
</html>