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!
App deployed on netlify at https://rcountdown.netlify.app/
Built with:
Javascript, CSS, html
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.
Clone the repository using
git clone https://github.com/RDjarbeng/countdown.git
cd countdown
Install dependencies, we used vite for bundling as a dev dependency
npm install
View the application using vite by launching the dev server with
npm run dev
Or alternatively use live server extension in vscode to view the application. NB: Vite is recommended because you might run into some minor issues with live server in vscode
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.
There are 4 pages currently.
The image below helps to get a high level overview of the code structure
Other utility functions that are used across the application and are not specific to a single page are shown here.
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.
To get started using the application you can follow this guide
Or you can read instructions right here
Visit the application here rcountdown
Click the + icon here to add a countdown.
Click the "Title" field to add a description or leave the default
Click the date and time field to set your own date and time. By default it's set to your current date and time.
Optional step: Set deadline date and time for your event, recommend setting birthdays to midnight '00:00'
Optional step: Click the "Repeat every year" field if you want the countdown event to repeat annually, eg: birthdays
Click the drop down icon on a countdown to show more options.
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.
Click 'Home' to go to the homepage. Or alternatively you can click the application icon to go to the homepage.
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.
Note: Your countdowns are saved on your device and are not stored online. Currently you cannot access them from a separate device.
Counts down to midnight with clickable features (dark mode)
Added contributor Nathaniel Nyakotey
authors
page to a functional about
pagetoday
page: dayCount
to Whatsapp and many more to comeFor more details, and live updates, checkout the dev process readme