Skip to content
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

Add start page #59

Closed
wants to merge 33 commits into from
Closed

Add start page #59

wants to merge 33 commits into from

Conversation

johnpeart
Copy link
Collaborator

Further to discussion on #49, this adds routes for a separate start and match page; with the former being the index.

Users are now presented with help text and a Start now button when starting the tool.

Note: this is a branch of #51 so they stay in sync. 6514346 is the first meaningful commit in this branch.

John Peart and others added 30 commits February 8, 2022 23:15
Essential cookies do not require user consent under the regulations, but you do still have to tell users about what cookies are used. In this case, cookies are defined as anything that stores data on the user’s device.

The GOV.UK Design System recommends adding a page for the cookies policy and linking to it from the footer; so this replicates that.
1. Wrap breadcrumbs in a block so that they can be amended on other pages (such as on the cookies page).
2. Add `<li>` tag to footer links (to correct earlier error)
Add a separate link for the privacy policy and cookies.
The routing to the privacy policy page wasn’t right
The error code said “Expected two blank lines”, so adding extra lines!
Essential cookies do not require user consent under the regulations, but you do still have to tell users about what cookies are used. In this case, cookies are defined as anything that stores data on the user’s device.

The GOV.UK Design System recommends adding a page for the cookies policy and linking to it from the footer; so this replicates that.
1. Wrap breadcrumbs in a block so that they can be amended on other pages (such as on the cookies page).
2. Add `<li>` tag to footer links (to correct earlier error)
Add a separate link for the privacy policy and cookies.
The routing to the privacy policy page wasn’t right
The error code said “Expected two blank lines”, so adding extra lines!
Further to @jonodrew’s [feedback on breadcrumb blocks](#51 (comment)), I think this reduces the repetition of code and is marginally more ‘DRY’.
This commit changes the use of `{% block %}` on all pages to create a header that can then be set using:

- `block pagecaption`
- `block pageheading`
- `block pagecontent`
John Peart added 2 commits February 13, 2022 12:19
- Rename the original `index.html` template to `match.html`
- Create a route to `/match` for `match.html`
- Add start page placeholder text (will need to be updated when tool is complete)
@johnpeart johnpeart requested a review from jonodrew February 13, 2022 22:54
@johnpeart johnpeart added the enhancement New feature or request label Feb 13, 2022
@johnpeart johnpeart linked an issue Feb 13, 2022 that may be closed by this pull request
4 tasks
@jonodrew
Copy link
Owner

I think I'm right in saying that this doesn't necessarily need #51 in order to be merged. Rather than having a branch-of-a-branch and having to keep everything in sync, can you please create a new branch from main and cherry-pick the commits onto that?

@johnpeart johnpeart closed this Feb 14, 2022
@johnpeart johnpeart deleted the add-start-page branch February 14, 2022 22:12
@johnpeart johnpeart mentioned this pull request Feb 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Proposal: Start page
2 participants