A simple, elegant neon-style digital clock built with HTML, CSS, and JavaScript.
This project creates a digital clock that displays the current time in a 12-hour format with AM/PM indicator. The clock features a sleek neon design with a dark background and cyan text, giving it a futuristic look. The time updates automatically every second using JavaScript.
- Real-time clock display
- 12-hour format with AM/PM indicator
- Neon-style aesthetic with glowing effects
- Responsive and centered layout
- Minimalist design using Orbitron font
View a live demo of the digital clock hosted on GitHub Pages: https://binaryvortex.github.io/Digital-Clock-2/
- HTML5: Structure of the clock display
- CSS3: Styling, including Google Fonts (Orbitron) and box-shadow effects for neon glow
- JavaScript (ES6): Logic for updating the time every second
-
Clone the repository:
git clone https://github.com/BinaryVortex/Digital-Clock-2.git
-
Navigate to the project directory:
cd Digital-Clock-2 -
Open
index.htmlin your preferred web browser.
The clock will start displaying the current time and update automatically.
index.html: Main HTML file containing the clock structure and JavaScriptstyle.css: CSS file for the neon styling and layoutREADME.md: This fileDigitalClock.png: Additional image assetScreenshot 2024-04-25 094352.png: Screenshot of the clock
Inspired by tutorials from CodingNepal.
Feel free to fork the repository and submit pull requests for improvements or additional features.
