Wrote logic to determine whether a restaurant is open, and render the home page.