<!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="style.css">
    <title>Pokedex</title>
</head>

<body>

    <nav>
        <ul>
            <li><img src="img/pokebola.png" alt="Pokebola"></li>
            <li>
                <a href="/">
                    <h1>Pokédex</h1>
                </a>
            </li>
            <li><a href="cadastro">Cadastro</a> </li>
        </ul>
    </nav>

    <header>
        <img src="img/30091641838086.webp" alt="banner" >
    </header>


    <main>

        <section id='cards'>

            <h2>Lista de Pokemons</h2>

            <% pokedex.forEach((pokemon)=> { %>
                <div class="card">

                    <img src="<%= pokemon.imagem %>" alt="pokemon.imagem">

                    <h3>
                        <%= pokemon.nome %>
                    </h3>
                    
                    <p class="descricao">
                        <%= pokemon.descricao %>
                    </p>
                    <p>Tipo: <%= pokemon.tipo %>
                    </p>
                    <a id="editar" href="/detalhes/<%= pokemon.id %>">ver mais</a>
                    <a id="apagar" href="/delete/<%= pokemon.id %>">Apagar</a>
                </div>
                <% }) %>

        </section>



    </main>

    <footer>
        <p>Todos os direitos resevados para <a target="_blank" href="https://github.com/TainaVilela">Tainá Vilela Bar</a>  &copy;</p>
        <p>Dados retirados de <a target="_blank" href="https://www.heypikachu.com/pokedex">Pokédex</a></p>
    </footer>
    <script src="/script.js"></script>
</body>

</html>