bugeats / clock-demo

A demonstration of my abilities with TypeScript and React

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Clock Demo

As demonstration of my abilities with TypeScript and React, this project renders an analog clock in the style of an old vector display.

It looks like this:

screenshot

This project was bootstrapped with Create React App.

Setup

Install npm packages:

npm install

Development

Start the development server:

npm start

Testing

Run tests with jest:

npm test

Contributing

Run eslint before contributing:

npm run lint

Alternatively, fix some lint errors in place:

npm run lint:fix

TODO

Some ideas

  • Extract all time related magic numbers into some sort of model layer
  • Play with CSS/SVG WebGL shaders to further simulate a CRT display
  • Make some typed helpers for rendering SVG path command strings
  • Time travel

About

A demonstration of my abilities with TypeScript and React


Languages

Language:TypeScript 82.8%Language:JavaScript 10.4%Language:CSS 4.8%Language:HTML 2.1%