0.4.0 • Published 2 years ago
@hods/page v0.4.0
HODS - Page
HODS' page component.
Using this package
First install the package into your project:
npm install -S @hods/page
Then use it in your code as follows:
import React, { createElement as h } from 'react';
import Page from '@hods/page';
export const MyComponent = props => (
<Page
accountHref="#/my-account"
title="Service name"
signOutHref="#/auth/sign-out"
username="User name"
navigation={[
{ href: '/styles', text: 'Styles', active: true },
{ href: '/components', text: 'Components' },
{ href: '/patterns', text: 'Patterns' },
{ href: '/resources', text: 'Resources' },
{ href: '/get-involved', text: 'Get involved' }
]}
footerNavigation={[
{ href: '/feedback', text: 'Feedback' },
{ href: '/help', text: 'Help' },
{ href: 'https://gov.uk/', text: 'Gov.UK home' }
]}
>
<h1>Default page template</h1>
<p>The header inspires trust with the department logo, while the service name helps users understand which service they are using.</p>
<p>The footer includes information about the department with relevant links. White background helps to clearly section the main content area.</p>
</Page>
);
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
0.4.0
2 years ago
0.3.6
3 years ago
0.3.7
3 years ago
0.3.0
3 years ago
0.3.5
3 years ago
0.3.2
3 years ago
0.3.1
3 years ago
0.3.4
3 years ago
0.3.3
3 years ago
0.2.1
3 years ago
0.2.0
3 years ago
0.1.20
4 years ago
0.1.19
4 years ago
0.1.17
4 years ago
0.1.18
4 years ago
0.1.16
4 years ago
0.1.11
4 years ago
0.1.12
4 years ago
0.1.13
4 years ago
0.1.14
4 years ago
0.1.15
4 years ago
0.1.10
4 years ago
0.1.9
4 years ago
0.1.8
5 years ago
0.1.7
5 years ago
0.1.4
5 years ago
0.1.6
5 years ago
0.1.5
5 years ago
0.1.3
5 years ago
0.1.2
5 years ago
0.1.1
5 years ago
0.1.0
5 years ago