import React from 'react'; import { motion } from 'framer-motion'; import { COLLECTIONS } from '../constants'; import { CollectionItem } from '../types'; const cardVariants = { hidden: { opacity: 0, y: 80, rotateX: 15, }, visible: (index: number) => ({ opacity: 1, y: 0, rotateX: 0, transition: { delay: index * 0.15, duration: 0.8, ease: [0.25, 0.46, 0.45, 0.94], }, }), }; const Collections: React.FC = () => { const col1 = [COLLECTIONS[0], COLLECTIONS[1]]; const col2 = [COLLECTIONS[2], COLLECTIONS[3]]; const col3 = [COLLECTIONS[4], COLLECTIONS[5]]; const renderCard = (item: CollectionItem, index: number) => ( {/* Image with clean hover effect */} {/* Subtle overlay that fades out on hover */} {/* Clean reveal line effect on hover */} {item.title} {item.number} ); return ( Curated Editions Explore our seasonal collections, fired in small batches. {col1.map((item, idx) => renderCard(item, idx))} {col2.map((item, idx) => renderCard(item, idx + 2))} {col3.map((item, idx) => renderCard(item, idx + 4))} ); }; export default Collections;
Explore our seasonal collections, fired in small batches.