Project: Lay Out the Garden's Website

In Exercise: Assemble the About Page, you put the last section’s patterns together on one page. The garden’s own layout, though, lives in the practice file, events/layout.css, which only the events pages link to. The home, plots, and volunteers pages still stack every box in one centered column.

In this project, you’ll move the layout into style.css and lay out every page at desktop width, checked at 1280 pixels. Making the site work on a phone is the next step on the path. Start with what Rosa is asking for.

Read Rosa’s Brief

Here’s what Rosa wants for the whole site:

  • The garden’s name on the left of every header, the nav on the right
  • The footer at the bottom of the window, even on a short page like About
  • Tomás’s volunteer-of-the-month note beside the home page’s welcome
  • The season’s seven events as a grid of cards, three across
  • A map of the garden above the plots table
  • Each volunteer’s photo beside their profile
  • A header that stays in view, without hiding the profile a link jumps to

All of it goes into style.css, in a new layer, layout, declared between base and components:

Language: CSS
@layer reset, tokens, base, layout, components;

It goes there because layers run from general to specific. The layout arranges the page’s boxes, and each component refines one piece, so a component rule wins any conflict.

The events pages stop linking to events/layout.css, so its rules don’t compete with the new ones. The file stays in your folder:

Locked learning resources

Join us and get access to thousands of tutorials and a community of expert JavaScript developers.

Unlock This Lesson

Already a member? Sign-In

Locked learning resources

The full lesson is for members only. Join us and get access to thousands of tutorials and a community of expert JavaScript developers.

Unlock This Lesson

Already a member? Sign-In

Become a Member to join the conversation.