The Kawaiis · Take-home guide

Add a customer reviews section, safely

Everything from today’s code-along on one page: what to ask first, the three lines you typed, how to check your work, and when you’re done.

What you’re building, and why

A reviews section on a store’s homepage: a heading, the reviews in 3 columns on wide screens (1 on phones), and one review at a time with Pause, Previous and Next buttons.

Why it matters: new visitors don’t buy from a store they don’t trust. Reviews from real customers show that real people bought something and were happy.

Before you start

The three steps: HTML, then CSS, then JavaScript

Structure first, then looks, then behaviour. Each step is one line: the highlighted one.

HTMLStep 1 · index.html

Give the section a heading

Type this line

<h2 id="reviews-title">What our customers say</h2>

<section class="reviews" aria-labelledby="reviews-title">
  <h2 id="reviews-title">What our customers say</h2>
  <ul class="reviews-list">
    … 6 review cards …
  </ul>
</section>

Why: a heading tells everyone, including people using a screen reader, what this section is. The id matches the name in aria-labelledby.

Check: “What our customers say” appears above the reviews.

CSSStep 2 · styles.css

Three columns on wide screens

Type this line

grid-template-columns: repeat(3, 1fr);

.reviews-list {
  display: grid;
  gap: 16px;
}
@media (min-width: 700px) {
  .reviews-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

Why: phones first. One column fits a small screen; only wide screens get three. Design for a small screen first, then expand (LePage & Andrew, 2019).

Check: on a laptop, 3 columns. Make the window narrow, or use your phone: still 1 column, and no sideways scrolling.

JSStep 3 · script.js

One review at a time

Type this line

items[current].hidden = false;

function show(index, announce) {
  items[current].hidden = true;
  current = (index + items.length) % items.length;
  items[current].hidden = false;
  if (announce) {
    status.textContent = 'Review ' + (current + 1) + ' of ' + items.length;
  }
}

Why: show one review at a time, with a button to pause it. People must be able to pause moving content, and every button must work with a keyboard (W3C Web Accessibility Initiative, 2017). JavaScript goes last: if it fails to load, every review still shows.

Check: press Pause and it stays paused. Previous and Next move one review. Press Tab: you can reach every button.

The done checklist

Use AI, but check its work

In the 2025 Stack Overflow Developer Survey, trust in the accuracy of AI fell from 40% in previous years to 29%. The top frustration, for 45% of respondents, was “AI solutions that are almost right, but not quite” (Yepis, 2025).

The developer we interviewed agreed: AI can explain code and get you unstuck, but it can add subtle bugs and become a crutch (D. Fodeke-Rodgers, personal communication, November 20, 2026).

When you’re stuck

  1. Read the error.
  2. Reproduce it and narrow it down.
  3. Ask a person or AI, then check the answer.

Honest reviews

In Canada, the Competition Bureau warns that writing or allowing reviews that “give a false or misleading impression to consumers” can make a business liable under the Competition Act (Competition Bureau Canada, 2024).

Sources

Competition Bureau Canada. (2024, January 18). Online reviews posted by employees: Businesses could be liable [News release]. Government of Canada. https://www.canada.ca/en/competition-bureau/news/2024/01/online-reviews-posted-by-employees-businesses-could-be-liable.html

LePage, P., & Andrew, R. (2019, February 12). Responsive web design basics. web.dev. https://web.dev/articles/responsive-web-design-basics

W3C Web Accessibility Initiative. (2017, April 13). Carousels tutorial. https://www.w3.org/WAI/tutorials/carousels/

Yepis, E. (2025, July 29). Developers remain willing but reluctant to use AI: The 2025 Developer Survey results are here. Stack Overflow Blog. https://stackoverflow.blog/2025/07/29/developers-remain-willing-but-reluctant-to-use-ai-the-2025-developer-survey-results-are-here

The interview with D. Fodeke-Rodgers is a personal communication, so it is cited in the text only.