Commit cf9ee5cd by Marcos Teles

Adicionando HTML do index.

parent c8f3d141
<!DOCTYPE html>
<html lang="pt-BR">
<html lang="PT-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="{{ url_for('static', filename='style.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=Lexend:wght@100..900&display=swap" rel="stylesheet">
<title>Dishly</title>
</head>
<body>
<div class="container">
<header>
<h1>Receitas</h1>
<p class="subtitle">Gerenciamento de receitas</p>
</header>
<div class="actions">
<a href="/cadastro" class="btn btn-primary">➕ Nova Receita</a>
</div>
{% if receitas %}
<div class="table-responsive">
<table class="receitas-table">
<thead>
<tr>
<th>Nome</th>
<th>Porções</th>
<th>Tempo</th>
<th>Descrição</th>
<th>Ingredientes</th>
<th>Preparo</th>
</tr>
</thead>
<tbody>
{% for a in receitas %}
<tr>
<td><strong>{{ a.nome }}</strong></td>
<td>{{ a.porcoes }} porções</td>
<td>{{ a.tempo }} minutos</td>
<td>{{ a.descricao }}</td>
<td>{{ a.ingredientes }}</td>
<td>{{ a.preparo }}</td>
<td class="actions-column">
<a href="/editar/{{ a.id }}" class="btn btn-edit">✏️ Editar</a>
<a href="/delete/{{ a.id }}" class="btn btn-delete" onclick="return confirm('Tem certeza que deseja deletar?')">🗑️ Deletar</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% else %}
<div class="empty-state">
<p>Nenhuma receita cadastrada ainda.</p>
<a href="/cadastro" class="btn btn-primary">Cadastre a primeira receita</a>
</div>
{% endif %}
</div>
</body>
</html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment