Square interview question

Recreate this webpage using JavaScript and CSS.