How to make grid blocks

I would like to know how to make grid blocks like this?

https://archive.org/

(Top Collections at the Archive)

just do a quick search on codepen and you will see all the different ways people do it