<%- include('./partials/header.ejs') %>
<body>
    <%- include('./partials/navbar.ejs') %>

    <div class="container mt-3 mb-5">
        <h1>Perguntas cadastradas</h1>
        <hr>
        <% perguntas.forEach(pergunta => { %>

            <div class="card mt-3">
                <div class="card-body">
                    <h3><%= pergunta.titulo %></h3>
                    <p><%= pergunta.descricao %></p>
                </div>
            </div>
            <div class="card-footer remove-bordet-top">
                <a class="btn btn-success" href="pergunta/<%= pergunta.id %>">Responder</a>
            </div>

        <% }) %>

    </div>
</body>
<%- include('./partials/footer.ejs') %>
