add product in comanda

This commit is contained in:
2024-12-13 10:48:18 -03:00
parent a3bb7bb674
commit b74d817730
12 changed files with 61 additions and 11 deletions

View File

@@ -9,6 +9,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="{% static 'base.css' %}">
<script src="{% static 'htmx_base.js' %}"></script>
{% block 'head' %}
{% endblock %}

View File

@@ -0,0 +1,13 @@
{% for product in products %}
<div class="card">
{{product.name}}
</div>
{% endfor %}

View File

@@ -6,6 +6,14 @@
margin: 0 auto; /* Centraliza o grid na página */
}
.grid-list-products {
display: grid;
grid-template-columns: repeat(3, 2fr);
gap: 10px;
max-width: 800px; /* Define a largura máxima do grid */
margin: 0 auto; /* Centraliza o grid na página */
}
.card {
width: 120px;
height: 120px;

File diff suppressed because one or more lines are too long