@not-govuk/page
TypeScript icon, indicating that this package has built-in type declarations

0.15.2 • Public • Published

NotGovUK - Page

A fully branded page with content sandwiched between the header and footer.

Using this package

First install the package into your project:

npm install -S @not-govuk/page

Then use it in your code as follows:

import React, { createElement as h } from 'react';
import Page from '@not-govuk/page';

export const MyComponent = props => (
  <NotGovUKPage
    breadcrumbs={[
      { href: '', text: 'Home' },
      { href: '', text: 'Passports, travel and living abroad' },
      { href: '', text: 'Travel abroad' },
    ]}
    department="home-office"
    feedbackHref="#feedback"
    footerContent={<p>Built by the <a href="https://www.gov.uk">Government Digital Service</a>.</p>}
    footerNavigation={[
      {
        title: "Services and information",
        columns: 2,
        items: [
          {
            href: "#",
            text: "Benefits"
          },
          {
            href: "#",
            text: "Births, deaths, marriages and care"
          },
          {
            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, travel and living abroad"
          },
          {
            href: "#",
            text: "Visas and immigration"
          },
          {
            href: "#",
            text: "Working, jobs and pensions"
          }
        ]
      },
      {
        title: "Departments and policy",
        items: [
          {
            href: "#",
            text: "How government works"
          },
          {
            href: "#",
            text: "Departments"
          },
          {
            href: "#",
            text: "Worldwide"
          },
          {
            href: "#",
            text: "Policies"
          },
          {
            href: "#",
            text: "Publications"
          },
          {
            href: "#",
            text: "Announcements"
          }
        ]
      }
    ]}
    meta={[
      {
        href: "#",
        text: "Help"
      },
      {
        href: "#",
        text: "Cookies"
      },
      {
        href: "#",
        text: "Contact"
      },
      {
        href: "#",
        text: "Terms and conditions"
      },
      {
        href: "#",
        text: "Rhestr o Wasanaethau Cymraeg"
      }
    ]}
    phase="alpha"
    navigation={[
      { href: '#one', text: 'One', active: true },
      { href: 'two', text: 'Two' },
      { href: 'three', text: 'Three' },
      { href: 'four', text: 'Four' }
    ]}
    organisationHref="#"
    phase="alpha"
    serviceName="Service name"
    serviceHref="#"
  >
    My page.
  </NotGovUKPage>
);

export default MyComponent;

Working on this package

Before working on this package you must install its dependencies using the following command:

pnpm install

Testing

npm test

Building

npm run build

Clean-up

npm run clean

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.15.230latest

Version History

VersionDownloads (Last 7 Days)Published
0.15.230
0.15.12
0.15.02
0.14.00
0.13.00
0.12.10
0.12.03
0.11.11
0.11.00
0.10.00
0.9.10
0.9.00
0.8.722
0.8.666
0.8.50
0.8.40
0.8.30
0.8.21
0.8.10
0.8.00
0.7.266
0.7.10
0.7.00
0.6.00
0.5.90
0.5.80
0.5.70
0.5.60
0.5.50
0.5.40
0.5.30
0.5.20
0.5.10
0.5.00
0.4.20
0.4.10
0.4.00
0.3.40
0.3.30
0.3.20
0.3.10
0.3.00
0.2.1619
0.2.150
0.2.140
0.2.130
0.2.120
0.2.110
0.2.100
0.2.90
0.2.80
0.2.70
0.2.60
0.2.50
0.2.40
0.2.30
0.2.20
0.2.10
0.2.00

Package Sidebar

Install

npm i @not-govuk/page

Weekly Downloads

212

Version

0.15.2

License

MIT

Unpacked Size

1.66 MB

Total Files

50

Last publish

Collaborators

  • daniel-ac-martin