Monday, 7 April 2025

Getting ChatGPT to write a full-screen clock app

I have a new small monitor that I want to display the time and date on in full-screen.


Here's the prompt that I gave ChatGPT:

Create a single-page, static web app that shows a dark mode 24-hour clock with as much of the screen filled as possible using the roboto font in bold. The site should take a parameter that instructs the time format (e.g. "HH:mm") and the date format (e.g. yyyy-MM-dd), which should appear under the time. The Time font should be maximized to fill the page, but without moving distractingly when the time changes.

Here's the resultant Github:

https://github.com/davidnmbond/FullScreenClock

You can use it here:

https://davidnmbond.github.io/FullScreenClock/?timeFormat=HH:mm:ss&dateFormat=ccc+dd+LLL


 

No comments:

Post a Comment