Skip to main content

This is a draft (version 0.5.0). The National Information Technology Agency (NITA) plans to make GGDS official guidance for government websites after independent accessibility testing. What this means

Ghana Government Design System Design system for Government of Ghana websites – home Search

The HTML of “Book a vaccination”

What goes inside <main> on each page of book an appointment. The skip link, banner, header and footer around it are on the page template. Switch any block to JSX for React.

Open the example

Where do you want to go? (book.html)

HTML
<div class="ggds-container ggds-main sc-narrow">
  <div class="ggds-progress">
  <label class="ggds-progress__label" for="progress">Question 2 of 4</label>
  <progress class="ggds-progress__bar" id="progress" value="2" max="4">Question 2 of 4</progress>
</div>
  <form action="book-time.html" method="get" novalidate>
    <div class="ggds-field">
      <fieldset class="ggds-fieldset" aria-describedby="centre-hint">
        <legend class="ggds-fieldset__legend ggds-fieldset__legend--page"><h1>Where do you want to go?</h1></legend>
        <p class="ggds-hint" id="centre-hint">Health centres near Example Town</p>
        <div class="ggds-choices">
          <div class="ggds-choice"><input class="ggds-choice__input" id="centre-east" name="centre" type="radio" value="east" aria-describedby="centre-east-hint"><label class="ggds-choice__label" for="centre-east">Example Health Centre <span class="ggds-choice__hint" id="centre-east-hint">Market Road · Open Monday to Saturday</span></label></div>
          <div class="ggds-choice"><input class="ggds-choice__input" id="centre-west" name="centre" type="radio" value="west" aria-describedby="centre-west-hint"><label class="ggds-choice__label" for="centre-west">Example Polyclinic <span class="ggds-choice__hint" id="centre-west-hint">Station Road · Open every day</span></label></div>
          <div class="ggds-choice"><input class="ggds-choice__input" id="centre-north" name="centre" type="radio" value="north" aria-describedby="centre-north-hint"><label class="ggds-choice__label" for="centre-north">Example Community Clinic <span class="ggds-choice__hint" id="centre-north-hint">School Lane · Tuesdays and Thursdays</span></label></div>
        </div>
      </fieldset>
    </div>
    <div class="ggds-button-group"><button class="ggds-button sc-wide" type="submit">Continue</button></div>
  </form>
  <p id="records" class="ggds-hint">No data bundle? Dial *000*00# to book by USSD.</p>
  <p id="help" class="ggds-hint">Help: call 030 000 0000.</p>
</div>
JSX (React)
<div className="ggds-container ggds-main sc-narrow">
  <div className="ggds-progress">
  <label className="ggds-progress__label" htmlFor="progress">Question 2 of 4</label>
  <progress className="ggds-progress__bar" id="progress" value="2" max="4">Question 2 of 4</progress>
</div>
  <form action="book-time.html" method="get" noValidate>
    <div className="ggds-field">
      <fieldset className="ggds-fieldset" aria-describedby="centre-hint">
        <legend className="ggds-fieldset__legend ggds-fieldset__legend--page"><h1>Where do you want to go?</h1></legend>
        <p className="ggds-hint" id="centre-hint">Health centres near Example Town</p>
        <div className="ggds-choices">
          <div className="ggds-choice"><input className="ggds-choice__input" id="centre-east" name="centre" type="radio" value="east" aria-describedby="centre-east-hint" /><label className="ggds-choice__label" htmlFor="centre-east">Example Health Centre <span className="ggds-choice__hint" id="centre-east-hint">Market Road · Open Monday to Saturday</span></label></div>
          <div className="ggds-choice"><input className="ggds-choice__input" id="centre-west" name="centre" type="radio" value="west" aria-describedby="centre-west-hint" /><label className="ggds-choice__label" htmlFor="centre-west">Example Polyclinic <span className="ggds-choice__hint" id="centre-west-hint">Station Road · Open every day</span></label></div>
          <div className="ggds-choice"><input className="ggds-choice__input" id="centre-north" name="centre" type="radio" value="north" aria-describedby="centre-north-hint" /><label className="ggds-choice__label" htmlFor="centre-north">Example Community Clinic <span className="ggds-choice__hint" id="centre-north-hint">School Lane · Tuesdays and Thursdays</span></label></div>
        </div>
      </fieldset>
    </div>
    <div className="ggds-button-group"><button className="ggds-button sc-wide" type="submit">Continue</button></div>
  </form>
  <p id="records" className="ggds-hint">No data bundle? Dial *000*00# to book by USSD.</p>
  <p id="help" className="ggds-hint">Help: call 030 000 0000.</p>
