Merge version_6_1780494606830 into main
Merge version_6_1780494606830 into main
This commit was merged in pull request #6.
This commit is contained in:
@@ -67,11 +67,17 @@ export default function HeroSection(): React.JSX.Element {
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
<div className="absolute bottom-0 left-0 h-1.5 bg-white/30 w-full z-20">
|
||||
<div
|
||||
className="h-full bg-white transition-all duration-75 ease-linear"
|
||||
style={{ width: `${progress}%` }}
|
||||
/>
|
||||
<div className="absolute bottom-6 left-1/2 -translate-x-1/2 flex gap-3 w-full max-w-md px-4 z-20">
|
||||
{images.map((_, index) => (
|
||||
<div key={index} className="h-1.5 flex-1 bg-white/30 rounded-full overflow-hidden cursor-pointer" onClick={() => { setCurrentIndex(index); setProgress(0); }}>
|
||||
<div
|
||||
className="h-full bg-white transition-all duration-75 ease-linear"
|
||||
style={{
|
||||
width: index === currentIndex ? `${progress}%` : (index < currentIndex ? '100%' : '0%')
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user