Skip to content

kaseyvee/clock-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clock app

This is a solution to the Clock app challenge on Frontend Mentor.

Check out my other solutions on Frontend Mentor at @kaseyvee or frontend-mentor-challenges.

The challenge

Users should be able to:

  • View the optimal layout for the site depending on their device's screen size
  • See hover states for all interactive elements on the page
  • View the current time and location information based on their IP address
  • View additional information about the date and time in the expanded state
  • Be shown the correct greeting and background image based on the time of day they're visiting the site
  • Generate random programming quotes by clicking the refresh icon near the quote

Screenshots

Desktop View

Desktop view

Mobile View

Mobile view Mobile view with details expanded

Built with

What I learned

I took this opportunity to get familiar with using React's useContext hook. I've used it in the past in a larger project- only implementing it in the end which turned out to be a nightmare. Haven't gone back to it since because of that but decided I should tackle it sooner rather than later if I ever want to try using Redux in the future.

Prop drilling sucks and this is the answer. It ended up being much simpler than I remember and made for much cleaner code.

This is also my first time with FEM premium- and man was setup fast with the given Figma files. This saved me so much time as it allowed me to create my own utility classes and removed the time it would have taken me to guess font sizes.