styling for the homePage and a small function to transition

I'm not sure why we need a return in the middle of this?