This is a simple web project that displays a countdown to your birthday. It includes a fullscreen button and a celebratory message when the countdown ends.
- Countdown timer displaying days, hours, minutes, and seconds.
- Fullscreen mode toggle.
- Celebratory message with emojis once the countdown ends.
- Responsive design with a gradient background.
- Clone the repository:
git clone https://github.com/SlyFoxCoding/HTMLcountdown
- Navigate to the project directory:
cd HTMLcountdownOpen index.html in Your Web Browser:
- Double-click on the index.html file in the project directory.
- Alternatively, you can use the command line:
open index.html # MacOS start index.html # Windows xdg-open index.html # Linux
Start a Local HTTP Server: Python 3:
python3 -m http.serverPython 2:
python -m SimpleHTTPServerOpen Your Browser and Go to:
http://localhost:8000- Install http-server Globally:
npm install -g http-server- Start the Server:
http-server-
Open Your Browser and Go to:
http://localhost:8080
-
Create a Dockerfile in the Project Directory:
FROM nginx:alpine COPY . /usr/share/nginx/html
-
Build the Docker Image:
docker build -t countdown-to-birthday . -
Run the Docker Container:
docker run -d -p 8080:80 countdown-to-birthday
-
Open Your Browser and Go to:
http://localhost:8080