diff --git a/src/all/_all.scss b/src/all/_all.scss index b5313b4701..bc3eb172be 100644 --- a/src/all/_all.scss +++ b/src/all/_all.scss @@ -12,6 +12,7 @@ @import "../error-summary/error-summary"; @import "../fieldset/fieldset"; @import "../file-upload/file-upload"; +@import "../footer/footer"; @import "../input/input"; @import "../label/label"; @import "../panel/panel"; diff --git a/src/footer/README.md b/src/footer/README.md new file mode 100644 index 0000000000..3081c26861 --- /dev/null +++ b/src/footer/README.md @@ -0,0 +1,247 @@ +# Footer + +## Introduction + +The footer component is used at the bottom of every GOV.UK page, to help users navigate. + +## Guidance + +Find out when to use the Footer component in your service in the [GOV.UK Design System](https://govuk-design-system-production.cloudapps.digital/components/footer). + +## Quick start examples + +### Component default + +[Preview the footer component](http://govuk-frontend-review.herokuapp.com/components/footer/preview) + +#### Markup + + + +#### Macro + + {{ govukFooter({}) }} + +## Dependencies + +To consume the footer component you must be running npm version 5 or above. + +## Installation + + npm install --save @govuk-frontend/footer + +## Requirements + +### Build tool configuration + +When compiling the Sass files you'll need to define includePaths to reference the node_modules directory. Below is a sample configuration using gulp + + .pipe(sass({ + includePaths: 'node_modules/' + })) + +### Static asset path configuration + +To show the button image you need to configure your app to show these assets. Below is a sample configuration using Express js: + + app.use('/public', express.static(path.join(__dirname, '/node_modules/@govuk-frontend/icons'))) + +## Component arguments + +If you are using Nunjucks,then macros take the following arguments + +
Name | + +Type | + +Required | + +Description | + +
---|---|---|---|
meta | + +object | + +No | + +Object containing parameters for the meta navigation | + +
meta.items[] | + +array | + +No | + +Array of items for use in the meta section of the footer | + +
navigation | + +array | + +No | + +Array of items for use in the navigation section of the footer | + +
navigation[].title | + +string | + +No | + +Title for a section | + +
navigation[].columns | + +integer | + +No | + +Amount of columns to display items in | + +
navigation[].items | + +array | + +No | + +Array of items to display in the list | + +
attributes | + +object | + +No | + +Will add attributes to the footer component root | + +
classes | + +string | + +No | + +Will add classes to the footer component root | + +
containerClasses | + +string | + +No | + +Classes that can be added to the container, useful if you want to make the footer full width. | + +