Popcorn Hack (In-Class)

Refactored Changes:

  • Replaced style="width: 400px; border: 3px dashed purple;" with class="ocs_input large gradient" (large, gradient-styled input).
  • Replaced the made-up class="box" with class="ocs_input small" (compact plain input).

Popcorn Hack (In-Class)

Challenge

Replace the inline styling and made-up class with the OCS input grammar: one large, gradient-styled input and one compact plain input, both using ocs_input.

Lines: 1 Characters: 0
UI Output

Homework Hack

Refactored Changes (Matching the 0.8-Point Rubric):

  • Input 1 (Assistance Category): Removed style="width: 500px; background: linear-gradient(to right, pink, purple);" and replaced it with class="ocs_input large gradient" (0.4 input grammar + 0.3 style modifier)[cite: 4].
  • Input 2 (Volunteer First Name): Removed the made-up class="tinybox" and replaced it with class="ocs_input small" (0.4 input grammar)[cite: 4].
  • Input 3 (Volunteer Email): Removed style="padding: 6px;" and added class="ocs_input medium" while keeping type="email" (0.4 input grammar)[cite: 4].
  • Accessibility (0.1 points): Kept clear placeholder attributes on all three inputs[cite: 4].

Homework Hack

Challenge

Refactor the signup form by removing all inline styles and made-up classes, using ocs_input with appropriate size and style modifiers.

Lines: 1 Characters: 0
UI Output