feat: initial frontend build for RIT Freshers Hub

This commit is contained in:
Amudieshwar A G
2026-07-21 12:21:53 +05:30
commit e2c86755ef
40 changed files with 8544 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
import { Outlet } from 'react-router-dom';
import { motion, AnimatePresence } from 'framer-motion';
import { useLocation } from 'react-router-dom';
import Navbar from '@/components/Navbar/Navbar';
import Footer from '@/components/Footer/Footer';
const pageVariants = {
initial: { opacity: 0, y: 10 },
enter: { opacity: 1, y: 0 },
exit: { opacity: 0, y: -10 },
};
export default function MainLayout() {
const location = useLocation();
return (
<div className="min-h-screen" style={{ backgroundColor: '#FAFAFA' }}>
<Navbar />
<AnimatePresence mode="wait">
<motion.main
key={location.pathname}
variants={pageVariants}
initial="initial"
animate="enter"
exit="exit"
transition={{ duration: 0.3, ease: 'easeInOut' }}
>
<Outlet />
</motion.main>
</AnimatePresence>
<Footer />
</div>
);
}