Code Monkey home page Code Monkey logo

flexbox's Introduction

Sprint 1: Flexbox Assignment

Today's assignment is to learn how to use flexbox – a more modern way of laying out content with css.

Why use flexbox? Flexbox is a much easier way of making layout in CSS, however flexbox is not fully supported in all browsers and therefore it is good to know how to do it the old fashioned way.

This assignment will be in two parts.

  1. Do the exercises on Flexbox Froggy 1-24 to really understand how Flexbox works.

  2. Do you remember your Yearbook Assignment from earlier this sprint? Let's update it to instead use Flexbox.

How to complete this assignment

Start by reading up a little on flexbox. We gathered a few links below to help you better understand what it is and how to use it. We also included a great link to see how different technologies are supported in different browsers. Go check out flexbox and what support it has! Can I use?

Part 1. Go to Flexbox Froggy and do the exercises 1-24.

Part 2. To complete this assignment, you need to fork this repository and copy your code from the Yearbook assignment into the code folder. Then refactor the code to use flexbox. Finally, as always, submit a pull request on GitHub (from your repository into the Technigo one) for review.

⚠️ Important — Don't accidentally make updates in your old yearbook codebase! Leave that one as it is, and use this "assignment-flexbox" repository for the re-write. ⚠️

📚 Reading List


🆘 How to get help

Learning how to think as a web developer is learning how to be an expert in problem solving. So whenever you get stuck start with step 1 and continue until problem solved.

  1. Google! In English, type in the error message if there is one, search within the language you're using (ie CSS, JavaScript etc).
  2. Ask your code buddies in your Company.
  3. Ask your fellow students in Slack.
  4. Ask Damien or David. Please note: we are part of a sharing community - share the answer with your fellows.

💥 Success!

After completing this assignment, you should be comfortable using flexbox to create layouts in CSS. Finally, you should understand the difference between layout with flexbox vs layout using floats, and the pros and cons of both.


🏃 Stretch Goals

Done with the main task? Here's some ideas for things to continue with:

  1. Make your yearbook responsive. Make the photo grid 4 columns on desktop, 2 columns on tablet and 1 column on mobile.
  2. Revisit the stretch goals from the first Yearbook Assignment, if you haven't finished those.
  3. Try create the Holy Grail Layout using flexbox.

flexbox's People

Contributors

idlefingers avatar hannapettersson avatar louisebohlin avatar hindskog avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.