</div>

Choose a time (book-time.html)

HTML
<div class="ggds-container ggds-main sc-narrow">
  <p><a class="ggds-with-icon" href="book.html"><svg class="ggds-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><path d="M19 12H5M11 6l-6 6 6 6"/></svg><span>Back</span></a></p>
  <div class="ggds-progress">
  <label class="ggds-progress__label" for="progress">Question 3 of 4</label>
  <progress class="ggds-progress__bar" id="progress" value="3" max="4">Question 3 of 4</progress>
</div>
  <h1>Choose a time</h1>
  <p class="sc-place"><svg class="ggds-icon ggds-icon--sm" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><path d="M12 21s-6.5-5.8-6.5-11a6.5 6.5 0 0 1 13 0c0 5.2-6.5 11-6.5 11z"/><circle cx="12" cy="10" r="2.5"/></svg> Example Health Centre</p>
  <form action="book-done.html" method="get" novalidate>
    <div class="ggds-field">
      <fieldset class="ggds-fieldset">
        <legend class="ggds-fieldset__legend">Tuesday 17 November</legend>
        <div class="ggds-choices">
          <div class="ggds-choice"><input class="ggds-choice__input" id="t1" name="time" type="radio" value="t1"><label class="ggds-choice__label" for="t1">8:30am <span class="sc-slot">4 places left</span></label></div>
          <div class="ggds-choice"><input class="ggds-choice__input" id="t2" name="time" type="radio" value="t2" disabled><label class="ggds-choice__label" for="t2">10:00am <span class="sc-slot sc-slot--full">Full</span></label></div>
          <div class="ggds-choice"><input class="ggds-choice__input" id="t3" name="time" type="radio" value="t3"><label class="ggds-choice__label" for="t3">1:30pm <span class="sc-slot">9 places left</span></label></div>
        </div>
      </fieldset>
    </div>
    <div class="ggds-field">
      <fieldset class="ggds-fieldset">
        <legend class="ggds-fieldset__legend">Wednesday 18 November</legend>
        <div class="ggds-choices">
          <div class="ggds-choice"><input class="ggds-choice__input" id="w1" name="time" type="radio" value="w1"><label class="ggds-choice__label" for="w1">8:30am <span class="sc-slot">12 places left</span></label></div>
          <div class="ggds-choice"><input class="ggds-choice__input" id="w2" name="time" type="radio" value="w2"><label class="ggds-choice__label" for="w2">11:00am <span class="sc-slot">2 places left</span></label></div>
        </div>
      </fieldset>
    </div>
    <div class="ggds-button-group"><button class="ggds-button sc-wide" type="submit">Continue</button></div>
  </form>
  <p id="records" class="ggds-hint">No data bundle? Dial *000*00# to book by USSD.</p>
  <p id="help" class="ggds-hint">Help: call 030 000 0000.</p>
</div>
JSX (React)
<div className="ggds-container ggds-main sc-narrow">
  <p><a className="ggds-with-icon" href="book.html"><svg className="ggds-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true" focusable="false"><path d="M19 12H5M11 6l-6 6 6 6" /></svg><span>Back</span></a></p>
  <div className="ggds-progress">
  <label className="ggds-progress__label" htmlFor="progress">Question 3 of 4</label>
  <progress className="ggds-progress__bar" id="progress" value="3" max="4">Question 3 of 4</progress>
</div>
  <h1>Choose a time</h1>
  <p className="sc-place"><svg className="ggds-icon ggds-icon--sm" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true" focusable="false"><path d="M12 21s-6.5-5.8-6.5-11a6.5 6.5 0 0 1 13 0c0 5.2-6.5 11-6.5 11z" /><circle cx="12" cy="10" r="2.5" /></svg> Example Health Centre</p>
  <form action="book-done.html" method="get" noValidate>
    <div className="ggds-field">
      <fieldset className="ggds-fieldset">
        <legend className="ggds-fieldset__legend">Tuesday 17 November</legend>
        <div className="ggds-choices">
          <div className="ggds-choice"><input className="ggds-choice__input" id="t1" name="time" type="radio" value="t1" /><label className="ggds-choice__label" htmlFor="t1">8:30am <span className="sc-slot">4 places left</span></label></div>
          <div className="ggds-choice"><input className="ggds-choice__input" id="t2" name="time" type="radio" value="t2" disabled /><label className="ggds-choice__label" htmlFor="t2">10:00am <span className="sc-slot sc-slot--full">Full</span></label></div>
          <div className="ggds-choice"><input className="ggds-choice__input" id="t3" name="time" type="radio" value="t3" /><label className="ggds-choice__label" htmlFor="t3">1:30pm <span className="sc-slot">9 places left</span></label></div>
        </div>
      </fieldset>
    </div>
    <div className="ggds-field">
      <fieldset className="ggds-fieldset">
        <legend className="ggds-fieldset__legend">Wednesday 18 November</legend>
        <div className="ggds-choices">
          <div className="ggds-choice"><input className="ggds-choice__input" id="w1" name="time" type="radio" value="w1" /><label className="ggds-choice__label" htmlFor="w1">8:30am <span className="sc-slot">12 places left</span></label></div>
          <div className="ggds-choice"><input className="ggds-choice__input" id="w2" name="time" type="radio" value="w2" /><label className="ggds-choice__label" htmlFor="w2">11:00am <span className="sc-slot">2 places left</span></label></div>
        </div>
      </fieldset>
    </div>
    <div className="ggds-button-group"><button className="ggds-button sc-wide" type="submit">Continue</button></div>
  </form>
  <p id="records" className="ggds-hint">No data bundle? Dial *000*00# to book by USSD.</p>
  <p id="help" className="ggds-hint">Help: call 030 000 0000.</p>
