Giter Site home page Giter Site logo

xt-coding-assignment's Introduction

I have use Css and React for building this project. You have to first install Node.js in your system for npm packages.

First I created an react app by using the command :

npx create-react-app project_name

Then in the navigation file i created an useState [notes,setNotes] to store and update the fetch data from api then I created an container div in which I created two things first i call a Filter function component in which i write the function component Filter for filter section and secondly i created a box2 for holding the rest of mission cards. In box2 i have use map method on notes in which fecth data is stored and call an Card function by passing the prop note in Card function . Inside Card function component i have display all the data for a particular mission. For filtering i have use onClick method inside each button and created three use state to hold the data namely [yearSelected,setYearSelected] for year button ,[launchSuccess,setLauchSuccess] for lauch button and [landingSuccess,setLandingSuccess] for landing button.And inside the omClick method i have set data of each of the above three state and then call an handleClick function to fecth data on selected filter and then after fetching the data i have updated the setNotes with newly fetch data.And for changing the color of button on clicking i have use an javascript method inside the onclick method of every button name document.getElementsByClassName and chaging the color using css.

You have to just clone this repo and after cloning come the project directory and in the terminal and write the command

npm install -y

to install all the dependencies required to run this project. After that you can run the porject by writting the command

npm start

in your terminal.

Link for the image of website :https://drive.google.com/file/d/1I5o1-Jx7j-dNBKic1Ep2_EqXakQd1TT1/view?usp=sharing

xt-coding-assignment's People

Contributors

mishra2019 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.