Repository navigation
Refactor home hero, catalog UI, product fallback #19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
1befb80
33124b0
a69496d
170faf1
8dca379
4fab959
9d9a5ff
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -27,8 +27,10 @@ export default function HomePage() { | |||||
| <div className="shell-container home-hero-grid reveal"> | ||||||
| <div className="home-hero-copy"> | ||||||
| <span className="home-kicker">Catálogo Li Rilko</span> | ||||||
| <h1>Encontre seu produto e finalize pelo WhatsApp.</h1> | ||||||
| <p>Categorias claras, carrinho rápido e atendimento direto com a loja.</p> | ||||||
| <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> | ||||||
|
|
||||||
| <div className="home-hero-actions"> | ||||||
| <TransitionLink className="btn btn-primary" href="/catalogo"> | ||||||
|
|
@@ -39,32 +41,14 @@ export default function HomePage() { | |||||
| </TransitionLink> | ||||||
| </div> | ||||||
|
|
||||||
| <div className="home-proof-list"> | ||||||
| <span>Categorias organizadas</span> | ||||||
| <span>Carrinho simples</span> | ||||||
| <span>Pedido no WhatsApp</span> | ||||||
| </div> | ||||||
| </div> | ||||||
|
|
||||||
| <div className="home-hero-panel"> | ||||||
| <div className="home-brand-card"> | ||||||
| <img src="/logo-li-rilko-imports.png" alt="Logo Li Rilko Imports" /> | ||||||
| </div> | ||||||
|
|
||||||
| <div className="home-metrics-grid"> | ||||||
| <div className="home-metric-card"> | ||||||
| <strong>{publicProducts.length}</strong> | ||||||
| <span>produtos ativos</span> | ||||||
| </div> | ||||||
| <div className="home-metric-card"> | ||||||
| <strong>{categories.length}</strong> | ||||||
| <span>categorias organizadas</span> | ||||||
| </div> | ||||||
| <div className="home-metric-card"> | ||||||
| <strong>WhatsApp</strong> | ||||||
| <span>atendimento direto</span> | ||||||
| </div> | ||||||
| </div> | ||||||
| <div className="home-hero-panel" aria-hidden="true"> | ||||||
| <img | ||||||
| className="home-hero-logo" | ||||||
| src="/logo-li-rilko-imports.png" | ||||||
| alt="Logo Li Rilko Imports" | ||||||
|
||||||
| alt="Logo Li Rilko Imports" | |
| alt="" |
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -5,7 +5,6 @@ import { usePathname, useRouter, useSearchParams } from "next/navigation"; | |||||||
| import { IconSearch } from "@/components/icons"; | ||||||||
| import ProductCard from "@/components/product-card"; | ||||||||
| import { useCatalog } from "@/components/providers/catalog-provider"; | ||||||||
| import TransitionLink from "@/components/transition-link"; | ||||||||
|
|
||||||||
| const SORT_OPTIONS = [ | ||||||||
| { value: "relevancia", label: "Destaques" }, | ||||||||
|
|
@@ -197,7 +196,7 @@ export default function CatalogPageContent({ | |||||||
| <IconSearch className="icon" /> | ||||||||
| <input | ||||||||
| type="text" | ||||||||
| placeholder="Buscar por produto, categoria ou característica" | ||||||||
| placeholder="Buscar" | ||||||||
|
||||||||
| placeholder="Buscar" | |
| placeholder="Buscar" | |
| aria-label="Buscar produtos no catálogo" |
There was a problem hiding this comment.
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-cardinapp/globals.css). Consider deleting the now-unused styles to avoid dead CSS and make future home hero changes easier.