SASS Containers HW
Popcorn Hack: Parade Invite Rescue
The page-wrap div, the purple inline title, and the hand-made flex row of box divs are replaced with container grammar: one ocs__container, one ocs__card (title as ocs__section-title plus an ocs__description), and an ocs__grid ocs__grid--standard cols-3 with three ocs__grid-cell children, one with --accent. (The starter’s exact wording is inside the lesson’s editor, so the three items use the lesson’s Location / Start time / What you get labels.)
Challenge
Popcorn Hack: rebuild the parade invite with OCS container grammar only. Press Run.
Homework Hack: Parade Hub Page
Everything sits inside one ocs__container holding one ocs__card:
- Title as
ocs__section-titleplus a one-lineocs__description. - A
cols-3standard grid with a--headercell (spans the full row), an--accentcell, and a--mutedcell. - The table rebuilt with
ocs__table-wrap+ocs__table(one header row and two body rows). - One
ocs__calloutline at the end. - No inline
style, no<style>block, and no made-up classes (wrap,tile).
Challenge
Homework Hack: rebuild the Parade Hub page with container grammar, a grid, a table, and a callout. Press Run.
Optional SASS Extra (+0.2): A Tinted Container Variant
Kept separate from the graded page so the required part stays at zero custom CSS:
// Tinted variant of the shared page container.
.ocs__container.my-container--tinted {
background: rgba(34, 197, 94, 0.08); // soft green tint behind the page content
border-radius: 12px; // rounded edges like the cards inside it
max-width: 1000px; // a little wider than the default 900px
}
<div class="ocs__container my-container--tinted">
<div class="ocs__card">
<h2 class="ocs__section-title">Poway Rotary Parade Hub</h2>
</div>
</div>
The class sits next to ocs__container, so it keeps every shared rule (centering, padding, the user’s font and text color) and only overrides what it needs to.