GithubHelp home page GithubHelp logo

anamritraj / livecovid.in-webapp Goto Github PK

View Code? Open in Web Editor NEW
25.0 4.0 15.0 1.69 MB

Web app for state-wise India Covid-19 tracker.

Home Page: https://livecovid.in

License: MIT License

HTML 0.51% CSS 1.21% JavaScript 93.15% SCSS 5.14%
india covid-19 covid-19-india tracker reactjs visualization analytics

livecovid.in-webapp's People

Contributors

akshayalenchery avatar anamritraj avatar priyadharshan avatar shraddhaj11 avatar xadvitya avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

livecovid.in-webapp's Issues

Add a language selector on the page

The setup for this is already done. All we need to do is render a select dropdown somewhere on the page to change language based on the /public/static/locales/languages.json file.

You can use this guide to use the useTranslation hook to change the language when the language is changed in the dropdown.

For more information and background, check this https://react.i18next.com/latest/using-with-hooks

What is expected?

  1. Render a dropdown on the page which lists all the languages the project supports.
  2. The dropdown should trigger the change language event for the whole application by using the useTranslation hook.
  3. Plus points if you can remember user's previously saved language in localStorage/ Cookies.
  4. Super plus points if you can add the functionality to detect browser language and select language automatically at page load based on device's default language.

Add a Resources Tab

We can add a resources Tab with helpful resources data from this API.

  • Show it in a tabular form with filters to look for specific categories like states, type of resource (testing center, food counters etc)
  • The table with filters should be _bookmark_able, what I mean by that is that if a person selects a filter for Maharastra, and then selects food counters. He should be able to copy the URL and share it and the receiver of the link should have the same filters pre-applied.
  • This will also enable us to provide the links in the state-wise table with state specific resources.

Add cases per million on the state map

  • Can get population data from here and hardcode it in a file somewhere as constants.
  • Add an option on the map to toggle between the normal view and cases per million views for all 4 cases.

Show percentage of affected people

Screenshot 2020-04-08 at 12 33 34 AM

  • We can add percentage of people affected for following:
    • Confirmed - % of people confirmed of tested (confirmed / tested)
    • Recovered - % of people recovered of Confirmed (recovered / confirmed)
    • Deceased - % of people deceased of Confirmed (deceased / confirmed)

Open to suggestions if you have a better way of calculating the percentages which is more closer to actual situation than just an empirical guess.

Log of events for the day

  • Use this API to filter the events for the day and show as a timeline on the homepage.
  • This would be a fixed height component which should not take up more than 70% of the max-screen size on a phone.

Show state-wise testing stats

  • Use this API to show the testing details for individual states.
  • If you need data in a different format or filtered, that can be arranged as this has a backend repo made using express.js
  • Preferred place would be the state-wise table, but open to suggestions.

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.