UNIT 9 • STAGE 6 OF 7

Polish

Refine spacing, typography, and add a footer to complete the page

UNIT
STEP 1

What Polish Means

Your page is functionally complete. It has a hero, concept cards, recipe cards, a form, a thank-you message, and working JavaScript. Polish is the work that takes a page from "built" to "finished": consistent spacing, thoughtful typography details, and a footer that closes the page with intention.

In this stage you will add three things:

  • A max-width container to center the content and prevent lines from stretching too wide on large screens
  • A submit-btn:hover state so the button visually responds when users mouse over it
  • A <footer> element with an attribution note and the unit's source citation

Why footers matter

A footer grounds a page and signals that the content is complete. It is also where citations, copyright notices, and credits live. On a page about food sovereignty built on the work of Indigenous knowledge keepers and published authors, attribution is not a formality, it is part of respect for that work.

STEP 2

Add the Polish CSS

Find </style> and add this CSS just above it:

👉 Add inside <style>, just above </style>: .section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.submit-btn:hover {
  background: #3d5e2a;
}

footer {
  background: #1a1a1a;
  color: rgba(255, 255, 255, 0.7);
  padding: 40px;
  text-align: center;
}

footer p {
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 12px;
}

footer a {
  color: #a8d08d;
}
STEP 3

Wrap Three Sections' Content

Inside three of the four sections, wrap the content in a <div class="section-inner">. This centers the content and limits its width on wide screens. Do this for #pillars, #recipes, and #community-form.

Skip the hero, the hero already has a .hero-inner wrapper that handles centering and max-width. Adding .section-inner there would create a conflict.

👉 Example: wrap the pillars content like this: <section id="pillars">
  <div class="section-inner">
    <h2>Food Sovereignty Pillars</h2>
    <!-- rest of pillars content -->
  </div>
</section>

Repeat this pattern inside #pillars, #recipes, and #community-form: add <div class="section-inner"> as the first child inside each <section>, and close it with </div> before the closing </section>.

STEP 4

Add the Footer

Find the closing </section> of the community form section. Add the footer right after it, before </body>:

👉 Add after </section> (closing of #community-form), before </body>: <footer>
  <p>Recipe content inspired by <em>The Sioux Chef's Indigenous Kitchen</em> by Sean Sherman with Beth Dooley (University of Minnesota Press, 2017).</p>
  <p>Food sovereignty resources: <a href="https://www.natifs.org" target="_blank">NATIFS</a> &bull; <a href="https://dreamofwildhealth.org" target="_blank">Dream of Wild Health</a></p>
  <p>&copy; 2026 Planting for Seven Generations. Built with RF Code.</p>
</footer>
STEP 5

Why These Details?

  • max-width: 1100px; margin: 0 auto on .section-inner, caps the content width and centers it. On a monitor wider than 1100px, the sections stay full-width with their background colors, but the text and cards stop stretching beyond a readable width. The 0 auto margin is the standard pattern for centering a block-level element.
  • background: #3d5e2a on .submit-btn:hover, a slightly lighter forest green. Just enough to signal to the user that the button is clickable and they are hovering over it. This is the kind of small interaction detail that makes a page feel built with care.
  • footer with background: #1a1a1a, a near-black footer anchors the bottom of the page visually. The dark color echoes the deep green of the hero and signals closure.
  • color: #a8d08d on footer a, the same sage green used in the hero for links. Reusing a color from earlier in the page creates quiet visual rhymes that make the design feel unified rather than assembled from parts.
  • The citation paragraph in the footer, attribution to Sean Sherman's book is not optional. When we build pages that draw on someone's published work and cultural knowledge, naming the source is how we honor it.

Stage 6 Complete!

Your page is polished and complete. In Stage 7 you will add the finishing touch: CSS transitions that make the concept cards and recipe cards smoothly lift and respond when a user hovers over them.

Code Editor
Live Preview