Skip to content

Clock app with weather🌑, settings βš™ and more πŸ”₯πŸ”₯πŸ”₯

Notifications You must be signed in to change notification settings

daniknewgarden/react-clock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

50 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Simple neomorphism react clock πŸ•˜

screenshot

See demo

Here you can read how to run it, and how to use all components. Lets start πŸ‘‡

This project was bootstrapped with Create React App.

To do:

  • Time format changing
  • Temperature units changing

How to run? πŸƒβ€β™‚οΈ

In the project directory, you can run:

npm start

Runs the app in the development mode. πŸ› 
Open http://localhost:3000 to view it in the browser.

npm test

Launches the test runner in the interactive watch mode. πŸ§ͺ
But right now this feature isn't available. 🌚

npm build

Builds the app for production to the build folder. πŸ—
It correctly bundles React in production mode and optimizes the build for the best performance.

Components guide 🧩

Analog clock ⌚

Analog clock screenshot

Uses useTime hook to get data about arrows rotation (hh, mm, ss). [See docs](https://github.com/daniknewgarden/amazing-react-hooks#usetime- useTime docs)

Button πŸ”˜

Button screenshot

Toggle button

Props

Prop Type Description
text string text inside button
icon img path to button icon
onClick function callback function

Date πŸ“†

Date screenshot

Uses useDate hook to get current day and mountName. [See docs](https://github.com/daniknewgarden/amazing-react-hooks#usedate- useDate docs)

Digital clock πŸ•¦

Digital clock screenshot

Uses useTime hook to get current time. [See docs](https://github.com/daniknewgarden/amazing-react-hooks#usetime- useTime docs)

Settings βš™

Settings screenshot

Switcher

Switcher screenshot

Prop Type Description
ariaLabel string aria description
callback function callback function
defaultState boolean enabled or disabled

Text

Title

Title screenshot

Heading 2

Prop Type Description
text string text

Subtitle

Subtitle screenshot

Heading 3

Prop Type Description
text string text

Weather ☁

Weather screenshot

Prop Type Description
tempUnits string celsius '_c' or fahrenheit '_f'

About

Clock app with weather🌑, settings βš™ and more πŸ”₯πŸ”₯πŸ”₯

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors