-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2c3cd0e
commit 89a35e4
Showing
5 changed files
with
54 additions
and
0 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
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,7 @@ | ||
module.exports = { | ||
pageTitle: 'Cookie policy', | ||
breadcrumbs: { | ||
'dashboard': 'Home', | ||
'cookies': 'Cookie policy' | ||
} | ||
}; |
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,18 @@ | ||
const page = require('../../page'); | ||
|
||
module.exports = settings => { | ||
const app = page({ | ||
...settings, | ||
root: __dirname | ||
}); | ||
|
||
app.use((req, res, next) => { | ||
req.breadcrumb('dashboard'); | ||
req.breadcrumb('cookies'); | ||
next(); | ||
}); | ||
|
||
app.get('/', (req, res) => res.sendResponse()); | ||
|
||
return app; | ||
}; |
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,24 @@ | ||
import React from 'react'; | ||
import ReactMarkdown from 'react-markdown'; | ||
|
||
const content = `# Cookies | ||
This service puts small files (known as ‘cookies’) onto your computer in order to temporarily store information you | ||
enter. The cookies we use don’t identify you personally. | ||
## Session cookies | ||
Session cookies are downloaded each time you visit the service and deleted when you close your browser. They help the | ||
service to work properly. | ||
Name | Purpose | Expires | ||
-----|---------|-------- | ||
sid | Stores a session ID and temporarily stores data you enter to enable you to use the service | After 30 minutes of inactivity`; | ||
|
||
export default () => { | ||
return ( | ||
<div className="govuk-grid-row"> | ||
<div className="govuk-grid-column-two-thirds"> | ||
<ReactMarkdown escapeHtml={false}>{ content }</ReactMarkdown> | ||
</div> | ||
</div> | ||
); | ||
}; |
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