red-frontend

byUsama Tahir

You are a senior frontend engineer and UI/UX designer. Your task is to build a complete frontend for my Final Year Project: "Exam Eye – AI-Based Online Exam Monitoring and Cheating Detection System" IMPORTANT CONSTRAINTS: - Use ONLY free and open-source tools - Use React.js with Vite - Use simple CSS (no Tailwind, no paid UI libraries) - Use React Router DOM - Use Context API for state - Use Framer Motion (FREE) for animations --------------------------------------- 🎯 CORE GOAL: Build a fully functional, modern, animated web application that: - Looks like a real SaaS product - Is visually appealing and smooth - Uses animations to enhance UX (not distract) - Uses mock data but is backend-ready --------------------------------------- 🎨 DESIGN SYSTEM (VERY IMPORTANT): Create a modern UI with: Color Palette: - Primary: Indigo / Blue (#4F46E5) - Secondary: Purple / Gradient tones - Background: Soft light gray (#F9FAFB) - Cards: White (#FFFFFF) - Danger: Red (#EF4444) - Success: Green (#22C55E) Style: - Glassmorphism (light) - Soft shadows - Rounded corners (border-radius: 16px+) - Clean spacing (padding/margins consistent) Typography: - Modern sans-serif (Inter or system font) - Clear hierarchy (headings, labels, text) --------------------------------------- ✨ ANIMATION REQUIREMENTS (IMPORTANT): Use Framer Motion for: 1. Page Transitions: - Fade + slight slide on route change 2. Cards: - Hover: scale(1.03) + shadow increase 3. Buttons: - Smooth hover + click feedback 4. Modals: - Fade + scale in 5. Lists/Tables: - Smooth appearance (stagger animation) 6. Alerts/Flags: - Shake or pulse effect when violation occurs 7. Sidebar: - Smooth expand/collapse IMPORTANT: - Keep animations FAST and smooth - Avoid over-animation - Maintain performance --------------------------------------- 🧱 TECH STACK: - React.js (Vite) - Simple CSS (modular or global) - Framer Motion (for animations) - React Router DOM - Context API --------------------------------------- 📁 PROJECT STRUCTURE: /src /components /pages /context /services /data /styles /animations (optional for reusable motion configs) --------------------------------------- 🧠 ARCHITECTURE RULE: - No hardcoded data inside components - All data from services - Services use mock data - Easy to replace later with backend --------------------------------------- 🔐 AUTH + ROUTING: - Login/Register pages with animation - Role-based routing (Teacher / Student) - Protected routes --------------------------------------- 👨‍🏫 TEACHER DASHBOARD (ANIMATED): - Dashboard cards (animated on load) - Create Paper form (smooth dynamic inputs) - Monitoring page: - Student cards with status colors - Pulse animation on violations - Submissions: - Expandable student answer view - Results: - Animated reveal of scores --------------------------------------- 🎓 STUDENT DASHBOARD (ANIMATED): - Available exams: - Card hover effects - Exam interface: - Smooth question transitions - Timer animation - Flag system: - Visual warning animations - Results: - Score reveal animation --------------------------------------- 🚨 CHEATING SYSTEM UI: - Flag counter (animated increment) - Warning flash (red pulse) - Auto logout animation (fade out) --------------------------------------- 📦 MOCK DATA + SERVICES: - Same as before - Must simulate real system behavior --------------------------------------- ⚙️ FUNCTIONALITY: - Fully working UI - Simulated: - Exam flow - Flags - Monitoring - Results --------------------------------------- 🔁 FUTURE READY: - Only services layer changes for backend - UI stays intact --------------------------------------- 📦 OUTPUT REQUIRED: - Full React project - Clean code - CSS + animation usage - Framer Motion integrated properly - Instructions to run --------------------------------------- 🚫 AVOID: - Overly flashy animations - Laggy UI - Messy CSS - UI clutter --------------------------------------- 🔥 FINAL GOAL: Build a beautiful, animated, modern SaaS-style exam system that impresses both visually and technically during FYP defense.

Landing
Landing

Comments (0)

No comments yet. Be the first!

System Requirements

System Requirement Document

System Requirements Document (SRD)

red-frontend

1. Introduction

The red-frontend project is a modern, animated web application designed as part of Usama Tahir's Final Year Project (FYP) titled "Exam Eye – AI-Based Online Exam Monitoring and Cheating Detection System". This system aims to provide a seamless, visually appealing, and technically robust frontend for an online exam monitoring platform. The application will simulate real-world functionality, including dynamic role-based routing, cheating detection, and flag generation based on violations.

The project is tailored to meet the specific needs of users in Pakistan (PK), ensuring locale-specific considerations such as time zones and user preferences. The frontend will be built using React.js with Vite, adhering to a design system that emphasizes modern aesthetics, smooth animations, and performance.

Page 1 of 7

2. System Overview

The red-frontend system will serve as the user interface for the Exam Eye platform, enabling teachers and students to interact with the system seamlessly. Key features include:

  • Role-Based Navigation: Dynamic routing based on user roles (Teacher/Student) post-login.
  • Cheating Detection UI: Real-time flag generation and animations triggered by violations.
  • Interactive Dashboards: Animated dashboards for teachers and students, providing an intuitive and engaging user experience.
  • Mock Data Integration: Simulated backend behavior to demonstrate exam monitoring, flagging, and results functionality.
  • Future-Ready Architecture: A modular and scalable frontend that can easily integrate with a backend in the future.
Page 2 of 7

3. Functional Requirements

  • As a User, I should be able to log in and be dynamically routed to my dashboard based on my role (Teacher/Student).
  • As a Teacher, I should be able to:
    • View an animated dashboard with key metrics.
    • Create exam papers using a dynamic form.
    • Monitor students during exams, with real-time status updates and flag animations for violations.
    • View submissions and expand student answers.
    • Reveal results with animations.
  • As a Student, I should be able to:
    • View available exams with hover effects on cards.
    • Take exams with smooth question transitions and a timer animation.
    • Receive visual warnings for violations during exams.
    • View results with an animated score reveal.
  • As a System, I should generate flags dynamically based on violations and display them with animations.

4. User Personas

  1. Teacher

    • Role: Administer exams, monitor students, and evaluate results.
    • Key Needs: Intuitive monitoring tools, dynamic flagging, and smooth navigation.
  2. Student

    • Role: Take exams and view results.
    • Key Needs: User-friendly exam interface, clear warnings for violations, and engaging animations.
Page 3 of 7

5. Visuals Colors and Theme

Color Palette

  • Primary: #4F46E5 (Indigo/Blue)
  • Primary Light: #6366F1 (Lighter Indigo)
  • Secondary: #A855F7 (Purple)
  • Accent: #F59E0B (Amber)
  • Highlight: #F97316 (Orange)
  • Background: #F9FAFB (Soft Light Gray)
  • Surface: rgba(255, 255, 255, 0.8) (Glassmorphic White)
  • Text: #111827 (Dark Gray)
  • Text Muted: #6B7280 (Muted Gray)
  • Border: rgba(209, 213, 219, 0.5) (Light Gray Border)

Design Tokens

  • Danger: #EF4444 (Red)
  • Success: #22C55E (Green)
Page 4 of 7

6. Signature Design Concept

Interactive Glassmorphic Dashboard with Real-Time Animations

The homepage/dashboard will feature a glassmorphic design with dynamic, real-time animations to captivate users. Key elements include:

  • Interactive Cards: Cards will "float" slightly on hover (scale 1.03) and cast soft shadows.
  • Real-Time Flag Counter: A live counter that increments dynamically with a pulse animation whenever a violation occurs.
  • Monitoring Page: A grid of student cards that change colors based on status (e.g., green for active, red for flagged). Clicking on a card will expand it into a detailed view with a smooth scaling animation.
  • Exam Interface: A timer that visually "fills" as time progresses, with smooth transitions between questions.
  • Results Reveal: A confetti-like animation (using Framer Motion) when scores are revealed.

Libraries:

  • Framer Motion: For animations like hover effects, page transitions, and dynamic flag updates.
  • React Router DOM: For seamless navigation and role-based routing.

7. Interaction Model & Motion Direction

Interaction Model

  • Landing/Home Page: Parallax scrolling with layered depth and smooth transitions between sections.
  • Internal Pages: Animated interaction model with hover effects, staggered list animations, and smooth modals.
Page 5 of 7

Motion Direction

  • Page Transitions: Fade + slight slide on route change.
  • Hover Effects: Scale and shadow increase for cards and buttons.
  • Dynamic Updates: Pulse or shake animations for real-time flag updates.
  • Smooth Modals: Fade + scale in for modals.

8. Non-Functional Requirements

  • Performance: Maintain a smooth user experience with optimized animations and lightweight CSS.
  • Scalability: Ensure the frontend is modular and ready for backend integration.
  • Accessibility: Follow accessibility best practices for color contrast and keyboard navigation.
  • Localization: Support locale-specific settings (e.g., time zones for PK).

9. Tech Stack

  • Frontend: React.js with Vite
  • State Management: Context API
  • Routing: React Router DOM
  • Animations: Framer Motion
  • Styling: Simple CSS (modular or global)
Page 6 of 7

10. Assumptions and Constraints

  • The system will use mock data for all services, simulating real-world behavior.
  • All tools and libraries used must be free and open-source.
  • The application must adhere to the specified design system and animation guidelines.

11. Glossary

  • Glassmorphism: A design style featuring translucent surfaces with blurred backgrounds.
  • Flag: A visual indicator of a cheating violation.
  • Parallax: A scrolling effect where background layers move at different speeds.
  • Role-Based Routing: Navigation logic that directs users to different pages based on their role (e.g., Teacher or Student).

This updated SRD incorporates dynamic role-based routing and real-time flag generation based on violations, ensuring the red-frontend project aligns perfectly with Usama's vision.

Page 7 of 7
Landing design preview
Landing: View Info
Login: Sign In
StudentDashboard: View Exams
ExamList: Browse Exams
ExamInterface: Start Exam
ExamInterface: Answer Questions
ExamInterface: View Timer
ViolationWarning: View Flag Alert
ExamInterface: Submit Exam
Results: View Score
Landing design preview
Landing: View Info
Login: Sign In
StudentDashboard: View Exams
ExamList: Browse Exams
ExamInterface: Start Exam
ExamInterface: Answer Questions
ExamInterface: View Timer
ViolationWarning: View Flag Alert
ExamInterface: Submit Exam
Results: View Score