Skip to content

Commit

Permalink
Update empty state 404 documentation example to match new branding (#…
Browse files Browse the repository at this point in the history
…5079)

* make empty state docs consistent with c.com 404
  • Loading branch information
jmuzina committed May 7, 2024
1 parent e4b81ad commit e6d414d
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 14 deletions.
5 changes: 3 additions & 2 deletions scss/standalone/patterns_empty-state.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@
@include vf-p-icon-search;
@include vf-u-layout;

// dependencies for user action triggered empty state example
@include vf-u-vertically-center;
// Dependencies for error management empty state example
@include vf-u-hide;
@include vf-p-section;
20 changes: 11 additions & 9 deletions templates/docs/examples/patterns/empty-state/error-management.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,19 @@
{% block standalone_css %}patterns_empty-state{% endblock %}

{% block content %}
<section class="p-strip">
<div class="row">
<div class="col-6 col-medium-3 u-vertically-center u-align--center">
<img src="https://assets.ubuntu.com/v1/03c7318e-image-404.svg" alt="Page not found" width="360" height="365">
<section class="p-section--hero">
<div class="row--25-75">
<div class="col u-hide--small">
<p class="p-heading--1">404</p>
</div>
<div class="col-6 col-medium-3 u-vertically-center">
<div>
<h1>404: Page not found</h1>
<p class="p-heading--4">Sorry, we couldn’t find that page.</p>
</div>
<div class="col">
<h1><span class="u-hide--medium u-hide--large">404: </span>Page not found</h1>
<p class="p-heading--2">
We can't find the page you're looking for.
</p>
</div>
</div>
</section>
{% endblock %}


8 changes: 5 additions & 3 deletions templates/docs/patterns/empty-state.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ To import either or all of these components into your project, copy the snippets
@import 'vanilla-framework';
@include vf-base;

// dependencies for the no content empty state example
// dependencies for no content empty state example
@include vf-p-headings;
@include vf-p-grid;
@include vf-u-align;
@include vf-p-buttons;
Expand All @@ -56,8 +57,9 @@ To import either or all of these components into your project, copy the snippets
@include vf-p-icon-search;
@include vf-u-layout;

// dependencies for user action triggered empty state example
@include vf-u-vertically-center;
// Dependencies for error management empty state example
@include vf-u-hide;
@include vf-p-section;
```

For more information see [Customising Vanilla](/docs/customising-vanilla/) in your projects, which includes overrides and importing instructions.

0 comments on commit e6d414d

Please sign in to comment.