From ac75dc833dc28205743a67822737b8e3a8d5e017 Mon Sep 17 00:00:00 2001 From: Edmilson Lopes Date: Wed, 10 Dec 2025 14:42:20 -0300 Subject: [PATCH] Refine storefront layout and order queue --- src/App.js | 67 +++++++---- src/components/Admin/GrillQueue.jsx | 14 ++- src/components/Client/MenuView.jsx | 165 ++++++++++++++++------------ 3 files changed, 151 insertions(+), 95 deletions(-) diff --git a/src/App.js b/src/App.js index 11222a22..90d850c3 100644 --- a/src/App.js +++ b/src/App.js @@ -276,45 +276,64 @@ function App() { } return ( -
-
-
- O melhor churrasco da região • Peça agora -
-
+
+
+
-
+
ED
-

Datony

- Espetinhos Premium +

Espetinho Datony

+

O melhor da região

-
+
+
+ Aberto agora +
+ - +
+
+ +
+
+
+

Faça seu pedido e retire rápido

+

Espetinhos artesanais e bebidas geladas

+
+
+
Pagamento na retirada
+
Programe pelo WhatsApp
+
-
+
{view === 'login' && ( -
-
-

Acesso do administrador

-

Use usuário e senha definidos no banco (PGUSER/PGPASSWORD).

+ +
+ +

Acesso do administrador

+

Use usuário e senha definidos no banco (PGUSER/PGPASSWORD).

{loginError &&
{loginError}
} @@ -327,7 +346,7 @@ function App() { type="text" value={loginForm.username} onChange={(e) => setLoginForm((prev) => ({ ...prev, username: e.target.value }))} - className="w-full border rounded-lg p-3 focus:ring-2 focus:ring-red-500 focus:outline-none" + className="w-full border border-gray-200 rounded-lg p-3 focus:ring-2 focus:ring-red-500 focus:outline-none" placeholder="postgres" />
@@ -341,7 +360,7 @@ function App() { type="password" value={loginForm.password} onChange={(e) => setLoginForm((prev) => ({ ...prev, password: e.target.value }))} - className="w-full border rounded-lg p-3 focus:ring-2 focus:ring-red-500 focus:outline-none" + className="w-full border border-gray-200 rounded-lg p-3 focus:ring-2 focus:ring-red-500 focus:outline-none" placeholder="senha do banco" />
@@ -349,14 +368,14 @@ function App() {
@@ -391,7 +410,7 @@ function App() { {view === 'menu' && Object.keys(cart).length > 0 && ( -
+
-
- - Filtros -
-
- {filteredProducts.map((item) => ( -
-
- {item.imageUrl ? ( - {item.name} - ) : ( -
- -
- )} +
+ {groupedProducts.map(([category, items]) => ( +
+
+ + {groupIcon(category)} + + {category}
+
+ {items.map((item) => ( +
+
+
+

{item.name}

+ {item.category && ( + + {item.category} + + )} +
+

{item.desc || 'Feito na brasa na hora para você.'}

+
-
-
-
-

{item.name}

- {item.category && ( - - {item.category} - - )} -
-

{item.desc}

-
-
- {formatCurrency(item.price)} - - {cart[item.id] ? ( -
- - {cart[item.id].qty} - +
+ {formatCurrency(item.price)} + {cart[item.id] ? ( +
+ + {cart[item.id].qty} + +
+ ) : ( + + )}
- ) : ( - - )} -
+
+ ))}
-
+
))}
{Object.keys(cart).length > 0 && ( -
+