import { motion, useScroll, useTransform } from 'framer-motion'; import { Link } from 'react-router-dom'; import { ArrowRight, Sparkles, BookOpen, Bot, GraduationCap, CheckCircle, Zap, Shield, Brain, Trophy, Award, Cpu, Users } from 'lucide-react'; import SectionTitle from '@/components/SectionTitle/SectionTitle'; import FeatureCard from '@/components/FeatureCard/FeatureCard'; import FloatingCard from '@/components/FloatingCard/FloatingCard'; import ChatPreview from '@/components/ChatPreview/ChatPreview'; import { StaggerContainer, StaggerItem } from '@/components/AnimatedContainer/AnimatedContainer'; import AnimatedContainer from '@/components/AnimatedContainer/AnimatedContainer'; import { FEATURES, CAMPUS_LOCATIONS } from '@/constants'; import * as LucideIcons from 'lucide-react'; export default function Home() { const { scrollY } = useScroll(); const heroOpacity = useTransform(scrollY, [0, 450], [1, 0]); const heroY = useTransform(scrollY, [0, 450], [0, -80]); return (
{/* Sticky Background Video */}
{/* Dark Overlay (40-50%) */}
{/* ─── Hero Section ─────────────────────────────────────────────────────── */}
{/* Center Content */} OUR LEGACY & FUTURE Welcome to RIT Freshers Hub The RIT Freshers Hub is your centralized gateway to campus life, academic resources, AI assistance, clubs, events, bus routes, notes, and student services. {/* Buttons */} Explore Hub Ask AI Assistant {/* Badges */} {[ { icon: CheckCircle, text: 'Official Portal' }, { icon: Zap, text: 'Instant AI Support' }, { icon: Shield, text: 'Student Verified' }, ].map((badge, i) => (
{badge.text}
))}
{/* Floating Glassmorphic Stats Section */}
{[ { value: '20+', label: 'SPORTS', icon: Trophy }, { value: '100+', label: 'FACULTY', icon: GraduationCap }, { value: '18', label: 'CLUBS', icon: Award }, { value: '24/7', label: 'AI ASSISTANT', icon: Cpu }, { value: '5000+', label: 'STUDENTS', icon: Users }, ].map((stat, i) => (
{/* Icon */}
{/* Value */}
{stat.value}
{/* Label */}
{stat.label}
))}
{/* ─── Features Section ─────────────────────────────────────────────────── */}
{FEATURES.map((feature) => ( ))}
{/* ─── AI Section ───────────────────────────────────────────────────────── */}
{/* Left – Text */}
AI-Powered

Your 24/7{' '} Campus Guide

Ask anything about RIT — from admission documents to canteen timings. Our AI assistant, powered by Google Gemini with campus-specific knowledge, gives you instant, accurate answers.

{[ { icon: 'Brain', label: 'Gemini AI', desc: 'State-of-the-art AI' }, { icon: 'Database', label: 'RAG System', desc: 'Campus knowledge base' }, { icon: 'Map', label: 'Campus Context', desc: 'RIT-specific answers' }, { icon: 'Zap', label: 'Instant Answers', desc: 'No wait time' }, ].map((item, i) => { const Icon = (LucideIcons as unknown as Record>)[item.icon]; return (
{Icon && }
{item.label}
{item.desc}
); })}
Try AI Assistant
{/* Right – Chat Preview */}
{/* ─── Campus Quick Nav ─────────────────────────────────────────────────── */}
{/* Map placeholder */}
{/* Location pins */} {[ { label: 'CSE Block', x: '25%', y: '30%' }, { label: 'Library', x: '55%', y: '45%' }, { label: 'Canteen', x: '70%', y: '65%' }, { label: 'Hostel', x: '20%', y: '65%' }, ].map((pin, i) => (
{pin.label} ))}
Interactive Campus Map
Open Full Map
{/* Quick nav buttons */}
{CAMPUS_LOCATIONS.map((loc) => { const Icon = (LucideIcons as unknown as Record>)[loc.icon]; return (
{Icon && }
{loc.name}
); })}
{/* ─── Community Teaser ─────────────────────────────────────────────────── */}
{/* Q&A teaser */}

Freshers Q&A

Get answers from seniors

{['How is hostel life at RIT?', 'Best clubs to join as a fresher?', 'Tips for first semester survival'].map((q, i) => (
Q {q}
))}
Join the Discussion
{/* Anonymous Confession Teaser */}

Anonymous Confessions

Share without revealing identity

{[ { text: "I went to the wrong department on my first day 😅", reactions: 87 }, { text: "The library WiFi is faster than my home connection 😂", reactions: 134 }, ].map((c, i) => (

{c.text}

{c.reactions}
))}
100% Anonymous. No tracking. No identity revealed.
Confess Anonymously
); }