Finished layout for main page

— Also converted the pages to PHP