you can find the source code of the components in src/ folder.
and by the way I made the segments of the numbers using div styling with css, and for lighting the segments I used the same concept used in electronics wich is using Karnaugh table for getting the solutions of every segment, I enjoyed making it.