From 1befb80e9c7849828706f5b39e0799c75be54619 Mon Sep 17 00:00:00 2001 From: Lucas Siconeli <151700777+siconeli1@users.noreply.github.com> Date: Fri, 27 Mar 2026 18:50:57 -0300 Subject: [PATCH 1/6] Refactor home hero, catalog UI, product fallback Simplify and tidy up home hero styles and markup, improve responsiveness, and add a product image fallback. - CSS: remove some heavy hero/brand-card styles, introduce .home-hero-logo and .home-store-name, adjust layout/positioning for category count and padding for better responsive behavior. - app/page.js: update hero copy, replace branded card + metrics with a single decorative hero image (aria-hidden) and remove the proof list; remove category icon initial rendering from category cards. - components/catalog-page-content.js: shorten the search placeholder, remove unused TransitionLink import and the contact link. - components/product-card.js: add imageSrc fallback logic and use it for product images to avoid broken/empty image sources. These changes aim to streamline the home hero presentation, tighten the catalog UI, and make product images more robust. --- app/globals.css | 55 ++++++++++++------------------ app/page.js | 38 ++++++--------------- components/catalog-page-content.js | 6 +--- components/product-card.js | 6 +++- 4 files changed, 37 insertions(+), 68 deletions(-) diff --git a/app/globals.css b/app/globals.css index 650f4fd..9d79dc7 100644 --- a/app/globals.css +++ b/app/globals.css @@ -6238,7 +6238,6 @@ body.modal-open { } .home-hero-copy, -.home-hero-panel, .home-process-card, .home-highlight-card, .home-category-card, @@ -6286,6 +6285,10 @@ body.modal-open { max-width: 11ch; } +.home-store-name { + white-space: nowrap; +} + .home-hero-copy p { max-width: 58ch; color: #586174; @@ -6330,28 +6333,15 @@ body.modal-open { } .home-hero-panel { - border-radius: 28px; - padding: 1.25rem; - display: grid; - gap: 1rem; - background: - linear-gradient(160deg, #0c1220 0%, #111a2d 52%, #17233b 100%); -} - -.home-brand-card { - min-height: 270px; - border-radius: 22px; display: flex; align-items: center; justify-content: center; - background: - radial-gradient(circle at 10% 10%, rgba(227, 25, 55, 0.18), transparent 35%), - rgba(255, 255, 255, 0.98); - padding: 2rem; + padding: 0.5rem; } -.home-brand-card img { - width: min(100%, 360px); +.home-hero-logo { + width: min(100%, 520px); + max-height: 360px; object-fit: contain; } @@ -6454,24 +6444,13 @@ body.modal-open { padding: 1.25rem; display: grid; gap: 0.8rem; + position: relative; } .home-category-top { - display: flex; - align-items: center; - justify-content: space-between; -} - -.home-category-icon { - width: 42px; - height: 42px; - border-radius: 14px; - display: inline-flex; - align-items: center; - justify-content: center; - background: rgba(227, 25, 55, 0.08); - color: var(--brand); - font-weight: 800; + position: absolute; + top: 1.25rem; + right: 1.25rem; } .home-category-count { @@ -6484,6 +6463,7 @@ body.modal-open { font-family: var(--font-display), sans-serif; font-size: 1.35rem; line-height: 1.02; + padding-right: 5.5rem; } .home-category-description { @@ -6912,13 +6892,20 @@ body.modal-open { } .home-hero-copy, - .home-hero-panel, .home-process-card, .cart-summary-card { padding: 1.25rem; border-radius: 22px; } + .home-hero-panel { + padding: 0; + } + + .home-hero-logo { + max-height: 260px; + } + .home-hero-copy h1 { max-width: 9ch; font-size: clamp(2rem, 12vw, 3rem); diff --git a/app/page.js b/app/page.js index 89894e0..2319987 100644 --- a/app/page.js +++ b/app/page.js @@ -27,8 +27,10 @@ export default function HomePage() {
Categorias claras, carrinho rápido e atendimento direto com a loja.
+Escolhas selecionadas da loja para você comprar com praticidade e atendimento próximo.
- - Finalize pelo WhatsApp. A loja confirma disponibilidade, entrega ou retirada e conclui o pedido com você. + Finalize pelo WhatsApp. A loja confirma disponibilidade e conclui o pedido com você.
Principais destaques do produto:
-