import React from 'react'; import { CATEGORIES } from '../constants'; interface CategoryGridProps { onSelectCategory: (id: string) => void; title?: string; } const CategoryGrid: React.FC = ({ onSelectCategory }) => { const threeCategories = CATEGORIES.filter(c => c.id !== 'CENTRE-ACTIVITY'); const centreActivityCategory = CATEGORIES.find(c => c.id === 'CENTRE-ACTIVITY'); return (

Discover by Category

{/* Three Standard Categories */}
{threeCategories.map((cat) => (
onSelectCategory(cat.id)} className="group relative h-[380px] md:h-[500px] rounded-[3rem] overflow-hidden cursor-pointer shadow-[0_20px_50px_rgba(0,0,0,0.1)] transition-all duration-700 hover:scale-[1.02] hover:shadow-[0_40px_80px_rgba(0,0,0,0.25)]" > {/* Background Image with Zoom Effect */} {cat.name} {/* Premium Multi-layer Overlay */}
{/* Border Glow on Hover */}
{/* Rich Typography and Content */}
Explore Events

{cat.name}

))}
{/* Centre Activity Wide Card */} {centreActivityCategory && (
onSelectCategory(centreActivityCategory.id)} className="group relative h-[320px] md:h-[420px] rounded-[3.5rem] overflow-hidden cursor-pointer shadow-[0_20px_50px_rgba(0,0,0,0.15)] transition-all duration-700 hover:scale-[1.01] hover:shadow-[0_40px_80px_rgba(0,0,0,0.3)] border-[3px] border-transparent hover:border-white/20" > {/* Background Image with Zoom Effect */} {centreActivityCategory.name} {/* Overlays */}
{/* Rich Typography and Content */}
Special Hub Activities

{centreActivityCategory.name}

Engage in multidisciplinary innovation, advanced research hubs, incubation cells, and collaborative special projects driving academic excellence.

)}
); }; export default CategoryGrid;