A modern, responsive university website built with React and Vite, featuring smooth scrolling navigation, interactive components, and a clean design.
- Responsive Design: Fully responsive layout that works on desktop, tablet, and mobile devices
- Smooth Scrolling Navigation: Seamless navigation between sections using react-scroll
- Interactive Video Player: Modal video player for promotional content
- Contact Form Integration: Functional contact form with Web3Forms API
- Image Gallery: Campus photo gallery with responsive grid layout
- Testimonials Slider: Interactive testimonial carousel with navigation controls
- Sticky Navigation: Navigation bar that changes appearance on scroll
- Mobile Menu: Hamburger menu for mobile devices
- Frontend: React 19.0.0
- Build Tool: Vite 6.3.1
- Styling: Pure CSS with custom responsive design
- Smooth Scrolling: react-scroll library
- Form Handling: Web3Forms API integration
- Development: ESLint for code quality
src/
├── Components/
│ ├── About/
│ │ ├── About.jsx
│ │ └── About.css
│ ├── Campus/
│ │ ├── Campus.jsx
│ │ └── Campus.css
│ ├── Contact/
│ │ ├── Contact.jsx
│ │ └── Contact.css
│ ├── Footer/
│ │ ├── Footer.jsx
│ │ └── Footer.css
│ ├── Hero/
│ │ ├── Hero.jsx
│ │ └── Hero.css
│ ├── Navbar/
│ │ ├── Navbar.jsx
│ │ └── Navbar.css
│ ├── Programs/
│ │ ├── Program.jsx
│ │ └── Programs.css
│ ├── Testimonials/
│ │ ├── Testimonials.jsx
│ │ └── Testimonials.css
│ ├── Title/
│ │ ├── Title.jsx
│ │ └── Title.css
│ └── VideoPlayer/
│ ├── VideoPlayer.jsx
│ └── VideoPlayer.css
├── assets/
│ ├── images/
│ └── videos/
└── App.jsx
- Navbar: Sticky navigation with smooth scrolling links and mobile menu
- Hero: Landing section with call-to-action button
- Programs: Educational programs showcase with hover effects
- About: University information with video player trigger
- Campus: Photo gallery of campus facilities
- Testimonials: Student testimonials with slider functionality
- Contact: Contact form with Web3Forms integration
- Footer: Simple footer with links and copyright
- VideoPlayer: Modal video player component
- Title: Reusable title component for section headers
- VideoPlayer: Overlay video player with click-to-close functionality
-
Clone the repository
git clone https://github.com/keval06/Edusity cd Edusity npm install npm run dev -
Build for production
npm run build
-
Preview production build
npm run preview
The contact form uses Web3Forms API. To set it up:
- Sign up at Web3Forms
- Get your access key
- Replace the access key in
src/Components/Contact/Contact.jsx:formData.append("access_key", "your-access-key-here");
Ensure all required assets are placed in the src/assets/ directory:
- Logo images
- Hero background image
- Program images
- Gallery images
- User profile images
- Icons (play, arrow, menu, etc.)
- Video files
The website is fully responsive with breakpoints:
- Desktop: 1000px and above
- Tablet: 840px - 999px
- Mobile: Below 840px
Each component has specific media queries for optimal mobile experience.
- CSS Architecture: Component-based CSS files
- Color Scheme: Primary blue (#212EA0), dark blue (#000F38), gray (#676767)
- Typography: Clean, modern font stack
- Animations: Smooth transitions and hover effects
- Layout: Flexbox-based responsive layouts
Uses react-scroll library for smooth transitions between sections with custom offsets for each section.
Modal video player that opens when clicking the play button in the About section. Closes when clicking outside the video area.
Custom slider implementation using CSS transforms and JavaScript for navigation controls.
Functional contact form with form validation and Web3Forms API integration for email delivery.
Hamburger menu that slides in from the right on mobile devices with smooth animations.
The project can be deployed to any static hosting service:
-
Build the project
npm run build
-
Deploy the
distfolder to your hosting service of choice:- Netlify
- Vercel
- GitHub Pages
- Firebase Hosting
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
- React team for the excellent framework
- Web3Forms for the contact form API
- All contributors and testers
Made with ❤️ for educational purposes