Skip to content

tehuel/html-time

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTML-TIME

https://setyourwatchby.netlify.com

A ludicrous experiment triggered by a playfull tweet:

free side project idea: HTML-only static site generated clock that deploys a new version to @netlify every minute – @zachleat

What does it do?

  • It builds a page with the local time for a variety of timezones. (correct at build time.)
  • When served on Netlify's global CDN, visitors are routed to the correct page for them based on the country they access from.

What on earth for?

Since we can run this build so regularly and with such confidence on Netlify, we rebuild and deploy automatically every minute.

Are you an idiot?

Possibly. But it turns out that this is a nice example of how the country-specific CDN routing is on Netlify thanks to its concise, yet powerful _redirects API. (docs)

Have a poke around!

Developing locally

// clone this repository
git clone git@github.com:philhawksworth/html-time.git

// move into the project and install the dependencies
cd html-time
yarn

// run a local development server with auto-rebuild and hot reloading
yarn start

Deployed (really rather often) to Netlify

Netlify Status

Format for localisations

Pages for different locales follow the conventions set out on Wikipedia

Releases

No releases published

Packages

No packages published

Languages

  • HTML 53.3%
  • CSS 26.5%
  • JavaScript 20.2%