Skip to content
This repository has been archived by the owner on May 4, 2024. It is now read-only.

React app to estimate device's pixel ratio and calculate the logical resolution(viewport)

License

Notifications You must be signed in to change notification settings

jhordyess/viewport-calculator

Repository files navigation

Viewport Calculator

Web app to estimate device's pixel ratio and calculate the logical resolution(viewport).

Description

React app for calculating the logical resolution also known as viewport, based on the physical resolution and the pixel ratio of the device.

Technologies Used

Demo

You can see the demo here: https://jhordyess.github.io/viewport-calculator/

Screenshot

Home

How to use

  1. Clone the repository:
git clone [email protected]:jhordyess/viewport-calculator.git
  1. Open the project folder:
cd viewport-calculator
  1. Install the dependencies:
yarn
  1. Run the project:
yarn dev
  1. Open the browser at http://localhost:5173/viewport-calculator/

How to use with VSCode dev containers

You can use the VSCode dev containers to run the project in a containerized environment.

You need to have installed Docker and VSCode, and the Dev Containers extension.

  1. Clone the repository:
git clone [email protected]:jhordyess/viewport-calculator.git
  1. Open the project with VSCode:
code viewport-calculator
  1. Open the command palette and select the option Dev Containers: Reopen in Container.

  2. Wait for the container to be built and the project to be started.

  3. Open the terminal in VSCode and run the project:

yarn dev
  1. Open the browser at http://localhost:5173/viewport-calculator/

Contribution

If you would like to contribute to the project, open an issue or make a pull request on the repository.

License

© 2023> Jhordyess. Under the MIT license. See the LICENSE file for more details.


Made with 💪 by Jhordyess