Skip to content

Instantly share code, notes, and snippets.

@Unalo
Last active March 23, 2022 12:26
Show Gist options
  • Save Unalo/9cb914bff1832e9ccb95c6f92aa85c9d to your computer and use it in GitHub Desktop.
Save Unalo/9cb914bff1832e9ccb95c6f92aa85c9d to your computer and use it in GitHub Desktop.

Pizza pamphlet

Create & deploy a response online pizza pamphlet for a friend that's starting a local pizzeria called Perfect Pizza.

Pick a fun color scheme from: https://coolors.co/ style the existing CSS

Select:

  • a background color
  • a different color for each of the small, medium & large pizza boxes
  • a different color for the footer.

The color scheme has 5 colors.

For example: https://jsbin.com/boqaleperu/13/edit?output

Use:

  • font-family to change the pamphlets font
  • the box model to create space between elements - margin, padding & border
    • display: inline
  • make it responsive using:
    • flexbox

      • display:flex
      • display: inline-flex
    • floats

      • collapsing elements
      • clearing floats
    • SimpleGrid - https://simplegrid.io/

Learn about:

  • inline & block elements
  • different layout approaches - floats, flexbox
  • responsive web sites
  • media queries

Deployment

  • Create a GitHub repository called pizza-pamphlet
  • Link your local git repository to this remote repository using the git remote add origin <REMOTE_ORIGIN_HERE> command. You can copy the setting from GitHub.
  • Commit your local changes:
    • git add .
    • git commit -m 'describing what I've done.'
  • Branch your local changes into a gh-pages branch:
    • git branch gh-pages
  • Move into the gh-pages branch:
    • git checkout gh-pages
  • Push your changes to GitHub:
    • git push origin gh-pages

Your web page should now be deployed to http://<YOUR_GITHUB_USERNAME>.github.io/pizza-pamphlet

Thought

It might make sense to work through this tutorial in a workshop: http://learnlayout.com/toc.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment