Skip to content

Commit 2e881eb

Browse files
author
shleewhite
committed
feat: reorder nav items and cards
1 parent d4bd8c9 commit 2e881eb

File tree

3 files changed

+20
-19
lines changed

3 files changed

+20
-19
lines changed

Diff for: website/app/components/doc/page/header/index.hbs

+4-3
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@
1010
</LinkTo>
1111
<nav class="doc-page-header__nav-menu" aria-label="primary navigation" id="primary-navigation">
1212
<ul role="list" aria-labelledby="primary-navigation">
13-
<Doc::Page::Header::NavItem @label="Components" @route="components" @currentTopRoute={{@currentTopRoute}} />
13+
<Doc::Page::Header::NavItem @label="About" @route="about" @currentTopRoute={{@currentTopRoute}} />
1414
<Doc::Page::Header::NavItem @label="Foundations" @route="foundations" @currentTopRoute={{@currentTopRoute}} />
15-
<Doc::Page::Header::NavItem @label="Patterns" @route="patterns" @currentTopRoute={{@currentTopRoute}} />
1615
<Doc::Page::Header::NavItem @label="Content" @route="content" @currentTopRoute={{@currentTopRoute}} />
17-
<Doc::Page::Header::NavItem @label="About" @route="about" @currentTopRoute={{@currentTopRoute}} />
16+
<Doc::Page::Header::NavItem @label="Components" @route="components" @currentTopRoute={{@currentTopRoute}} />
17+
<Doc::Page::Header::NavItem @label="Patterns" @route="patterns" @currentTopRoute={{@currentTopRoute}} />
18+
1819
<li class="doc-page-header__nav-item-generic doc-page-header__nav-item--split">
1920
<div class="sr-only" id="search-button">This button opens a dialog containing an input field and some additional
2021
information that you may wish to explore. An automatic search will be performed as you type text into the

Diff for: website/app/components/doc/page/sidebar.hbs

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@
1111
<div class="doc-table-of-contents__heading">Main categories</div>
1212
</li>
1313
<li class="doc-table-of-contents__item doc-table-of-contents__item--depth-2">
14-
<LinkTo class="doc-table-of-contents__link" @route="components">Components</LinkTo>
14+
<LinkTo class="doc-table-of-contents__link" @route="about">About</LinkTo>
1515
</li>
1616
<li class="doc-table-of-contents__item doc-table-of-contents__item--depth-2">
1717
<LinkTo class="doc-table-of-contents__link" @route="foundations">Foundations</LinkTo>
1818
</li>
1919
<li class="doc-table-of-contents__item doc-table-of-contents__item--depth-2">
20-
<LinkTo class="doc-table-of-contents__link" @route="patterns">Patterns</LinkTo>
20+
<LinkTo class="doc-table-of-contents__link" @route="content">Content</LinkTo>
2121
</li>
2222
<li class="doc-table-of-contents__item doc-table-of-contents__item--depth-2">
23-
<LinkTo class="doc-table-of-contents__link" @route="content">Content</LinkTo>
23+
<LinkTo class="doc-table-of-contents__link" @route="components">Components</LinkTo>
2424
</li>
2525
<li class="doc-table-of-contents__item doc-table-of-contents__item--depth-2">
26-
<LinkTo class="doc-table-of-contents__link" @route="about">About</LinkTo>
26+
<LinkTo class="doc-table-of-contents__link" @route="patterns">Patterns</LinkTo>
2727
</li>
2828
<li class="doc-table-of-contents__item doc-table-of-contents__item--depth-2">
2929
<LinkTo class="doc-table-of-contents__link" @route="show" @model="about/support">Support</LinkTo>

Diff for: website/app/controllers/index.js

+12-12
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,29 @@ import Controller from '@ember/controller';
77

88
export default class IndexController extends Controller {
99
cards = [
10-
{
11-
title: 'Components',
12-
description:
13-
'Reusable building blocks to speed up your work and focus on your users.',
14-
route: 'components',
15-
},
1610
{
1711
title: 'Foundations',
1812
description:
1913
'Design decisions and guidance for colors, icons, typography, and more.',
2014
route: 'foundations',
2115
},
22-
{
23-
title: 'Patterns',
24-
description:
25-
'Guidelines and best practices for consistent and scalable interfaces.',
26-
route: 'patterns',
27-
},
2816
{
2917
title: 'Content',
3018
description:
3119
'Structured guidelines on tone and voice, user communication and more.',
3220
route: 'content',
3321
},
22+
{
23+
title: 'Components',
24+
description:
25+
'Reusable building blocks to speed up your work and focus on your users.',
26+
route: 'components',
27+
},
28+
{
29+
title: 'Patterns',
30+
description:
31+
'Guidelines and best practices for consistent and scalable interfaces.',
32+
route: 'patterns',
33+
},
3434
];
3535
}

0 commit comments

Comments
 (0)