Skip to content

Commit

Permalink
Update full page examples with footer
Browse files Browse the repository at this point in the history
This commit updates the announcement example to fix the footer
layout to a two-thirds/one-third layout as it was before, using the
new `width` macro option.

This commit updates the campaign page example. It builds a footer based on
the example screenshot from #1726
  • Loading branch information
Vanita Barrett committed Dec 8, 2021
1 parent 1d6baef commit ed765a9
Show file tree
Hide file tree
Showing 2 changed files with 148 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/views/full-page-examples/announcements/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ notes: Based on https://www.gov.uk/government/news/strictly-vampires-and-sausage
navigation: [
{
title: "Services and information",
width: "two-thirds",
columns: 2,
items: [
{
Expand Down Expand Up @@ -227,6 +228,7 @@ notes: Based on https://www.gov.uk/government/news/strictly-vampires-and-sausage
},
{
title: "Departments and policy",
width: "one-third",
items: [
{
href: "#",
Expand Down
146 changes: 146 additions & 0 deletions app/views/full-page-examples/campaign-page/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ notes: >-
{% from "header/macro.njk" import govukHeader %}
{% from "breadcrumbs/macro.njk" import govukBreadcrumbs %}
{% from "accordion/macro.njk" import govukAccordion %}
{% from "footer/macro.njk" import govukFooter %}

{% set pageTitle = "Coronavirus (COVID‑19)" %}
{% block pageTitle %}{{ pageTitle }} - GOV.UK{% endblock %}
Expand Down Expand Up @@ -230,3 +231,148 @@ notes: >-
</div>
</div>
{% endblock %}

{% block footer %}


{{ govukFooter({
navigation: [
{
title: "Coronavirus (COVID-19)",
width: "two-thirds",
columns: 2,
items: [
{
href: "#",
text: "Coronavirus (COVID-19): guidance and support"
},
{
href: "#",
text: "Another link"
},
{
href: "#",
text: "Another link"
},
{
href: "#4",
text: "Another link"
}
]
},
{
title: "Services and Information",
width: "two-thirds",
columns: 2,
items: [
{
href: "#",
text: "Benefits"
},
{
href: "#",
text: "Births, deaths and marriages"
},
{
href: "#",
text: "Business and self-employed"
},
{
href: "#",
text: "Childcare and parenting"
},
{
href: "#",
text: "Citizenship and living in the UK"
},
{
href: "#",
text: "Crime, justice and the law"
},
{
href: "#",
text: "Disabled people"
},
{
href: "#",
text: "Driving and transport"
},
{
href: "#",
text: "Education and learning"
},
{
href: "#",
text: "Employing people"
},
{
href: "#",
text: "Environment and countryside"
},
{
href: "#",
text: "Housing and local services"
},
{
href: "#",
text: "Money and tax"
},
{
href: "#",
text: "Passports and living abroad"
},
{
href: "#",
text: "Visas and immigration"
},
{
href: "#",
text: "Working, jobs and pensions"
}
]
},
{
title: "Departments and policy",
width: "one-third",
items: [
{
href: "#",
text: "How government works"
},
{
href: "#",
text: "Departments"
},
{
href: "#",
text: "Worldwide"
},
{
href: "#",
text: "Services"
},
{
href: "#",
text: "Guidance and regulation"
},
{
href: "#",
text: "News and communications"
},
{
href: "#",
text: "Research and statistics"
},
{
href: "#",
text: "Policy papers and consultations"
},
{
href: "#",
text: "Transparency and freedom of information releases"
}
]
}
]
}) }}
{% endblock %}

0 comments on commit ed765a9

Please sign in to comment.