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 “Flood warning”

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

Open the example

Flood warning (alert.html)

HTML
<div class="ggds-page-heading ggds-page-heading--danger">
  <div class="ggds-container">
    <p class="ggds-page-heading__eyebrow"><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 4 2.5 20h19z"/><path d="M12 10v4M12 17h.01"/></svg> Warning in force · Updated 10 November 2026, 11:40am</p>
    <h1 class="ggds-page-heading__title">Flood warning: low-lying areas near rivers</h1>
    <p class="ggds-page-heading__lede">Heavy rain is expected until 6pm. Rivers may rise quickly. If you live near a river or a drain, act now.</p>
  </div>
</div>
<div class="ggds-container ggds-main">
  <h2 id="do">What to do now</h2>
  <ol class="ggds-steps ggds-steps--urgent">
    <li class="ggds-steps__item"><span class="ggds-steps__icon"><svg class="ggds-icon ggds-icon--lg" 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 19V5M6 11l6-6 6 6"/></svg></span><h3 class="ggds-steps__title">Move to higher ground</h3><p>Take your family, your Ghana Card and your medicines.</p></li>
    <li class="ggds-steps__item"><span class="ggds-steps__icon"><svg class="ggds-icon ggds-icon--lg" 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="M13 2 4 14h7l-1 8 9-12h-7z"/></svg></span><h3 class="ggds-steps__title">Switch off the electricity</h3><p>At the main switch, if it is safe to reach.</p></li>
    <li class="ggds-steps__item"><span class="ggds-steps__icon"><svg class="ggds-icon ggds-icon--lg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><circle cx="12" cy="12" r="8.5"/><path d="M6 6l12 12"/></svg></span><h3 class="ggds-steps__title">Do not cross flood water</h3><p>Not on foot and not by car. 30 cm of moving water can carry a car away.</p></li>
    <li class="ggds-steps__item"><span class="ggds-steps__icon"><svg class="ggds-icon ggds-icon--lg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><rect x="7" y="2" width="10" height="20" rx="2"/><path d="M11 18h2"/></svg></span><h3 class="ggds-steps__title">Keep your phone charged</h3><p>We will send updates by SMS and on radio.</p></li>
  </ol>
  <div class="sc-layout">
    <div>
      <h2 id="areas">Areas affected</h2>
      <div class="ggds-table-wrap" role="region" aria-labelledby="areas-caption" tabindex="0">
  <table class="ggds-table">
    <caption class="ggds-table__caption" id="areas-caption">Flood warning levels by area</caption>
    <thead><tr><th scope="col">Area</th><th scope="col">Level</th><th scope="col">Until</th></tr></thead>
    <tbody>
      <tr><th scope="row">Example river valley</th><td><strong class="ggds-tag ggds-tag--danger">Severe: act now</strong></td><td>6pm today</td></tr>
      <tr><th scope="row">Example lagoon district</th><td><strong class="ggds-tag ggds-tag--warning">Warning: be ready</strong></td><td>6pm today</td></tr>
      <tr><th scope="row">Example hill district</th><td><strong class="ggds-tag ggds-tag--info">Watch: stay alert</strong></td><td>Midnight</td></tr>
    </tbody>
  </table>
</div>
      <details class="ggds-disclosure">
        <summary class="ggds-disclosure__summary">How we decide the level</summary>
        <div class="ggds-disclosure__content"><p>We use river levels, rain forecasts and reports from district officers. “Severe” means flooding is expected and lives may be at risk.</p></div>
      </details>
      <h2 id="sms">Get warnings by SMS</h2>
      <form action="alert.html" method="get" novalidate>
        <div class="ggds-field">
          <label class="ggds-label" for="sms-phone">Mobile number</label>
          <p class="ggds-hint" id="sms-phone-hint">Free. We only send warnings for your area.</p>
          <input class="ggds-input ggds-input--width-medium" id="sms-phone" name="phone" type="tel" autocomplete="tel" inputmode="tel" aria-describedby="sms-phone-hint">
        </div>
        <div class="ggds-button-group"><button class="ggds-button" type="submit">Send me warnings</button></div>
      </form>
    </div>
    <aside class="sc-aside sc-aside--alert" id="help" aria-labelledby="help-h">
      <h2 id="help-h" class="sc-aside__title"><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="M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a1 1 0 0 1-1 1A16 16 0 0 1 4 5a1 1 0 0 1 1-1z"/></svg> Get help</h2>
      <p class="sc-call"><span class="sc-call__number">112</span> <span>Emergency: police, fire and ambulance</span></p>
      <p class="sc-call"><span class="sc-call__number">030 000 0000</span> <span>Example Emergency Service, day and night</span></p>
      <p>Safe places are open at schools in every district. Ask a district officer or call us.</p>
    </aside>
  </div>
