Panels are used to highlight certain elements of a page, in the same way that boxout is used on the 2013 site.

The default panel is simply some content.

Atmospheric chemist Professor Alastair Lewis argues that clean air should be the engine of economic growth in China, rather than the brake.

<div class="c-panel ">
  <div class="c-panel__content">
    <p>Atmospheric chemist Professor Alastair Lewis argues that clean air should be the engine of economic growth in <a href="https://en.wikipedia.org/wiki/China">China</a>, rather than the brake.</p>
  </div>
</div>

A panel can have a highlight colour:

Atmospheric chemist Professor Alastair Lewis argues that clean air should be the engine of economic growth in China, rather than the brake.

<div class="c-panel c-panel--highlight">
  <div class="c-panel__content">
    <p>Atmospheric chemist Professor Alastair Lewis argues that clean air should be the engine of economic growth in <a href="https://en.wikipedia.org/wiki/China">China</a>, rather than the brake.</p>
  </div>
</div>

A compact panel can be used in places where space is at a premium:

Atmospheric chemist Professor Alastair Lewis argues that clean air should be the engine of economic growth in China, rather than the brake.

<div class="c-panel c-panel--compact">
  <div class="c-panel__content">
    <p>Atmospheric chemist Professor Alastair Lewis argues that clean air should be the engine of economic growth in China, rather than the brake.</p>
  </div>
</div>

You can have a header:

Air pollution clouds economic growth in China

Atmospheric chemist Professor Alastair Lewis argues that clean air should be the engine of economic growth in China, rather than the brake.

<div class="c-panel ">
  <div class="c-panel__header">
    <h5>Air pollution clouds economic growth in China</h5>
  </div>
  <div class="c-panel__content">
    <p>Atmospheric chemist Professor Alastair Lewis argues that clean air should be the engine of economic growth in China, rather than the brake.</p>
  </div>
</div>

And an image:

Air pollution clouds economic growth in China

Atmospheric chemist Professor Alastair Lewis argues that clean air should be the engine of economic growth in China, rather than the brake.

<div class="c-panel ">
  <div class="c-panel__header">
    <h5>Air pollution clouds economic growth in China</h5>
  </div>
  <div class="c-panel__image">
    <img src="https://picsum.photos/800/400?image=962" alt="">
  </div>
  <div class="c-panel__content">
    <p>Atmospheric chemist Professor Alastair Lewis argues that clean air should be the engine of economic growth in China, rather than the brake.</p>
  </div>
</div>

Or a subheader, under the image:

How the Chinese could improve the quality of the air they breathe

Atmospheric chemist Professor Alastair Lewis argues that clean air should be the engine of economic growth in China, rather than the brake.

<div class="c-panel ">
  <div class="c-panel__image">
    <img src="https://picsum.photos/800/400?image=962" alt="">
  </div>
  <div class="c-panel__subheader">
    <h6>How the Chinese could improve the quality of the air they breathe</h6>
  </div>
  <div class="c-panel__content">
    <p>Atmospheric chemist Professor Alastair Lewis argues that clean air should be the engine of economic growth in China, rather than the brake.</p>
  </div>
</div>

And a footer:

Air pollution clouds economic growth in China

Atmospheric chemist Professor Alastair Lewis argues that clean air should be the engine of economic growth in China, rather than the brake.

<div class="c-panel ">
  <div class="c-panel__header">
    <h5>Air pollution clouds economic growth in China</h5>
  </div>
  <div class="c-panel__image">
    <img src="https://picsum.photos/800/400?image=962" alt="">
  </div>
  <div class="c-panel__content">
    <p>Atmospheric chemist Professor Alastair Lewis argues that clean air should be the engine of economic growth in China, rather than the brake.</p>
  </div>
  <div class="c-panel__footer">
    This article was first published on The Conversation website
  </div>
</div>

And here's the whole lot together:

N.B. Having a header and a subheader is pretty bad. Please avoid.

Air pollution clouds economic growth in China
How the Chinese could improve the quality of the air they breathe

Atmospheric chemist Professor Alastair Lewis argues that clean air should be the engine of economic growth in China, rather than the brake.

<div class="c-panel c-panel--default">
  <div class="c-panel__header">
    <h5>Air pollution clouds economic growth in China</h5>
  </div>
  <div class="c-panel__image">
    <img src="https://picsum.photos/800/400?image=962" alt="">
  </div>
  <div class="c-panel__subheader">
    <h6>How the Chinese could improve the quality of the air they breathe</h6>
  </div>
  <div class="c-panel__content">
    <p>Atmospheric chemist Professor Alastair Lewis argues that clean air should be the engine of economic growth in China, rather than the brake.</p>
  </div>
  <div class="c-panel__footer">
    This article was first published on The Conversation website
  </div>
</div>

A whole panel can act as a link:

Atmospheric chemist Professor Alastair Lewis argues that clean air should be the engine of economic growth in China, rather than the brake.

Read more

Atmospheric chemist Professor Alastair Lewis argues that clean air should be the engine of economic growth in China, rather than the brake.

Read more

<a href="http://www.york.ac.uk" class="c-panel c-panel--link ">
  <div class="c-panel__content">
    <p>Atmospheric chemist Professor Alastair Lewis argues that clean air should be the engine of economic growth in China, rather than the brake.</p>
    <p class="c-panel__more">Read more</p>
  </div>
</a>
<a href="http://www.york.ac.uk" class="c-panel c-panel--link c-panel--highlight">
  <div class="c-panel__content">
    <p>Atmospheric chemist Professor Alastair Lewis argues that clean air should be the engine of economic growth in China, rather than the brake.</p>
    <p class="c-panel__more">Read more</p>
  </div>
</a>

KIS widget

Lastly, there's a special panel type for displaying the KIS widget. It uses the normal panel markup but with a .c-panel--kis-widget modifier.

Unistats for this course

Options

Molecules

  • panel
    • content: text or HTML to go in the panel itself (required)
    • type: currently not in use
    • header: text or HTML to go in the panel header
    • image: URL of an image to go in the panel
    • subheader: text or HTML to go under the image (probably shouldn't be used in conjunction with header)
    • footer: text or HTML to go under the panel