-
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.
- Add section on how it works - How to incorporate below header - How to incorporate below primary navigation - Add section on research and usage
- Loading branch information
1 parent
136b431
commit faa4b2d
Showing
4 changed files
with
137 additions
and
2 deletions.
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,29 @@ | ||
--- | ||
eleventyExcludeFromCollections: true | ||
layout: example-full-width.njk | ||
title: Masthead example below header | ||
--- | ||
<style> | ||
.app-header--no-border { | ||
border-bottom: 0; | ||
} | ||
</style> | ||
|
||
{% from "govuk/components/header/macro.njk" import govukHeader %} | ||
{{ govukHeader({ | ||
classes: "app-header--no-border" | ||
}) }} | ||
|
||
{% from "x-govuk/components/masthead/macro.njk" import xGovukMasthead %} | ||
{{ xGovukMasthead({ | ||
classes: "x-govuk-masthead--large", | ||
title: { | ||
text: "Design your service using GOV.UK styles, components and patterns" | ||
}, | ||
description: { | ||
text: "Use this design system to make your service consistent with GOV.UK. Learn from the research and experience of other service teams and avoid repeating work that’s already been done." | ||
}, | ||
startButton: { | ||
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,51 @@ | ||
--- | ||
eleventyExcludeFromCollections: true | ||
layout: example-full-width.njk | ||
title: Masthead example below primary navigation | ||
--- | ||
<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: "#" | ||
}] | ||
}) }} | ||
|
||
{% from "x-govuk/components/masthead/macro.njk" import xGovukMasthead %} | ||
{{ xGovukMasthead({ | ||
classes: "x-govuk-masthead--large", | ||
title: { | ||
text: "Design your service using GOV.UK styles, components and patterns" | ||
}, | ||
description: { | ||
text: "Use this design system to make your service consistent with GOV.UK. Learn from the research and experience of other service teams and avoid repeating work that’s already been done." | ||
}, | ||
startButton: { | ||
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