A simple project to create a digital clock using Vite and ReactJS. In this project, I have used useState and useEffect, and I have also used luxon to fetch time based on the time zone.
To run this project, follow these steps:
-
Clone the repository from GitHub:
git clone https://github.com/rizkytegar/indonesian-digital-clock
-
Navigate to the project directory:
cd indonesian-digital-clock
-
Install the required dependencies:
npm install
-
Start the project:
npm run dev
Open CLI in Another tab, Then Type:
npm run tailwind
See the json script below for more details
"scripts": { "dev": "vite", "tailwind": "npx tailwindcss -i ./src/App.css -o ./src/style.css --watch ", "build": "tsc && vite build && npx tailwindcss build -i ./src/App.css -o ./src/style.css", "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0", "preview": "vite preview" },
We welcome contributions from the community. If you would like to contribute to this project, please follow these steps:
-
Fork the repository.
-
Create a new branch for the feature or fix you want to contribute:
git checkout -b new-feature
-
Make the necessary changes.
-
Commit your changes:
git commit -m "Add new feature"
-
Push to your branch:
git push origin new-feature
-
Create a Pull Request to the original repository.
Rizky Tegar Pratama |
Stread |
KathanrDave |
Ahmad Ammar Musyaffa |
Vishnu Swaroop |
Sanskar Malkhede |
ใคใซใทใฃใข |
Please feel free to reach out if you have any questions or issues related to this project. Thank you for contributing!