Skip to content

Commit

Permalink
Add alpha/beta tag and banner page
Browse files Browse the repository at this point in the history
  • Loading branch information
ediblecode committed Jul 25, 2016
1 parent 0b177a0 commit 90977bd
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 1 deletion.
2 changes: 2 additions & 0 deletions web/server/views/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@

{{ item("Tabs", "/style-guide/tabs", "Content is separated into different panes, with only one pane viewable at a time.") }}

{{ item("Alpha/beta", "/style-guide/alpha-beta", "Phase tags and banner to denote alpha and beta services") }}

</div>
</div>

Expand Down
11 changes: 10 additions & 1 deletion web/server/views/style-guide/_style-guide-layout.njk
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,22 @@
{% block sidebar %}

<nav>
<h5>
<a href="/style-guide/">Style guide</a>
</h5>
<ul>
<li><a href="/style-guide/">Style guide</a></li>
<li><a href="/style-guide/grid">Grid</a></li>
<li><a href="/style-guide/typography">Typography</a></li>
<li><a href="/style-guide/buttons">Buttons</a></li>
<li><a href="/style-guide/colour">Colour</a></li>
</ul>
<h5>
<a href="/style-guide/">UI Components</a>
</h5>
<ul>
<li><a href="/style-guide/breadcrumbs">Breadcrumbs</a></li>
<li><a href="/style-guide/alpha-beta">Alpha/beta</a></li>
</ul>
</nav>

{% endblock %}
73 changes: 73 additions & 0 deletions web/server/views/style-guide/alpha-beta.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
{% extends "./_style-guide-layout.njk" %}
{% set title = "Alpha and beta" %}

{% block main %}

<h1>Alpha &amp; beta phases</h1>

<nav>
<ul>
<li><a href="#phase-tag">Phase tag</a></li>
<li><a href="#phase-banner">Phase banner</a></li>
</ul>
</nav>

<section id="phase-tag">
<h2>Phase tag</h2>

{% example -%}
<p>
Phase tags can be used on their own like this:
<strong class="phase-tag phase-tag--alpha">ALPHA</strong>
</p>
<p>
Or anywhere else, e.g. a list
</p>
<ul>
<li>
An alpha service <strong class="phase-tag phase-tag--alpha">ALPHA</strong>
</li>
<li>
A beta service <strong class="phase-tag phase-tag--beta">BETA</strong>
</li>
</ul>

{%- endexample %}
</section>

<section id="phase-banner">
<h2>Phase banner</h2>

<ul>
<li>Phase banners combine phase tags into a layout</li>
<li>Phase banners should be prominent at the top a service</li>
</ul>

<h3>Alpha</h3>

{% example -%}
<p class="phase-banner">
<span class="phase-banner__tag">
<strong class="phase-tag phase-tag--alpha">ALPHA</strong>
</span>
<span class="phase-banner__label">
NICE Experience is in development. This means there it isn't feature complete and there will be issues. Find any? Please, let us know!
</span>
</p>
{%- endexample %}

<h3>Beta</h3>

{% example -%}
<p class="phase-banner">
<span class="phase-banner__tag">
<strong class="phase-tag phase-tag--beta">BETA</strong>
</span>
<span class="phase-banner__label">
HDAS2 is in Beta
</span>
</p>
{%- endexample %}
</section>

{% endblock %}

0 comments on commit 90977bd

Please sign in to comment.