-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Primary navigation: Improve documentation
- Add section on how it works - How to incorporate below header - How to incorporate below phase banner - Add section on research and usage
- Loading branch information
1 parent
e1e63fd
commit fb84df2
Showing
4 changed files
with
122 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
eleventyExcludeFromCollections: true | ||
layout: example-full-width.njk | ||
title: Primary navigation example below header | ||
--- | ||
<style> | ||
.app-header--full-width-border { | ||
border-bottom: 10px solid #2188aa; | ||
} | ||
</style> | ||
|
||
{% from "govuk/components/header/macro.njk" import govukHeader %} | ||
{{ govukHeader({ | ||
classes: "app-header--full-width-border" | ||
}) }} | ||
|
||
{% from "x-govuk/components/primary-navigation/macro.njk" import xGovukPrimaryNavigation %} | ||
{{ xGovukPrimaryNavigation({ | ||
visuallyHiddenTitle: "Navigation", | ||
items: [{ | ||
text: "Home", | ||
href: "#", | ||
current: true | ||
}, { | ||
text: "Support", | ||
href: "#" | ||
}, { | ||
text: "Features", | ||
href: "#" | ||
}, { | ||
text: "Pricing", | ||
href: "#" | ||
}, { | ||
text: "Contact us", | ||
href: "#" | ||
}] | ||
}) }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
--- | ||
eleventyExcludeFromCollections: true | ||
layout: example-full-width.njk | ||
title: Primary navigation example below phase banner | ||
--- | ||
<style> | ||
.app-header--full-width-border { | ||
border-bottom: 10px solid #2188aa; | ||
} | ||
.app-phase-banner--no-border { | ||
border-bottom: none; | ||
} | ||
</style> | ||
|
||
{% from "govuk/components/header/macro.njk" import govukHeader %} | ||
{{ govukHeader({ | ||
classes: "app-header--full-width-border" | ||
}) }} | ||
|
||
{% from "govuk/components/phase-banner/macro.njk" import govukPhaseBanner %} | ||
{{ govukPhaseBanner({ | ||
classes: "app-phase-banner--no-border govuk-width-container", | ||
tag: { | ||
text: "Alpha" | ||
}, | ||
html: 'This is a new service – your <a class="govuk-link" href="#">feedback</a> will help us to improve it.' | ||
}) }} | ||
|
||
{% from "x-govuk/components/primary-navigation/macro.njk" import xGovukPrimaryNavigation %} | ||
{{ xGovukPrimaryNavigation({ | ||
visuallyHiddenTitle: "Navigation", | ||
items: [{ | ||
text: "Home", | ||
href: "#", | ||
current: true | ||
}, { | ||
text: "Support", | ||
href: "#" | ||
}, { | ||
text: "Features", | ||
href: "#" | ||
}, { | ||
text: "Pricing", | ||
href: "#" | ||
}, { | ||
text: "Contact us", | ||
href: "#" | ||
}] | ||
}) }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters