Giter Site home page Giter Site logo

clock's Introduction

Clock & Date with Vue.js and Moment.js

This project showcases a real-time digital clock and date display using Vue.js and Moment.js. The clock updates every second and shows the current time in hours, minutes, and seconds. The date is displayed below the clock in a stylized format.

Features

  • Real-time clock updating every second.
  • Displays hours, minutes, and seconds.
  • Shows the current date in a readable format.
  • Responsive design for various screen sizes.
  • Custom fonts for a unique look.
  • Accessible for screen readers.

Technologies Used

  • Vue.js - JavaScript framework for building user interfaces.
  • Moment.js - JavaScript library for parsing, validating, manipulating, and formatting dates.
  • Bootstrap - CSS framework for responsive design.
  • Spectrum Colorpicker - Color picker library.

Installation

  1. Clone this repository:

    git clone https://github.com/masdzub/clock.git
  2. Navigate to the project directory:

    cd clock
  3. Open index.html in your preferred browser.

Usage

The project includes a simple HTML file that integrates Vue.js and Moment.js to display a real-time clock and date. The clock is updated every second using Vue's reactivity system, and the current date is formatted using Moment.js.

Customization

  • Fonts: Custom fonts are used for the clock and date. If you want to change fonts, modify the font-family properties in the CSS.
  • Styling: Adjust the styling of the clock and date by modifying the CSS rules in the <style> section of index.html.
  • Date Format: Change the date format by modifying the moment().format() function in the Vue.js script.

Code Overview

  • HTML: Contains the structure of the clock and date display.
  • CSS: Handles the styling and responsive design of the clock and date.
  • JavaScript: Vue.js and Moment.js scripts for updating and displaying the time and date.

Screenshoot

Screenshot

Contributing

Feel free to open issues, submit pull requests, or contribute in any way. If you have suggestions or improvements, we welcome your feedback!

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contact

For any questions or comments, please contact [email protected].

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.