import React from 'react'; import { UserRole, Event } from '../types'; interface WelcomeScreenProps { onSelectRole: (role: UserRole) => void; events: Event[]; } const WelcomeScreen: React.FC = ({ onSelectRole, events }) => { const portals = [ { id: 'STUDENT' as UserRole, title: 'Student Portal', description: 'Access events, track registrations, and manage your academic profile.', icon: 'fa-user-graduate', color: 'bg-[#004a99]', hoverColor: 'hover:border-[#004a99]', textColor: 'text-[#004a99]' }, { id: 'COORDINATOR' as UserRole, title: 'Event Coordinator Portal', description: 'Create, manage, and coordinate campus events and announcements.', icon: 'fa-calendar-check', color: 'bg-orange-500', hoverColor: 'hover:border-orange-500', textColor: 'text-orange-500' }, { id: 'ADMIN' as UserRole, title: 'Admin Portal', description: 'System-wide oversight, user management, and high-level analytics.', icon: 'fa-user-shield', color: 'bg-[#004a99]', hoverColor: 'hover:border-[#004a99]', textColor: 'text-[#004a99]' } ]; return (
{/* Background Decorative Elements */}
RIT Logo

Select your gateway to excellence. Connect, manage, and celebrate.

{portals.map((portal, index) => (
onSelectRole(portal.id)} className={`group relative bg-white border-2 border-slate-100 rounded-[3rem] p-10 cursor-pointer transition-all duration-500 hover:-translate-y-4 hover:shadow-[0_40px_80px_-20px_rgba(0,0,0,0.1)] ${portal.hoverColor} animate-in fade-in slide-in-from-bottom-10`} style={{ animationDelay: `${index * 150}ms` }} >

{portal.title}

{portal.description}

Enter Portal
{/* Decorative Corner */}
))}

© 2024 Rajalakshmi Institute of Technology • Academic Excellence

); }; export default WelcomeScreen;