mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-06 01:38:24 -04:00
Add a new pattern for sub-navigation
This is like the ‘pill’ pattern that we use for filtering lists of notifications. However it is meant for navigating between discrete things, not a filtered view of the same list. This is why is has a gutter between each item, and no selected state. Turns out we already had a pattern about this on the dashboard, so this commit also changes the dashboard to use the same code.
This commit is contained in:
@@ -55,3 +55,26 @@
|
|||||||
color: $text-colour;
|
color: $text-colour;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.pill-separate {
|
||||||
|
|
||||||
|
&-item {
|
||||||
|
|
||||||
|
display: block;
|
||||||
|
text-align: left;
|
||||||
|
padding: 10px $gutter-half;
|
||||||
|
|
||||||
|
&:link,
|
||||||
|
&:visited {
|
||||||
|
background: $link-colour;
|
||||||
|
color: $white;
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: $light-blue-25;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|||||||
@@ -8,11 +8,17 @@
|
|||||||
|
|
||||||
{% block maincolumn_content %}
|
{% block maincolumn_content %}
|
||||||
|
|
||||||
<h1 class="heading-large">
|
<h1 class="heading-large bottom-gutter">
|
||||||
API integration
|
API integration
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<a href="{{ url_for('.api_keys', service_id=current_service.id) }}">API keys</a>
|
<nav class="grid-row">
|
||||||
<a href="{{ url_for('.api_documentation', service_id=current_service.id) }}">Documentation</a>
|
<div class="column-half">
|
||||||
|
<a class="pill-separate-item" href="{{ url_for('.api_keys', service_id=current_service.id) }}">API keys</a>
|
||||||
|
</div>
|
||||||
|
<div class="column-half">
|
||||||
|
<a class="pill-separate-item" href="{{ url_for('.api_documentation', service_id=current_service.id) }}">Documentation</a>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -1,16 +1,10 @@
|
|||||||
{% from "components/banner.html" import banner_wrapper %}
|
|
||||||
|
|
||||||
<h2 class="heading-medium">Get started</h2>
|
<h2 class="heading-medium">Get started</h2>
|
||||||
|
|
||||||
<nav class="grid-row">
|
<nav class="grid-row">
|
||||||
<div class="column-half">
|
<div class="column-half">
|
||||||
{% call banner_wrapper(type="mode") %}
|
<a class="pill-separate-item" href="{{ url_for('.choose_template', service_id=current_service.id, template_type='email') }}">Write an email</a>
|
||||||
<a href="{{ url_for('.choose_template', service_id=current_service.id, template_type='email') }}">Write an email
|
</div>
|
||||||
{% endcall %}
|
<div class="column-half">
|
||||||
</div>
|
<a class="pill-separate-item" href="{{ url_for('.choose_template', service_id=current_service.id, template_type='sms') }}">Write a text message</a>
|
||||||
<div class="column-half">
|
</div>
|
||||||
{% call banner_wrapper(type="mode") %}
|
</nav>
|
||||||
<a href="{{ url_for('.choose_template', service_id=current_service.id, template_type='sms') }}">Write a text message</a>
|
|
||||||
{% endcall %}
|
|
||||||
</div>
|
|
||||||
</nav>
|
|
||||||
|
|||||||
Reference in New Issue
Block a user