Soracom

Design System
  1. Home
  2. Design system
  3. Elements
  4. Banner

Banner

Options

Basic usage

html
Copy
<header class="ds-banner">
  <h2>Title</h2>
</header>
html
Copy
<header class="ds-banner">
  <i class="ds-icon --icon-deactivate-sim"></i>
  <h2 class="__title">Title</h2>
</header>
html
Copy
<header class="ds-banner">
  <i class="ds-icon --icon-deactivate-sim"></i>
  <div>
    <h2>Event List</h2>
    <p>This event handler UI is full featured, advanced UI for handling events and actions. In this screen you can view all of the events and event details.</p>
  </div>
</header>
html
Copy
<header class="ds-banner">
  <i class="ds-icon --icon-deactivate-sim"></i>
  <div>
    <h2>Event List</h2>
    <p>This event handler UI is full featured, advanced UI for handling events and actions.</p>
  </div>
</header>
html
Copy
<header class="ds-banner">
  <i class="ds-icon --icon-deactivate-sim"></i>
  <div>
    <h3>Event List</h3>
    <p>This event handler UI is full featured, advanced UI for handling events and actions.</p>
  </div>
</header>
html
Copy
<header class="ds-banner">
  <i class="ds-icon --icon-deactivate-sim"></i>
  <div>
    <h3>Event List</h3>
    <p>This event handler UI is full featured, advanced UI for handling events and actions. In this screen you can view all of the events and event details.</p>
  </div>
</header>

Visual states

html
Copy
<header class="ds-banner --alert">
  <i class="ds-icon --icon-deactivate-sim"></i>
  <div>
    <h2>Event List</h2>
    <p>This event handler UI is full featured, advanced UI for handling events and actions. In this screen you can view all of the events and event details.</p>
  </div>
</header>

Component colors

html
Copy
<header class="ds-banner --color-magenta">
  <i class="ds-icon --icon-deactivate-sim"></i>
  <div>
    <h2>Event List</h2>
    <p>This event handler UI is full featured, advanced UI for handling events and actions. In this screen you can view all of the events and event details.</p>
  </div>
</header>

Indent

Small

html
Copy
<header class="ds-banner --indent-small">
  <i class="ds-icon --icon-deactivate-sim"></i>
  <div>
    <h2>Event List</h2>
    <p>This event handler UI is full featured, advanced UI for handling events and actions. In this screen you can view all of the events and event details.</p>
  </div>
</header>

Large

html
Copy
<header class="ds-banner --indent-large">
  <i class="ds-icon --icon-deactivate-sim"></i>
  <div>
    <h2>Event List</h2>
    <p>This event handler UI is full featured, advanced UI for handling events and actions. In this screen you can view all of the events and event details.</p>
  </div>
</header>

Styles

Strong

html
Copy
<header class="ds-banner --strong --color-ink-darker">
  <i class="ds-icon --icon-deactivate-sim"></i>
  <div>
    <h2>Event List</h2>
    <p>This event handler UI is full featured, advanced UI for handling events and actions. In this screen you can view all of the events and event details.</p>
  </div>
</header>

Plain

html
Copy
<header class="ds-banner --plain">
  <i class="ds-icon --icon-deactivate-sim"></i>
  <div>
    <h2>Event List</h2>
    <p>This event handler UI is full featured, advanced UI for handling events and actions. In this screen you can view all of the events and event details.</p>
  </div>
</header>

To make the banner clickable, the following structure can be used:

Hover over the banner to see the hover state changes

html
Copy
<a class="ds-banner --plain --indent-small" href="#links">
  <i class="ds-icon --xlarge --color-celeste --icon-soracom-beam"></i>
  <div>
    <h4 class="ds-heading --xsmall-bold">Automatically Encrypt Traffic</h4>
    <h5 class="ds-heading --xxsmall">With SORACOM Beam</h5>
    <p class="ds-text --label --xxsmall">~5 mins</p>
  </div>
</a>

Clickable banner with target to open in a new window

html
Copy
<a class="ds-banner --plain --indent-small" target="_blank" href="#links">
  <i class="ds-icon --xlarge --color-celeste --icon-soracom-beam"></i>
  <div>
    <h4 class="ds-heading --xsmall-bold">Automatically Encrypt Traffic</h4>
    <h5 class="ds-heading --xxsmall">With SORACOM Beam</h5>
    <p class="ds-text --label --xxsmall">~5 mins</p>
  </div>
</a>

Examples

Website banner

html
Copy
<header class="ds-banner --strong --color-gray-darker --indent-large">
  <div>
    <p class="ds-text --label --small --color-celeste">Helping developers and innovators</p>
    <h1 class="ds-heading --huge-bold">Creating an IoT Application</h1>
    <p class="ds-text --xlarge">Soracom allows technical innovators to build IoT applications that transmit and visualize data quickly – whether they integrate with AWS, Azure, or Google Cloud Platform, or not.</p>
  </div>
  <img src="https://assets.soracom.io/images/frame-2.svg" width="300px" height="300px" />
</header>
html
Copy
<header class="ds-banner  --indent-small">
  <div>
    <p class="ds-text --label">AWS IoT</p>
  </div>
  <button class="ds-button --plain --icon-edit --hide-label">
    <span>Edit</span>
  </button>
  <button class="ds-button --plain --icon-delete --hide-label">
    <span>Delete</span>
  </button>
</header>