Locked learning resources

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

Unlock This Lesson

Locked learning resources

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

Unlock This Lesson

Polishing and Publishing a Website (Summary)

You’ve finished the course. In this course, you learned how to:

  • Add built-in interactivity to a page, with no JavaScript
  • Add motion that respects visitors’ settings, and a dark mode
  • Check a site’s quality, and publish it on GitHub Pages
  • Finish the garden site, ready to go live

The Site You Finished

On the garden’s about page, the questions open one at a time. How do I get a plot?, What happens at a work day? and What do I bring to the seed swap? are each a <details> element, and they share one name.

The Opening hours button in the header opens a panel over the page, and pressing Esc closes it.

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

00:00 Here’s what you learned to do.

00:03 Add built-in interactivity to a page, with no JavaScript. Add motion that respects visitors’ settings, and a dark mode. Check a site’s quality, and publish it on GitHub Pages.

00:15 And finish the garden site, ready to go live.

00:20 Here’s the garden site you finished. On the about page, the questions open one at a time. On the home page, the Opening hours button opens a panel over the page.

00:32 Escape closes it. Rosa’s card lifts under the pointer. For visitors who ask for reduced motion, it stays put. And the whole site follows each visitor’s light or dark setting.

00:47 Every page has its own title and description, and a tab icon. Lighthouse gives the home page 100 in all four scores, but 100 doesn’t mean an empty report.

00:58 You still fix or explain every finding.

01:02 Served locally from a garden folder, the way GitHub Pages serves it, all ten pages load with no missing files.

01:11 Things to remember: <details> and popovers work without JavaScript, and you check them by keyboard. Put a transition on the element’s own rule, so it runs both ways.

01:23 Animate transform and opacity, and turn motion down when visitors ask. A dark mode redefines your color properties, and color-scheme darkens the browser’s own form fields and scrollbars.

01:35 And online, your site lives in a garden folder, so keep paths relative. File names match letter for letter, so keep names exact.

01:46 This was the path’s last course. If you haven’t yet, plan and build a site of your own the same way, and talk it through with a mentor. For pages that do more, the RealJS course Putting JavaScript on the Web Page picks up where HTML and CSS stop.

02:03 Thanks for watching.

Become a Member to join the conversation.