Skip to content

mohamedyasser27/ip-address-tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

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

desktop screenshot mobile screenshot

Links

  • Solution URL: Repo
  • Live Site URL: site

My process

Built with

  • Mobile-first workflow
  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • json-server for testing
  • express
  • axios

What I learned

  • use object-fit:cover to clip image if it doesn't fit the width

    .background-img {
      object-fit: cover;
      width: 100%;
      height: 250px;
    }
  • how to build backend with express

  • usage of ref to get properies of Component and use them on the same instance

  • use useMemo to cache the results value so that it doesn't render again if i ask same api

  • use express to build backend service

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published