feat: implement Phase 5 Swipe Discovery Carousel
This commit is contained in:
@@ -2213,3 +2213,134 @@ body.nav-open { overflow: hidden; }
|
||||
opacity: 0.3;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
/* ── 23. PHASE 5: SWIPE DISCOVERY CAROUSEL ────────────────────── */
|
||||
.swipe-discovery {
|
||||
padding: clamp(2rem, 5vw, 4rem) 0;
|
||||
overflow: hidden;
|
||||
background: var(--surface-2);
|
||||
}
|
||||
.swipe-discovery__header {
|
||||
margin-bottom: 2.5rem;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
padding: 0 var(--grid-margin);
|
||||
}
|
||||
.eyebrow-goal {
|
||||
color: var(--color-accent-gold);
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.15em;
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
.swipe-track {
|
||||
display: flex;
|
||||
gap: var(--grid-gap);
|
||||
padding: 0 var(--grid-margin) 2rem var(--grid-margin);
|
||||
overflow-x: auto;
|
||||
scroll-snap-type: x mandatory;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
scrollbar-width: none;
|
||||
cursor: grab;
|
||||
}
|
||||
.swipe-track::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
.swipe-track.active {
|
||||
cursor: grabbing;
|
||||
}
|
||||
.swipe-card {
|
||||
flex: 0 0 clamp(280px, 60vw, 400px);
|
||||
scroll-snap-align: center;
|
||||
position: relative;
|
||||
border-radius: var(--radius);
|
||||
overflow: hidden;
|
||||
background: var(--surface);
|
||||
box-shadow: var(--shadow);
|
||||
transition: transform 0.4s var(--ease-out-expo);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.swipe-card__image {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
aspect-ratio: 4/3;
|
||||
overflow: hidden;
|
||||
display: block;
|
||||
}
|
||||
.swipe-card__image img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
transition: transform 0.6s var(--ease-out-expo);
|
||||
}
|
||||
.swipe-card:hover .swipe-card__image img {
|
||||
transform: scale(1.05);
|
||||
}
|
||||
.swipe-card__image .btn-favorite {
|
||||
position: absolute;
|
||||
top: 1rem;
|
||||
right: 1rem;
|
||||
z-index: 10;
|
||||
background: rgba(255, 255, 255, 0.9);
|
||||
border: none;
|
||||
border-radius: 50%;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
|
||||
transition: transform 0.3s var(--ease-overshoot), background 0.3s;
|
||||
}
|
||||
[data-theme="dark"] .swipe-card__image .btn-favorite {
|
||||
background: rgba(0, 0, 0, 0.6);
|
||||
}
|
||||
.swipe-card__image .btn-favorite svg {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
color: var(--muted);
|
||||
transition: fill 0.3s, color 0.3s;
|
||||
}
|
||||
.swipe-card__image .btn-favorite.active svg {
|
||||
fill: var(--color-terracotta);
|
||||
color: var(--color-terracotta);
|
||||
}
|
||||
.swipe-card__body {
|
||||
padding: 1.5rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
background: var(--surface);
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
}
|
||||
.swipe-card__badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.4rem;
|
||||
background: var(--accent-soft);
|
||||
color: var(--color-accent-gold);
|
||||
padding: 0.25rem 0.75rem;
|
||||
border-radius: 20px;
|
||||
font-size: 0.7rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.05em;
|
||||
text-transform: uppercase;
|
||||
margin-bottom: 0.5rem;
|
||||
width: fit-content;
|
||||
}
|
||||
.swipe-card__body h3 {
|
||||
font-size: clamp(1.2rem, 2vw, 1.5rem);
|
||||
line-height: 1.2;
|
||||
}
|
||||
.swipe-card__body h3 a {
|
||||
text-decoration: none;
|
||||
color: var(--ink);
|
||||
}
|
||||
.swipe-card__body h3 a::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user