<!DOCTYPE html>
<html lang="pr-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="/css/estilo.css" />
    <title>Pokedex</title>
</head>
<body>          
    <header>
        <h1><a href="/">Pokedex</a></h1>
    </header>
    
    <main>
        <nav>
            <ul>
                <li><a href="/">In√≠cio</a></li>
                <li><a href="/cadastro">Cadastro</a></li>
            </ul>
        </nav>

        <% if(message != ""){ %>
            <section id="message">
                <p><%= message %></p><span id="close">&times;</span>
            </section>
        <% } %>

        <section class="corpo" id="poke">
            <% pokedex.forEach((elemento, indice) =>{ %>
                <a class="pokemons" href="/detalhes/<%= indice %>">               
                    <h1><%= elemento.nome %></h1>               
                    <img id="imgIndex" src="<%= elemento.imagem %>" alt="">   
                    <h1><%= elemento.tipo %></h1>
                </a>
            <% }) %>
        </section>
    </main>
    
    <script src="/js/script.js"></script>
</body>
<footer>
    <h6>Todos os direitos Pokemonizados</h6>  
</footer>
</html>