A modern, responsive React frontend for an AI-powered interview platform built with Vite.
- Fixed Header: Clean, modern header with platform title and subtle shadow
- Dual Video Layout: Side-by-side video panels for candidate and interviewer
- Confidence Overlay: Real-time confidence score display with color-coded indicators
- Start Button: Interactive button to initiate webcam access
- Desktop: Side-by-side video layout (45% width each)
- Mobile: Stacked video layout (100% width)
- Tablet: Flexible layout with proper spacing
useState: Managing confidence score, webcam state, and loading stateuseRef: DOM references for video elementsuseEffect: Simulating real-time confidence updates
- Webcam Access: Uses
navigator.mediaDevices.getUserMedia - Video Streaming: Attaches user media stream to video element
- Error Handling: Graceful handling of camera permission errors
- Dynamic Confidence: Simulated confidence score updates every 3 seconds
src/
├── components/
│ ├── Header.jsx # Fixed header component
│ ├── VideoPanel.jsx # Video display with placeholder
│ ├── ConfidenceOverlay.jsx # Floating confidence indicator
│ └── StartButton.jsx # Interview start button
├── App.jsx # Main application component
├── App.css # Responsive styles and animations
├── index.css # Global styles
└── main.jsx # Application entry point
- Primary: Blue (#3b82f6) for buttons and accents
- Success: Green (#10b981) for high confidence
- Warning: Yellow (#f59e0b) for medium confidence
- Error: Red (#ef4444) for low confidence
- Background: Light gray (#f9fafb) for clean appearance
- Hover Effects: Subtle transforms and shadow changes
- Button States: Loading, disabled, and active states
- Animations: Pulse effect for confidence overlay
- Transitions: Smooth 0.2s ease-in-out for all interactions
- Font: System font stack for optimal performance
- Hierarchy: Clear heading and text sizing
- Weights: 400 (regular), 500 (medium), 600 (semibold)
-
Install dependencies:
npm install
-
Start development server:
npm run dev
-
Open http://localhost:5173 in your browser
- WebRTC integration for interviewer video
- Backend API integration
- Recording functionality
- Chat/messaging system
- Screen sharing capabilities
- TypeScript migration
- Tailwind CSS integration
- Advanced confidence algorithms
- Chrome 88+ (recommended)
- Firefox 86+
- Safari 14+
- Edge 88+
Requires camera permissions for full functionality.
- React 19.1.0 - UI Framework
- Vite 6.3.5 - Build Tool
- ESLint - Code Linting
- Modern CSS - Styling and Animations
Ready for the next phase of development! 🎯+ Vite
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
If you are developing a production application, we recommend using TypeScript with type-aware lint rules enabled. Check out the TS template for information on how to integrate TypeScript and typescript-eslint in your project.