Now that you have experienced building a layout using inline-block
. Lets revisit the same HTML structure and refactor our first page with flex box module. If you didn't finish yesterday's assignment, just start from scratch or use the solution code provided to you.
Once you have finished the home page using flex box module, go build the services page based on the design file provided to you. This time you will need to structure your own HTML in addition to using flex box module. You have been provided all the necessary images in the img
folder.
Useful Resource: CSS Tricks Flexbox Guide
- Fork the project to your GitHub account
- Clone this project into a directory on your machine.
- Open the code with your preferred integrated development environment (IDE).
- Start on the objectives
Click this link to learn how to use git on this project
-
Home Page Refactor:
- Note that the provided HTML is blank. This is because I want you to use your code from yesterday if possible. If you didn't finish, that's fine, just use the solution from yesterday
- Refactor the home page layout with flexbox where
inline-block
was used before. - In your navigation elements, point the services
<a href=""></a>
toservices.html
-
Services Page Build:
- Update the title in your newly copied services page to say
Great Idea! - Services
- Using the provided design file, create the services page layout using flexbox and box model.
- Wrap the great idea logo in an anchor tag and point the
href
toindex.html
Remember, you should continue using box model properties this whole time. Flexbox is only used for bigger layout pieces. You will still need content width, padding, border, and margins to succeed.
- Update the title in your newly copied services page to say
- Create another page based on one of the navigation items in addition to services. Try to create a layout that follows the patterns of the first two designs but with your own creative twist. Use lorem ipsum text for all your content.
- Introduce media queries into your services page to create a mobile view that stacks all the boxes on top of each other on phone but looks like the layout file on desktop.
- Jakub Maleta