Skip to content

Refactor home hero, catalog UI, product fallback - #19

Merged
siconeli1 merged 7 commits into
mainfrom
revamp-ui-ux
Mar 27, 2026
Merged

siconeli1 merged 7 commits into
mainfrom
revamp-ui-ux

Conversation

@siconeli1

Copy link
Copy Markdown
Collaborator

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.

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.
Copilot AI review requested due to automatic review settings March 27, 2026 21:51
@vercel

vercel Bot commented Mar 27, 2026

Copy link
Copy Markdown

@siconeli1 is attempting to deploy a commit to the arielaio's projects team on Vercel, but is not a member of this team. To resolve this issue, you can:

  • Make your repository public. Collaboration is free for open source and public repositories.
  • Upgrade to pro and add @siconeli1 as a member. A Pro subscription is required to access Vercel's collaborative features.
    • If you're the owner of the team, click here to upgrade and add @siconeli1 as a member.
    • If you're the user who initiated this build request, click here to request access.
    • If you're already a member of the arielaio's projects team, make sure that your Vercel account is connected to your GitHub account.

To read more about collaboration on Vercel, click here.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR streamlines the home page hero and catalog UI, improves responsive styling, and hardens product image rendering by adding a fallback when a product image is missing/blank.

Changes:

  • Refactors the home hero markup/copy and simplifies the visual panel to a single decorative image.
  • Tightens catalog UI by shortening search placeholder text and removing an extra contact link/import.
  • Adds imageSrc fallback logic in ProductCard to avoid empty/broken src attributes.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
components/product-card.js Adds a default image fallback and uses it in the product card image.
components/catalog-page-content.js Removes unused TransitionLink import/contact link and shortens search placeholder.
app/page.js Simplifies hero content/panel and removes category-card initial icon rendering.
app/globals.css Updates home hero/category card styling for the refactored layout and responsiveness.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread app/page.js
<img
className="home-hero-logo"
src="/logo-li-rilko-imports.png"
alt="Logo Li Rilko Imports"

Copilot AI Mar 27, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The hero panel is marked aria-hidden="true", but the nested logo image still has a meaningful alt. Because the whole subtree is hidden from assistive tech, that alt will never be exposed (and it’s unclear whether the logo is decorative or informative). Either remove aria-hidden if the logo should be announced, or keep it decorative and set the image alt to an empty string (and/or use presentation semantics).

Suggested change
alt="Logo Li Rilko Imports"
alt=""

Copilot uses AI. Check for mistakes.
Comment thread app/page.js
Comment on lines +30 to +33
<h1>
Novidades <span className="home-store-name">Li Rilko</span> para renovar seu estilo.
</h1>
<p>Escolhas selecionadas da loja para você comprar com praticidade e atendimento próximo.</p>

Copilot AI Mar 27, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The hero refactor removed the proof list / brand card / metrics markup, but related CSS still exists (e.g., .home-proof-list, .home-metrics-grid, .home-metric-card in app/globals.css). Consider deleting the now-unused styles to avoid dead CSS and make future home hero changes easier.

Copilot uses AI. Check for mistakes.
<input
type="text"
placeholder="Buscar por produto, categoria ou característica"
placeholder="Buscar"

Copilot AI Mar 27, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The search input relies on the placeholder text for its accessible name. Since placeholders are not a reliable substitute for a label (and the new placeholder is shorter), add an explicit accessible label (e.g., a visually-hidden <label> or an aria-label) so screen readers can identify the field consistently.

Suggested change
placeholder="Buscar"
placeholder="Buscar"
aria-label="Buscar produtos no catálogo"

Copilot uses AI. Check for mistakes.
Introduce a back button to the product detail page and associated styles. Import useRouter and add handleBack which uses router.back() when history exists, falling back to router.push('/catalogo') otherwise. Add button markup ("Voltar" with left arrow) inside a vg-product-back-row and new CSS for .vg-product-back-btn (.vg-product-back-row hidden by default and displayed in the responsive/mobile rules). This improves navigation for users landing directly on product pages or navigating from within the app.
@vercel

vercel Bot commented Mar 27, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
li-rilko Ready Ready Preview, Comment Mar 27, 2026 11:04pm

Rework layout and sizing for product action controls: prevent wrapping in modal, set fixed icon size (.vg-add-btn .icon), convert .vg-action-row to a two-column grid with gap and alignment, make .vg-qty-selector width auto, and add compact sizing (min-width, font-size, gap, padding-inline) for .vg-add-btn to improve responsive spacing and alignment.
@siconeli1
siconeli1 merged commit 883bf0b into main Mar 27, 2026
3 checks passed

This branch was successfully deployed

1 active deployment
Preview — 9d9a5ff1 Deployed Mar 27, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants