-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Page for switching from GOV.UK prototype kit #26
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
f7b274c
Page for switching from GOV.UK prototype kit
vickytnz 8083579
changed to dos and don'ts
vickytnz 60f1d19
Update app/views/how-tos/switching-from-govuk-prototype-kit.html
vickytnz 0d84621
Update app/views/how-tos/switching-from-govuk-prototype-kit.html
vickytnz ee28703
Update app/views/how-tos/switching-from-govuk-prototype-kit.html
vickytnz d39e5da
Update app/views/how-tos/switching-from-govuk-prototype-kit.html
vickytnz 3d60477
Update app/views/how-tos/switching-from-govuk-prototype-kit.html
vickytnz 11ce5e8
Update app/views/how-tos/switching-from-govuk-prototype-kit.html
vickytnz 4b61e14
Update app/views/how-tos/switching-from-govuk-prototype-kit.html
vickytnz 6df5a2f
Update app/views/how-tos/switching-from-govuk-prototype-kit.html
vickytnz 12186f6
Update app/views/how-tos/switching-from-govuk-prototype-kit.html
vickytnz c23e365
changes based on Frankie's comments
vickytnz eb039c9
Merge branch 'main' into govuk-prototype-kit-changes
frankieroberto File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
120 changes: 120 additions & 0 deletions
120
app/views/how-tos/switching-from-govuk-prototype-kit.html
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,120 @@ | ||
{% extends 'layout.html' %} | ||
|
||
{% block pageTitle %} | ||
Switching from the GOV.UK prototype kit - NHS.UK prototype kit | ||
{% endblock %} | ||
|
||
{% block beforeContent %} | ||
{% include "how-tos/includes/breadcrumb.html" %} | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<div class="nhsuk-grid-row"> | ||
|
||
<div class="nhsuk-grid-column-two-thirds"> | ||
|
||
<h1 class="nhsuk-heading-xl"> | ||
Switching from the GOV.UK prototype kit | ||
</h1> | ||
|
||
|
||
<p> | ||
If you have learned how to use the <a href="https://prototype-kit.service.gov.uk/docs/">GOV.UK Prototype Kit</a>, you will be able to use the NHS.UK prototype kit. This is because the two prototype kits are built in the same way. However, you must do some things differently. | ||
</p> | ||
<h2 class="nhsuk-heading-m">Installing and running the NHS.UK prototype kit</h2> | ||
|
||
<p> | ||
When you are installing and running your prototype: | ||
|
||
{{ list({ | ||
title: "Do", | ||
type: "tick", | ||
items: [ | ||
{ | ||
item: '<a href="/install/download-zip">download the kit using the zip file or Github</a>' | ||
}, | ||
{ | ||
item: 'check when you install your prototype that you are using the right version of Node.js - you may need to install and use a different version. If you need to make prototypes for both NHS.UK and GOV.UK you can switch versions of node with a <a href="https://github.com/nvm-sh/nvm">node version manager</a>' | ||
}, | ||
{ | ||
item: 'start your local server by entering in the terminal: <pre class="app-pre"><code class="language-markup">npm run watch</code></pre> ' | ||
} | ||
] | ||
}) }} | ||
|
||
{{ list({ | ||
title: "Don’t", | ||
type: "cross", | ||
items: [ | ||
{ | ||
item: 'try to install the prototype kit using the terminal as it will not work' | ||
}, | ||
{ | ||
item: 'start your local server the same way as in the GOV.UK Prototype Kit as it will not work' | ||
} | ||
] | ||
}) }} | ||
|
||
|
||
|
||
<h2>Making pages</h2> | ||
|
||
<p> | ||
When you are making pages: | ||
</p> | ||
|
||
{{ list({ | ||
title: "Do", | ||
type: "tick", | ||
items: [ | ||
{ | ||
item: 'use the NHS.UK design system for <a href="https://service-manual.nhs.uk/design-system/styles">styles</a>, <a href="https://service-manual.nhs.uk/design-system/components">components</a> and <a href="https://service-manual.nhs.uk/design-system/patterns">patterns</a> - you can also copy <a href="/page-templates">template pages in the NHS prototype kit</a>' | ||
}, | ||
{ | ||
item: 'use <a href="https://service-manual.nhs.uk/design-system">NHS.UK macro naming conventions</a> which do not have a prefix, for example <code class="language-markup">{{ radios }}</code> instead of <code class="language-markup">{{ govukRadios }}</code>' | ||
}, | ||
{ | ||
item: 'use <a href="https://service-manual.nhs.uk/design-system/styles/typography">NHS.UK typography classes</a> on headings and other text, for example <pre class="app-pre"><code class="language-markup">' + '<p class="nhsuk-body">nhsuk-body</p>' | escape + '</code></pre>' | ||
}, | ||
{ | ||
item: 'know that the NHS.UK prototype kit does not have some functionality that is in the GOV.UK one, for example the interface to create pages from templates' | ||
}, | ||
{ | ||
item: 'know that plugins designed for the GOV.UK Prototype Kit may not work or may need to be installed differently - for example, if you want to use the <a href="https://x-govuk.github.io/govuk-prototype-filters/get-started/">GOV.UK Prototype Kit Filters plugin</a> you must use instructions for earlier versions of the kit and make changes in <code class="language-markup">filters.js</code>.' | ||
} | ||
] | ||
}) }} | ||
|
||
{{ list({ | ||
title: "Don’t", | ||
type: "cross", | ||
items: [ | ||
{ | ||
item: 'copy pages from the GOV.UK design system or GOV.UK prototype kit and expect them to work - you may need to copy over extra code like CSS to make them work properly' | ||
}, | ||
{ | ||
item: 'use GOV.UK macro naming conventions as they will not work' | ||
}, | ||
{ | ||
item: 'use GOV.UK typography classes as they will not work' | ||
} | ||
] | ||
}) }} | ||
<h2 class="nhsuk-heading-m">Using routing and session data</h2> | ||
|
||
vickytnz marked this conversation as resolved.
Show resolved
Hide resolved
|
||
<p>You can define routes to do branching logic or other custom behaviour in the same way as the GOV.UK Prototype Kit.</p> | ||
|
||
<p>You can also add default session data in <code class="language-markup">data/session-data-defaults.js</code></p> | ||
|
||
<p>Unlike the GOV.UK Prototype Kit, if you save any changes the the routes file, the app will restart and any session data will revert to the default.</p> | ||
|
||
<h2>Help and support</h2> | ||
|
||
<p>If you have any problems, ask a developer on your team (if you have one), <a href="mailto:[email protected]?subject=NHS.UK prototype kit - Updating the kit">email us</a> or get in touch on the <a href="https://nhs-service-manual.slack.com/messages/CFYL2GDGW" rel="nofollow">NHS digital service manual #prototype-kit Slack channel</a>.</p> | ||
|
||
{% include "how-tos/includes/back-button.html" %} | ||
|
||
</div> | ||
|
||
</div> | ||
{% endblock %} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.