RDjarbeng / countdown

Countdown timer with themes, dark and light mode, day of year count built as website & PWA
https://rcountdown.netlify.app/
MIT License
4 stars 2 forks source link
css js open-source open-source-project

The Countdown app

Application that displays a countdown to a given date. It comes with a plethora of features such as custom date entries, theming etc. Oh and not forgetting the beloved dark mode!
Just save the date and let the countdown begin!

Netlify Status

App deployed on netlify at https://rcountdown.netlify.app/

Built with: Javascript, CSS, html

Running the application in development on your device- For developers

Prerequisites

To use this repository, you need the following installed locally:

npm comes installed with Node so most likely you don't need to install it separately.

Building for production or deployment

Use

npm run build

This will create a build directory /dist with the bundled assets and pages as a Progressive Web App (PWA). You could open the index.html file generated with this build from your file explorer but a better option is to run:

npm run preview

This provides a link to the built website with the PWA ready to go, useful for testing the build. Before deploying note that after building some assets such as css, js may have a hash/string of characters added to their name. It's vite's way of keeping track of files,the application will be able to find those files referenced even with the strange names.

If you make changes that involve addition of new pages or routes you have to update the vite.config.js to ensure the new page is included in the bundling. Sigh!😪. But on the bright side it takes care of the PWA configuration and allowing the users to updating the application with the new version.

Code structure

There are 4 pages currently.

  1. The homepage: with the large countdown: index.html
  2. List page which shows the list of countdowns: countdown-list.html
  3. Today page which shows the day counter: today.html
  4. About page which shows information about the application version and contributors, about.html

The image below helps to get a high level overview of the code structure image

Other utility functions that are used across the application and are not specific to a single page are shown here. image

Possible contributions

Here a possible initial contributions, you can also look through the open issues for ideas. Or you can implement features that you think should be included. We would love to see what you add🌟.

Also, view the dev process for inspiration by looking at the history of the application and the current direction of the project.

How to use

To get started using the application you can follow this guide
Or you can read instructions right here

  1. Visit the application here rcountdown

  2. Click the + icon here to add a countdown. image

  3. Click the "Title" field to add a description or leave the default Screenshot 2023-05-22 105242

  4. Click the date and time field to set your own date and time. By default it's set to your current date and time. Screenshot 2023-05-22 105517

  5. Optional step: Set deadline date and time for your event, recommend setting birthdays to midnight '00:00'

  6. Optional step: Click the "Repeat every year" field if you want the countdown event to repeat annually, eg: birthdays

Screenshot 2023-05-22 105616

  1. Click the submit button to save your countdown.

Screenshot 2023-05-22 111201

  1. You should be redirected to the countdown list page

image

  1. Click the drop down icon on a countdown to show more options. image

  2. Optional step: With these options you can edit, delete or set the current event to be displayed on the homepage. Click 'Set as main' to set the homepage clock to current event.

image

  1. To go back to the homepage click this icon to show site navigation options as well as options to change the theme and background.

image

  1. Click 'Home' to go to the homepage. Or alternatively you can click the application icon to go to the homepage. image

  2. If you selected 'set as main' on the countdown you created you should see your countdown event displayed by default on the home screen now even when you reload the page. image

Note: Your countdowns are saved on your device and are not stored online. Currently you cannot access them from a separate device.

Countdown v0.1.0 (How it began)

Counts down to midnight with clickable features (dark mode)

v0 1

Countdown v0.2.1

Added contributor Nathaniel Nyakotey

Countdown v0.2.2

Countdown v0.2.3

Countdown v0.4.2

v042

Countdown v1.0.0

v1

Countdown v1.1.0

Countdown v1.2.0

v1 2

Countdown v2.0.0

v2 mobile alt1 v2 pc

Countdown v2.1.0

black theme

Countdown v2.2.0

v220@0,5x

Countdown v2.3.0

v2 3

Countdown v2.4.0

v2 4@0,5x

Countdown v2.4.1

Countdown v2.5.0


Many more to come, stay tuned!

For more details, and live updates, checkout the dev process readme