Flexbox layout implemented in Index.