Prep 7: Grid, Responsive, and Arrays
Complete the following reading assignments and complete the two activities.
Reading
Textbook
- HTML/CSS FunWebDev
- 7.3 Grid Layout
- 7.4 Responsive Design
- JS FunWebDev
- 10.1 Array Functions
- Git FunWebDev
- 5.7.X Tools Insight: Version Control (pp. 228-234)
- Responsive Design++ MDN & Friends
- Implementing Responsive images in HTML
- esp. resolution switching via
srcset(more at srcset) and art direction with<picture>
- esp. resolution switching via
- Flow-relative presentation with CSS Logical Properties and Values
- MOAR Media Queries
- media-type (e.g.
printfrom MDN) - preferences media-features (e.g. color-scheme for light/dark mode, contrast, and reduced-motion)
- media-type (e.g.
- Implementing Responsive images in HTML
Grid Garden
-
First, open up the css-tricks Grid Layout Guide for reference.
- This is going to be your best friend whenever you need to use grid!
-
Then, complete levels 1–17 of Grid Garden 🥕
- You may complete the remaining levels if you want, but only levels 1–17 are required for this prep.
-
Once completed, expand the level selector and take a screenshot, showing that you’ve completed levels 1–17.
-
Submission: Upload your screenshot to the corresponding Gradescope assignment.
Order Up!
-
First, open up the MDN: Array (methods and examples) for reference.
- You’ll want to look specifically at
filter(),map(), andreduce().
- You’ll want to look specifically at
-
Then, complete all 20 levels of Order Up! 👩🍳
-
Once completed, in the menu, click on “Export Progress”.
- This will download an
order-up-progress.jsonfile.
- This will download an
-
Submission: Upload your
order-up-progress.jsonfile to the corresponding Gradescope assignment.
-
Disclaimer: may not actually be fun 🤷 - hopefully you find it fun, but to each their own ↩
-
Find any bugs? Send a screenshot and description of the issue to wangid@jmu.edu ↩