Skip to content

This project demonstrates a frontend application built with React, Vite, and Tailwind CSS. It features dynamic and responsive components, including an interactive D3-based graph and a user-friendly popup form for updating scores.

Notifications You must be signed in to change notification settings

Mohit138928/WhatBytes-Assignment

Repository files navigation

Frontend Development Assignment - Responsive Popup and Graph Visualization

This project demonstrates a frontend application built with React, Vite, and Tailwind CSS. It features dynamic and responsive components, including an interactive D3-based graph and a user-friendly popup form for updating scores.


Key Features

  • Responsive Comparison Graph:

    • Built using D3.js, the graph visualizes percentile scores dynamically.
    • Adapted for both desktop and mobile views with responsive layouts.
  • Responsive Popup Form:

    • Form inputs for updating Rank, Percentile, and Score.
    • Built-in form validation with error handling.
    • Fully responsive for mobile and desktop users.

Tech Stack

  • React — Component-based architecture for building UI
  • Vite — Fast development server and build tool
  • Tailwind CSS — Utility-first CSS for responsive design
  • D3.js — Data-driven visualizations
  • Heroicons — Interactive icons for better UI

Project Setup

  1. Clone the repository:

    git clone https://github.com/Mohit138928/WhatBytes-Assignment.git
    cd project-directory
  2. Install dependencies:

    npm install
  3. Start the development server:

    npm run dev

Usage Instructions

  • Graph Interaction:
    The comparison graph shows the percentile score dynamically.

    • A vertical line indicates your current score compared to the simulated data distribution.
  • Popup Form:

    1. Enter your Rank, Percentile, and Score (0-15).
    2. Error messages guide the user to enter valid input.
    3. Click Save to update the data or Cancel to close the popup.

Responsive Design Details

  • Graph: The graph scales for mobile devices and maintains readability.
  • Popup Form:
    • Stacks input fields vertically on mobile devices.
    • Adjusts layouts for larger screens seamlessly.

Contributing

  1. Fork the project
  2. Create a feature branch: git checkout -b feature/your-feature
  3. Commit changes: git commit -m 'Add your feature'
  4. Push changes: git push origin feature/your-feature
  5. Open a Pull Request

License

This project is licensed under the MIT License.


Contact

Feel free to reach out for questions or suggestions:

About

This project demonstrates a frontend application built with React, Vite, and Tailwind CSS. It features dynamic and responsive components, including an interactive D3-based graph and a user-friendly popup form for updating scores.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published