Code Monkey home page Code Monkey logo

flexible-mock-magic's Introduction

Flexible Mock Magic

GOAL: You have been tasked with tasked with designing a mockup of a webpage for a new company that wants to create a social media platform for coders. They have provided the following mockup for their desired output.

Directions

Use your knowledge of flexboxes to complete the following design tasks. Some will require nested flexboxes, so it may help to do a sketch of your desired layout before you begin coding!

Footer

Create a ruleset for the <footer> element to match the image below. The images should be evenly spaced in a single row.

Navigation Bar

The nav class="navbar contains an image and a ul as children. Design a nested flexbox that places the image at one end of the flexbox and the list elements in a row on the other end.

Sidebar and Main Content

The sidebar and main content area are all contained within the main class="flex-main" that should contain two flexboxes.

The sidebar should contains all the elements evenly spaced and stacked on top of one another like the image shown below.

The main content area should fill the remaining space with the image containers. If the image containers do not all fit inside the flexbox, they should go to a new row like the image below.

Done Early? Try These Stretch Exercises ๐Ÿš€

Currently, the image containers aren't really filling the entire space. Can you use flex-grow to have the middle child element fill the entire remaining space

Explore the CSS Tricks Documentation ๐Ÿ” and incorporate the following into your design:

  • gap
  • row-gap
  • column-gap
  • order
  • flex-shrink
  • flex-basis
  • flex

flexible-mock-magic's People

Contributors

stevenjlance 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.