</div>

Vaccination booked (book-done.html)

HTML
<div class="ggds-container ggds-main sc-narrow">
  <div class="ggds-panel">
    <h1 class="ggds-panel__title">Vaccination booked</h1>
    <p class="ggds-panel__body">Show this code at the door <strong class="ggds-panel__reference">VX-4821</strong></p>
  </div>
  <h2 id="bookings">Your booking</h2>
  <dl class="ggds-summary-list">
  <div class="ggds-summary-list__row">
    <dt class="ggds-summary-list__key">When</dt>
    <dd class="ggds-summary-list__value">Tuesday 17 November, 8:30am</dd>
  </div>
  <div class="ggds-summary-list__row">
    <dt class="ggds-summary-list__key">Where</dt>
    <dd class="ggds-summary-list__value">Example Health Centre, Market Road</dd>
  </div>
  <div class="ggds-summary-list__row">
    <dt class="ggds-summary-list__key">For</dt>
    <dd class="ggds-summary-list__value">Kofi, aged 2</dd>
  </div>
</dl>
  <h2>Bring with you</h2>
  <ul>
    <li>your Ghana Card or NHIS card</li>
    <li>your child’s health record book, if you have it</li>
  </ul>
  <div class="ggds-notice">
    <p class="ggds-notice__title"><span class="ggds-visually-hidden">Information:</span> We will remind you by SMS the day before</p>
    <p>Can’t come? <a href="book-time.html">Change the time</a> or <a href="book.html">cancel</a>, so someone else can have it.</p>
  </div>
  <p id="records" class="ggds-hint">No data bundle? Dial *000*00# to book by USSD.</p>
  <p id="help" class="ggds-hint">Help: call 030 000 0000.</p>
</div>
JSX (React)
<div className="ggds-container ggds-main sc-narrow">
  <div className="ggds-panel">
    <h1 className="ggds-panel__title">Vaccination booked</h1>
    <p className="ggds-panel__body">Show this code at the door <strong className="ggds-panel__reference">VX-4821</strong></p>
  </div>
  <h2 id="bookings">Your booking</h2>
  <dl className="ggds-summary-list">
  <div className="ggds-summary-list__row">
    <dt className="ggds-summary-list__key">When</dt>
    <dd className="ggds-summary-list__value">Tuesday 17 November, 8:30am</dd>
  </div>
  <div className="ggds-summary-list__row">
    <dt className="ggds-summary-list__key">Where</dt>
    <dd className="ggds-summary-list__value">Example Health Centre, Market Road</dd>
  </div>
  <div className="ggds-summary-list__row">
    <dt className="ggds-summary-list__key">For</dt>
    <dd className="ggds-summary-list__value">Kofi, aged 2</dd>
  </div>
</dl>
  <h2>Bring with you</h2>
  <ul>
    <li>your Ghana Card or NHIS card</li>
    <li>your child’s health record book, if you have it</li>
  </ul>
  <div className="ggds-notice">
    <p className="ggds-notice__title"><span className="ggds-visually-hidden">Information:</span> We will remind you by SMS the day before</p>
    <p>Can’t come? <a href="book-time.html">Change the time</a> or <a href="book.html">cancel</a>, so someone else can have it.</p>
  </div>
  <p id="records" className="ggds-hint">No data bundle? Dial *000*00# to book by USSD.</p>
  <p id="help" className="ggds-hint">Help: call 030 000 0000.</p>
</div>

Back to top

Something wrong, unclear or missing? Report a problem with this page. You need a GitHub account.