</div>
JSX (React)
<>
  <div className="ggds-page-heading ggds-page-heading--danger">
    <div className="ggds-container">
      <p className="ggds-page-heading__eyebrow"><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 4 2.5 20h19z" /><path d="M12 10v4M12 17h.01" /></svg> Warning in force · Updated 10 November 2026, 11:40am</p>
      <h1 className="ggds-page-heading__title">Flood warning: low-lying areas near rivers</h1>
      <p className="ggds-page-heading__lede">Heavy rain is expected until 6pm. Rivers may rise quickly. If you live near a river or a drain, act now.</p>
    </div>
  </div>
  <div className="ggds-container ggds-main">
    <h2 id="do">What to do now</h2>
    <ol className="ggds-steps ggds-steps--urgent">
      <li className="ggds-steps__item"><span className="ggds-steps__icon"><svg className="ggds-icon ggds-icon--lg" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true" focusable="false"><path d="M12 19V5M6 11l6-6 6 6" /></svg></span><h3 className="ggds-steps__title">Move to higher ground</h3><p>Take your family, your Ghana Card and your medicines.</p></li>
      <li className="ggds-steps__item"><span className="ggds-steps__icon"><svg className="ggds-icon ggds-icon--lg" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true" focusable="false"><path d="M13 2 4 14h7l-1 8 9-12h-7z" /></svg></span><h3 className="ggds-steps__title">Switch off the electricity</h3><p>At the main switch, if it is safe to reach.</p></li>
      <li className="ggds-steps__item"><span className="ggds-steps__icon"><svg className="ggds-icon ggds-icon--lg" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true" focusable="false"><circle cx="12" cy="12" r="8.5" /><path d="M6 6l12 12" /></svg></span><h3 className="ggds-steps__title">Do not cross flood water</h3><p>Not on foot and not by car. 30 cm of moving water can carry a car away.</p></li>
      <li className="ggds-steps__item"><span className="ggds-steps__icon"><svg className="ggds-icon ggds-icon--lg" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true" focusable="false"><rect x="7" y="2" width="10" height="20" rx="2" /><path d="M11 18h2" /></svg></span><h3 className="ggds-steps__title">Keep your phone charged</h3><p>We will send updates by SMS and on radio.</p></li>
    </ol>
    <div className="sc-layout">
      <div>
        <h2 id="areas">Areas affected</h2>
        <div className="ggds-table-wrap" role="region" aria-labelledby="areas-caption" tabIndex={0}>
    <table className="ggds-table">
      <caption className="ggds-table__caption" id="areas-caption">Flood warning levels by area</caption>
      <thead><tr><th scope="col">Area</th><th scope="col">Level</th><th scope="col">Until</th></tr></thead>
      <tbody>
        <tr><th scope="row">Example river valley</th><td><strong className="ggds-tag ggds-tag--danger">Severe: act now</strong></td><td>6pm today</td></tr>
        <tr><th scope="row">Example lagoon district</th><td><strong className="ggds-tag ggds-tag--warning">Warning: be ready</strong></td><td>6pm today</td></tr>
        <tr><th scope="row">Example hill district</th><td><strong className="ggds-tag ggds-tag--info">Watch: stay alert</strong></td><td>Midnight</td></tr>
      </tbody>
    </table>
  </div>
        <details className="ggds-disclosure">
          <summary className="ggds-disclosure__summary">How we decide the level</summary>
          <div className="ggds-disclosure__content"><p>We use river levels, rain forecasts and reports from district officers. “Severe” means flooding is expected and lives may be at risk.</p></div>
        </details>
        <h2 id="sms">Get warnings by SMS</h2>
        <form action="alert.html" method="get" noValidate>
          <div className="ggds-field">
            <label className="ggds-label" htmlFor="sms-phone">Mobile number</label>
            <p className="ggds-hint" id="sms-phone-hint">Free. We only send warnings for your area.</p>
            <input className="ggds-input ggds-input--width-medium" id="sms-phone" name="phone" type="tel" autoComplete="tel" inputMode="tel" aria-describedby="sms-phone-hint" />
          </div>
          <div className="ggds-button-group"><button className="ggds-button" type="submit">Send me warnings</button></div>
        </form>
      </div>
      <aside className="sc-aside sc-aside--alert" id="help" aria-labelledby="help-h">
        <h2 id="help-h" className="sc-aside__title"><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="M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a1 1 0 0 1-1 1A16 16 0 0 1 4 5a1 1 0 0 1 1-1z" /></svg> Get help</h2>
        <p className="sc-call"><span className="sc-call__number">112</span> <span>Emergency: police, fire and ambulance</span></p>
        <p className="sc-call"><span className="sc-call__number">030 000 0000</span> <span>Example Emergency Service, day and night</span></p>
        <p>Safe places are open at schools in every district. Ask a district officer or call us.</p>
      </aside>
    </div>
  </div>
</>

Back to top

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