diff --git a/gestaoRaul/db.sqlite3 b/gestaoRaul/db.sqlite3 index f5ebf1f..71dc958 100644 Binary files a/gestaoRaul/db.sqlite3 and b/gestaoRaul/db.sqlite3 differ diff --git a/gestaoRaul/gestaoRaul/__pycache__/settings.cpython-310.pyc b/gestaoRaul/gestaoRaul/__pycache__/settings.cpython-310.pyc index e7b626f..9887b0d 100644 Binary files a/gestaoRaul/gestaoRaul/__pycache__/settings.cpython-310.pyc and b/gestaoRaul/gestaoRaul/__pycache__/settings.cpython-310.pyc differ diff --git a/gestaoRaul/gestaoRaul/settings.py b/gestaoRaul/gestaoRaul/settings.py index 5e0df23..9049ff3 100644 --- a/gestaoRaul/gestaoRaul/settings.py +++ b/gestaoRaul/gestaoRaul/settings.py @@ -44,6 +44,7 @@ INSTALLED_APPS = [ 'clients', 'comandas', 'categories', + 'home', ] MIDDLEWARE = [ diff --git a/gestaoRaul/home/__pycache__/admin.cpython-310.pyc b/gestaoRaul/home/__pycache__/admin.cpython-310.pyc new file mode 100644 index 0000000..269d83a Binary files /dev/null and b/gestaoRaul/home/__pycache__/admin.cpython-310.pyc differ diff --git a/gestaoRaul/home/__pycache__/apps.cpython-310.pyc b/gestaoRaul/home/__pycache__/apps.cpython-310.pyc new file mode 100644 index 0000000..3e61757 Binary files /dev/null and b/gestaoRaul/home/__pycache__/apps.cpython-310.pyc differ diff --git a/gestaoRaul/home/__pycache__/models.cpython-310.pyc b/gestaoRaul/home/__pycache__/models.cpython-310.pyc new file mode 100644 index 0000000..1a7f14e Binary files /dev/null and b/gestaoRaul/home/__pycache__/models.cpython-310.pyc differ diff --git a/gestaoRaul/home/migrations/__pycache__/__init__.cpython-310.pyc b/gestaoRaul/home/migrations/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 0000000..7ad7b09 Binary files /dev/null and b/gestaoRaul/home/migrations/__pycache__/__init__.cpython-310.pyc differ diff --git a/gestaoRaul/products/templates/products.html b/gestaoRaul/products/templates/products.html index e216db6..901a571 100644 --- a/gestaoRaul/products/templates/products.html +++ b/gestaoRaul/products/templates/products.html @@ -3,7 +3,10 @@ {% block 'head' %} - + + + + {% endblock %} {% block 'title' %} @@ -18,10 +21,15 @@ Produtos
+ {% for product in products %} -
{{product.name}}
+
+ {{product.name}} +
{% endfor %} @@ -29,5 +37,31 @@ Produtos
+{% comment %} +

Titulo modal

+

texto qualquer

+
{% endcomment %} + + + + + + {% endblock %} \ No newline at end of file diff --git a/gestaoRaul/templates/base.html b/gestaoRaul/templates/base.html index 7ad2eb6..599fe3e 100644 --- a/gestaoRaul/templates/base.html +++ b/gestaoRaul/templates/base.html @@ -7,6 +7,7 @@ + {% block 'head' %}{% endblock %} {% block 'title' %}{% endblock %} diff --git a/gestaoRaul/templates/static/products/css/products.css b/gestaoRaul/templates/static/products/css/products.css index e69de29..df8cd95 100644 --- a/gestaoRaul/templates/static/products/css/products.css +++ b/gestaoRaul/templates/static/products/css/products.css @@ -0,0 +1,77 @@ +/* style.css */ + +.modal { + display: none; /* Oculta o modal por padrão */ + position: fixed; /* Posiciona o modal fixo na tela */ + z-index: 1; /* Garante que o modal fique acima de outros elementos */ + left: 0; + top: 0; + width: 100%; + height: 100%; + overflow: auto; /* Permite rolagem se o conteúdo for muito grande */ + background-color: rgba(0,0,0,0.4); /* Fundo escurecido */ +} + +.modal-content { + background-color: #fefefe; + margin: 15% auto; /* 15% from the top and centered */ + padding: 20px; + border: 1px solid #888; + width: 80%; +} + +.close { + color: #aaa; + float: right; + font-size: 28px; + font-weight: bold; +} + +.close:hover, +.close:focus { + color: black; + text-decoration: none; + cursor: pointer; +} + + + +.grid-container { + display: grid; + grid-template-columns: repeat(2, 1fr); + gap: 20px; + max-width: 1100px; /* Define a largura máxima do grid */ + margin: 0 auto; /* Centraliza o grid na página */ + } + +.card { + width: 100%; + height: 80px; + background-color: #f2f2f2; + border-radius: 15px; + box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2); + text-align: center; + line-height: 120px; /* Centraliza o texto verticalmente */ + font-size: 20px; + font-weight: bold; + color: #333; + transition: transform 0.2s; + } + +.card:hover { + transform: scale(1.05); + box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.3); + } + + + dialog::backdrop { + background-color: rgb(0 0 0 / .5); + } + + dialog { + border: none; + border-radius: .5rem; + box-shadow: 0 0 1em rgb(0 0 0 / .3); + width: 80%; + } + diff --git a/gestaoRaul/templates/static/products/js/products.js b/gestaoRaul/templates/static/products/js/products.js index e69de29..c7dec7f 100644 --- a/gestaoRaul/templates/static/products/js/products.js +++ b/gestaoRaul/templates/static/products/js/products.js @@ -0,0 +1,2 @@ + + \ No newline at end of file