Coder Social home page Coder Social logo

ellty-assignment's Introduction

Ellty Assignment

Overview

This React application allows users to select and view pages. It utilizes Vite for development, React for the frontend, and jQuery for a popup message. The application enables users to select individual pages or all pages and view the selected pages in a different view.

Features

  • Page Selection: Choose individual pages or select all pages using checkboxes.
  • View Selected Pages: Navigate to a page that displays the selected pages.
  • Popup Instructions: A jQuery-based popup appears on page load, providing user instructions.

Getting Started

To set up and run the project locally, follow these instructions:

Prerequisites

Ensure you have Node.js and npm installed on your machine.

Installation

  1. Clone the Repository:

    git clone https://github.com/Saurabhrajput1234/Ellty-assignment.git
    cd Ellty-assignment
  2. Install Dependencies:

    npm install
  3. Start the Development Server:

    npm run dev

    Open your browser and navigate to http://localhost:3000 to view the application.

Usage

  1. Selecting Pages:

    • On the home page, use the checkboxes next to each page title to select or deselect pages.
    • Use the "All pages" checkbox to select or deselect all pages at once.
  2. Viewing Selected Pages:

    • Click the "Done" button to navigate to a view that displays the pages you selected.
  3. Popup Instructions:

    • A popup will appear for 2 seconds when the page loads, giving you initial instructions on how to use the application.

Components

PageSelector

  • File: src/components/pageSelector/PageSelector.js
  • Description: Allows users to select pages. Manages page selection state and displays a jQuery popup on page load.

CSS: src/components/pageSelector/pageSelector.css

SelectedPages

  • File: src/components/selectedPages/SelectedPages.js
  • Description: Displays the content of the pages that were selected by the user.

CSS: src/components/selectedPages/selectedPages.css

Dependencies

  • React: A JavaScript library for building user interfaces.
  • React Router: Provides navigation and routing for the React application.
  • jQuery: Used for DOM manipulation and creating the popup.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.