Popcorn Hack #1: Add the Base Button Class

The empty class="" on the resource link becomes ocs__btn, so the link is styled as an OCS button.

Challenge

Popcorn Hack 1: the resource link uses the base ocs__btn class. Press Run.

Lines: 1 Characters: 0
UI Output

Popcorn Hack #2: Modifiers & Button Groups

“Complete Daily Check-In” gets the pill and fill modifiers, and both actions are grouped inside an ocs__links container.

Challenge

Popcorn Hack 2: pill and fill on the check-in button, with both actions inside ocs__links. Press Run.

Lines: 1 Characters: 0
UI Output

Popcorn Hack #3: Status Tones & Wide Layout Bar

  • The check-in button’s tone changes from alert-yellow to alert-green.
  • The container is upgraded from ocs__links to ocs__links--wide.
  • Crisis Support gets fill, so it has full visual priority.

Challenge

Popcorn Hack 3: a green check-in button and a filled red crisis button in a wide action bar. Press Run.

Lines: 1 Characters: 0
UI Output

Homework Hack #1: Adaptive Resource Toolbar

The three resource badges are grouped in an ocs__links container, and each one uses the tone that matches how urgent its category is:

Category Classes Why
Urgent Support ocs__btn alert-red fill pill Red and filled, so it stands out the most
Self-Care ocs__btn alert-green fill pill Green for a positive, supportive action
Community ocs__btn accent outline pill Outlined, so it is visible but lower priority

Challenge

Homework Hack 1: the three resource badges as OCS pill buttons in an ocs__links toolbar. Press Run.

Lines: 1 Characters: 0
UI Output

Homework Hack #2: Primary vs. Secondary Action Priority

The check-in panel becomes one action row inside ocs__links, where each button’s style shows how important it is:

Action Priority Classes
Log Mood Entry Primary ocs__btn accent fill
View Weekly Trends Secondary ocs__btn outline
Crisis Hotline Alert ocs__btn alert-red outline

“Log Mood Entry” is a <button> because it performs an action on the page. The other two are <a> links because they go to another page.

Challenge

Homework Hack 2: a filled primary action, an outline secondary action, and a red outline alert action in ocs__links. Press Run.

Lines: 1 Characters: 0
UI Output