In this assignment, you will be enhancing the portfolio you made last unit with a mobile-responsive layout.
Create a new GitHub repository and name it Responsive-Portfolio
.
Clone this repository to your computer.
Copy the contents of Basic-Portfolio
(your first homework solution) and paste the mentioned files into Responsive-Portfolio
.
Inside your Responsive-Portfolio
folder, find your styles.css
file. You will write your media queries at the bottom of styles.css
.
Use three @media screen
tags, each with one of these max-width
s: 980px
, 768px
and 640px
.
You use 980px
because you never want any of the content to be cut off. Since the desktop layout is about 960px wide, you want the media queries to kick in before your content gets cut off.
768px
is about the width of a tablet and 640px
is about the width of a phone in landscape.
Make the layout match the following screenshots:
Make the position of the header static
(the default positioning) when the screen is 640px
wide. The header design takes up a lot of room; you don't want it to stick to the top of a small screen and leave no room for the rest of your site.
Be sure to include the viewport
tag in all your HTML files, otherwise your media-queries won't function as expected on mobile devices. (Hint: You won't need to use exact pixels for anything other than the container)
Protip: Use the Chrome extensions Window Resizer and View Port Dimentions to see the browser dimensions in Chrome.
Deploy your new portfolio (now with media queries!) to GitHub Pages.
Submit the GitHub links to your portfolio repositories on GitHub.
Submit the link to your (GitHub Pages) deployed site in the same input field.
Attempt to complete homework assignment as described in instructions. If unable to complete certain portions, please pseudocode these portions to describe what remains to be completed.
If you have any questions about this project or the material we have covered, please post them in the community channels in slack so that your fellow developers can help you! If you're still having trouble, you can come to office hours for assistance from your instructor and TAs.
Good Luck!