feat: redesign CategoriesExplorer component with a modern card-based grid layout and dynamic palettes
This commit is contained in:
@@ -2,6 +2,7 @@ import AnimatedContainer from "@components/AnimatedConainer/AnimatedContainer";
|
||||
import CategoriesExplorer from "@core/app/components/Home/CategoriesExplorer/page";
|
||||
import DefaultLoginAction from "@core/app/components/LoginAction/DefaultLoginAction";
|
||||
import { ScrollToTop } from "@core/app/components/ScrollTop";
|
||||
import style from "./style.module.css";
|
||||
|
||||
export default function CategoriesPage() {
|
||||
return (
|
||||
@@ -19,19 +20,27 @@ export default function CategoriesPage() {
|
||||
>
|
||||
<ScrollToTop />
|
||||
<DefaultLoginAction />
|
||||
<div className="homeCentered">
|
||||
<h1 className="homeTitleHeader">Explorar Categorías</h1>
|
||||
<p className="homeResumeHeader">
|
||||
Explorá las categorías de servicios disponibles y encontrá fácilmente lo que
|
||||
necesitás. Cada categoría agrupa servicios para que puedas sacar turnos de forma
|
||||
rápida y organizada. Además, una vez que ingreses en una categoría, podrás
|
||||
filtrar por tu ubicación para afinar la busqueda.
|
||||
</p>
|
||||
</div>
|
||||
<div className="homeCentered">
|
||||
<CategoriesExplorer />
|
||||
<div style={{ height: "100px" }}> </div>
|
||||
</div>
|
||||
<section className={style.categoriesLanding} aria-labelledby="categories-title">
|
||||
<div className={style.heroPanel}>
|
||||
<span className={style.eyebrow}>Servicios por rubro</span>
|
||||
<h1 id="categories-title" className={style.title}>
|
||||
Explorá categorías y encontrá tu próximo turno
|
||||
</h1>
|
||||
<p className={style.resume}>
|
||||
Elegí el tipo de servicio que necesitás y después filtrá por ubicación para
|
||||
encontrar opciones cercanas, rápidas y organizadas.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div className={style.gridPanel}>
|
||||
<div className={style.gridIntro}>
|
||||
<span>Categorías disponibles</span>
|
||||
<strong>Seleccioná una para continuar</strong>
|
||||
</div>
|
||||
<CategoriesExplorer />
|
||||
</div>
|
||||
</section>
|
||||
<div className={style.bottomSpacer} aria-hidden="true" />
|
||||
</AnimatedContainer>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,138 @@
|
||||
.categoriesLanding {
|
||||
width: min(1120px, calc(100% - 32px));
|
||||
margin: 44px auto 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 28px;
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.heroPanel {
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
border: 1px solid rgba(255, 255, 255, 0.16);
|
||||
border-radius: 32px;
|
||||
padding: clamp(30px, 6vw, 68px);
|
||||
background:
|
||||
radial-gradient(circle at 12% 10%, rgba(255, 42, 127, 0.28), transparent 32%),
|
||||
radial-gradient(circle at 90% 85%, rgba(127, 42, 255, 0.36), transparent 30%),
|
||||
linear-gradient(135deg, var(--wine-superdark), var(--wine-darkest) 48%, var(--wine-dark));
|
||||
box-shadow:
|
||||
0 34px 88px rgba(16, 0, 39, 0.28),
|
||||
0 1px 0 rgba(255, 255, 255, 0.14) inset;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.heroPanel::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 10px;
|
||||
border: 1px solid rgba(255, 255, 255, 0.12);
|
||||
border-radius: 24px;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.heroPanel::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: auto -70px -120px auto;
|
||||
width: 260px;
|
||||
height: 260px;
|
||||
border-radius: 999px;
|
||||
background: rgba(66, 165, 245, 0.16);
|
||||
}
|
||||
|
||||
.eyebrow {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-bottom: 18px;
|
||||
padding: 9px 16px;
|
||||
border: 1px solid rgba(253, 228, 84, 0.34);
|
||||
border-radius: 999px;
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
box-shadow: 0 10px 26px rgba(16, 0, 39, 0.22);
|
||||
color: var(--yellow);
|
||||
font-size: 0.82rem;
|
||||
font-weight: 800;
|
||||
letter-spacing: 0.1em;
|
||||
text-transform: uppercase;
|
||||
backdrop-filter: blur(12px);
|
||||
}
|
||||
|
||||
.title {
|
||||
max-width: 820px;
|
||||
margin: 0 auto;
|
||||
color: var(--yellow);
|
||||
background: linear-gradient(90deg, var(--yellow), var(--white) 48%, var(--wine-lighter));
|
||||
background-clip: text;
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
font-size: clamp(2.35rem, 7vw, 4.9rem);
|
||||
line-height: 0.94;
|
||||
letter-spacing: -0.07em;
|
||||
}
|
||||
|
||||
.resume {
|
||||
max-width: 760px;
|
||||
margin: 22px auto 0;
|
||||
color: rgba(255, 255, 255, 0.84);
|
||||
font-size: clamp(1.03rem, 2vw, 1.28rem);
|
||||
line-height: 1.7;
|
||||
}
|
||||
|
||||
.gridPanel {
|
||||
border: 1px solid rgba(148, 163, 184, 0.24);
|
||||
border-radius: 28px;
|
||||
padding: clamp(18px, 3vw, 28px);
|
||||
background: rgba(255, 255, 255, 0.72);
|
||||
box-shadow: 0 18px 50px rgba(15, 23, 42, 0.1);
|
||||
backdrop-filter: blur(16px);
|
||||
}
|
||||
|
||||
.gridIntro {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
margin-bottom: 16px;
|
||||
color: #64748b;
|
||||
font-size: 0.94rem;
|
||||
}
|
||||
|
||||
.gridIntro strong {
|
||||
color: #0f172a;
|
||||
}
|
||||
|
||||
.bottomSpacer {
|
||||
height: 88px;
|
||||
}
|
||||
|
||||
@media (max-width: 700px) {
|
||||
.categoriesLanding {
|
||||
width: min(100% - 20px, 1120px);
|
||||
margin-top: 32px;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.heroPanel {
|
||||
border-radius: 24px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.title,
|
||||
.resume {
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
.gridPanel {
|
||||
border-radius: 22px;
|
||||
padding: 14px;
|
||||
}
|
||||
|
||||
.gridIntro {
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user