Skip to content

Instantly share code, notes, and snippets.

@M0119

M0119/_grid.md Secret

Last active March 20, 2019 23:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save M0119/d3d1a65a2541a51e700f6cfa22ff6654 to your computer and use it in GitHub Desktop.
Save M0119/d3d1a65a2541a51e700f6cfa22ff6654 to your computer and use it in GitHub Desktop.

Lecture ✍️

Setting up the grid

  • Introduction to grid docs
  • Again reference that tweet, grid is for more than one column and more than one row, multi dimensional
  • You might think then why not just use grid for everything, that is never the case, it's using a combo of block, flexbox and grid to achieve nice design
  • Create a dashboard type of layout, show how i can target specific parts of the grid, run through docs

Grid versus flexbox

There are many more components that are far better to design in flexbox than grid. For example, things like buttons, navbars, forms, cards and containers and much easier to do in flexbox.

Grid is great for layouts that are super complex and have kind of box look to them. Dashboards are an example of this.

Challenge 1

finish off the grid so it looks the same as what i had in figma, this is the code we ran through in the lecture

Challenge 2

recreate this business dashboard

the pie chart can just be a circle (way too hard to do it in css 😳)

note: you don't have to recreate the whole page, just the middle part

Challenge 3

recreate this health dashboard

Challenge 4

recreate this sales dashboard

Challenge 5

create a chess board (or checkers) using css grid

look up the nth-child pseudo class to get the job done

Challenge 6

re-do one of your card components in css grid

Challenge 7

recreate this website

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