/trackit

An IP Address Locator

Primary LanguageTypeScript

Frontend Mentor - IP address tracker solution

This is a solution to the IP address tracker challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Table of contents

Overview

The challenge

Users should be able to:

  • View the optimal layout for each page depending on their device's screen size
  • See hover states for all interactive elements on the page
  • See their own IP address on the map on the initial page load
  • Search for any IP addresses or domains and see the key information and location

Screenshot

Links

My process

Built with

  • Semantic HTML5 markup
  • Flexbox
  • Mobile-first workflow
  • React - JS library
  • Vite
  • TypeScript
  • Axios
  • React Custom Hooks
  • Leaflet - For Map
  • Tailwind CSS - For styles

What I learned

I learned how to use leaflet and React leaflet to render solutions that involve maps. Leaflet is an open-source project, so it was very easy to implement. The docs were also pretty easy to navigate, regarding stuffs like types for Map mathods and components like LatLngExpression, LatLngTuples, etc.

Useful resources

Author