11import React , { useState , useEffect , useRef } from 'react' ;
2- import { Link } from 'react-router-dom' ; // Manter a importação
2+ import { Link } from 'react-router-dom' ;
33import { ChevronLeft , ChevronRight , ArrowRight , Sparkles } from 'lucide-react' ;
4- import { wines } from '../mocks/products.js' ; // Verifique o caminho
5- import "../styles/WineCarousel.css" ; // Verifique o caminho
4+ import { wines } from '../mocks/products.js' ;
5+ import "../styles/WineCarousel.css" ;
66
77const WineCard = ( { wine, isHovered, setIsHovered } ) => {
88 return (
9- // O div wrapper do cartão agora é o elemento clicável que leva aos detalhes
109 < Link to = { `/portfolio/wines/${ wine . slug } ` } className = { `wine-card-premium ${ isHovered ? 'hovered' : '' } ` }
1110 onMouseEnter = { ( ) => setIsHovered ( true ) }
1211 onMouseLeave = { ( ) => setIsHovered ( false ) }
13- style = { { textDecoration : 'none' , color : 'inherit' } } // Garante que não parece um link padrão
12+ style = { { textDecoration : 'none' , color : 'inherit' } }
1413 >
1514 < div className = "wine-card-shimmer" />
1615
@@ -41,11 +40,8 @@ const WineCard = ({ wine, isHovered, setIsHovered }) => {
4140 < span className = "variety-more-premium" > +{ wine . varieties . length - 2 } </ span >
4241 ) }
4342 </ div >
44-
45- { /* REMOVIDO o Link/Botão 'Ver Portefólio' daqui */ }
46-
4743 </ div >
48- </ Link > // Fechar o Link que envolve o cartão
44+ </ Link >
4945 ) ;
5046} ;
5147
@@ -124,7 +120,6 @@ const WineCarouselPremium = () => {
124120 < div className = "wine-carousel-line-top" />
125121
126122 < div className = "wine-carousel-container-premium" >
127- { /* Header (Título, Subtítulo, Ornamento) - Mantém-se igual */ }
128123 < div className = "wine-carousel-header-premium" >
129124 < div className = "wine-carousel-subtitle-premium" >
130125 < Sparkles size = { 12 } />
@@ -139,7 +134,6 @@ const WineCarouselPremium = () => {
139134 </ div >
140135 </ div >
141136
142- { /* Wrapper do Carrossel (Botões + Grelha) - Mantém-se igual */ }
143137 < div className = { `wine-carousel-wrapper-premium ${ totalSlides < 3 ? 'justify-center' : '' } ` } >
144138 { totalSlides > 1 && (
145139 < button onClick = { prevSlide } className = "carousel-nav-premium prev" aria-label = "Vinho anterior" >
@@ -163,7 +157,6 @@ const WineCarouselPremium = () => {
163157 ) }
164158 </ div >
165159
166- { /* Indicadores - Mantêm-se iguais */ }
167160 { totalSlides > 1 && (
168161 < div className = "wine-carousel-indicators-premium" >
169162 { availableWines . map ( ( _ , index ) => (
@@ -172,14 +165,12 @@ const WineCarouselPremium = () => {
172165 </ div >
173166 ) }
174167
175- { /* ADICIONADO: Link geral para o portefólio */ }
176168 < div className = "carousel-portfolio-link-container" >
177169 < Link to = "/portfolio/wines" className = "carousel-portfolio-link" >
178170 Ver Todo o Portefólio
179171 < ArrowRight size = { 16 } className = "portfolio-link-arrow" />
180172 </ Link >
181173 </ div >
182- { /* Fim da adição */ }
183174
184175 </ div >
185176 </ section >
0 commit comments