Coder Social home page Coder Social logo

cube's Introduction

React Client Management Application

This is a simple React application designed for managing client information. It consists of components for displaying a list of clients, selecting a client to view their details, and displaying client images fetched from the Unsplash API.

Deployed Link:

https://cube-kappa.vercel.app/

Components

  1. ClientList This component displays a list of clients in the form of cards. Each card contains basic information about the client such as name and designation.

Props:

  • clients: An array of client objects containing client details.
  • onSelect: A function to handle client selection.
  1. ClientCard
  • This component represents an individual client card within the ClientList. It displays the client's name and designation.

Props:

  • client: The client object containing details like name and designation.
  • isSelected: A boolean indicating whether the client is selected.
  • onClick: A function to handle click events on the client card.
  1. ClientDetails This component displays detailed information about a selected client along with randomly fetched images from the Unsplash API.

Props:

  • client: The selected client object.
  1. ClientImage
  • This component renders a grid of images fetched from the Unsplash API.

Props:

  • images: An array of image URLs fetched from the Unsplash API.

App

  • The main App component acts as the entry point for the application. It manages the state of the selected client and renders the ClientList and ClientDetails components accordingly.

Styles

  • The application includes CSS styles for layout, styling client cards, client details, and client images. It also provides a loading indicator for when images are being fetched.

Infinite Scroll:

  • The ClientList component now supports infinite scroll. As you scroll down the list, more clients will be loaded automatically.

Setup Instructions

To run the application:

  • Clone this repository to your local machine.
  • Navigate to the project directory in your terminal.
  • Install dependencies by running npm install.
  • Start the development server by running npm run dev.

Technologies Used

  • React
  • TypeScript
  • Axios for making HTTP requests
  • CSS for styling

ScreenShot :

  • Home Page:

cube-home

  • Loading Indicator:

cube-loading

  • Details With Images:

cube-images

Credits

This application uses the Unsplash API to fetch random images.

cube's People

Contributors

ganeshgourav avatar

Watchers

 avatar

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.