This project is a sandbox project for playing around with how to structure web page. We will create a page layout using a number of html5 elements (<header>
, <footer>
, and <section>
)
We will start by planning the pages of the website and then creating wireframes for the page layout.
This sandbox project is about building a website for a fictitious Pizza restaurant chains, Joe's Pizza.co.
Joe Balochio (the owner) wants a brand new website to look stylish and incorporate some design aspects inspired by his italian root. He wants a menu and information about the locations of all the different restaurants he operate. Joe would also love to have a page for news items so he can let his customers know about all the great things that his company does.
The sections that make up the visible layout of webpage follow this logical structure :
- A header
- Some navigation
- Some page content
- A footer
HTML5 include a series of new elements that we can use to define each section. Some of this elements have semantic meaning, which can help make our code easier to understand and help computer programs to identify the purpose of the content found within each element.
The first step to complete is to create the sitemap. Sitemap defines how many pages the website will have and what those page will be Starting from Joe's request, here is the sitemap for the website to be built.
- Home
- About
- News
- Menu
- Locations
- Sitemap
Most websites are based on a few different templates that are used to create each page. This templates provide an empty shell that we can add content to in order to create new pages. Using templates enables us to keep all pages looking consistent throughout our website.
We will create two templates for our Joe's Pizza website: one for the home page and one for the content pages. Content pages primarily contain text, so they need a slightly different layout from the home page.
Before starting coding away, it's best to create a rough mock-up of how the pages will look like. Mock-up, often referred to as wireframes uses boxes to indicate the position of key elements such us a navigation, content and logo.
All our web pages will have five common elements: header, logo, navigation, main content area, and a footer.
This wireframe shows the position of all the main page section: the header which contains the logo and navigation sections, the main content area; and the footer. The home page has three sections that comprise the page main content: the main feature to attract the viewer's attention, a text box for some initial information about the company, and a section to display special offers.
For the content page template, we use similar layout, changing the main content area by replacing the main content sections with a single area for the page text as shown bellow.
We need two template.
- a home page template
- content page template