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 sections to routes wizard completed page #4490

Merged
merged 25 commits into from
Jan 20, 2025

Conversation

spencerldixon
Copy link
Collaborator

Trello card

https://trello.com/c/kv57CkUJ/7127-add-other-content-and-elements-to-routes-wizard-results-page?filter=member:spencerldixon

Context

We want to build the three question pages and render the answers on a results page

As well as the results (covered in separate tickets) we want to add other design elements / content to the page

Changes proposed in this pull request

  • Add helpers for question responses
  • Add quote sections
  • Add mailing list component
  • Fix layout to slim column

Guidance to review

@github-actions github-actions bot added ruby Pull requests that update Ruby code test Style Config labels Jan 15, 2025
@spencerldixon spencerldixon changed the base branch from master to feature/routes_wizard January 15, 2025 14:48
@gemmadallmandfe
Copy link
Contributor

Looks good!

NB needs some spacing between privacy notice and CTA:
image

Co-authored-by: Gemma Dallman <87642394+gemmadallmandfe@users.noreply.github.com>
<h2 class="heading--box-blue">Next steps</h2>

<%= render CallsToAction::SimpleComponent.new(icon: "icon-arrow-black") do %>
<h2 class="call-to-action__heading">Get personalised guidance</h2>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be an h3 @spencerldixon as it is under an h2 of Next steps

image

<div class="col-space-l-top">
<% if non_uk? %>
<%= render Content::QuoteWithImageComponent.new(
title: "Teaching as a non-uk...",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to have a heading level attributed to it @spencerldixon

I think it should be an h3 as it comes under the h2 of Next steps?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

However, looking in production, this component does not have a heading eg on https://getintoteaching.education.gov.uk/life-as-a-teacher/teaching-as-a-career/career-progression so I'm presuming we would need to look at this separately?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've changed QuoteWithImageComponent to render a h3 by default, but I've set this as an option, so we can always override this with another value if needed elsewhere

) %>
<% else %>
<%= render Content::QuoteWithImageComponent.new(
title: "Teacher training stories",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to have a heading level attributed to it @spencerldixon

I think it should be an h3 as it comes under the h2 of Next steps?

Copy link
Contributor

@martyn-w martyn-w left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 LGTM

Copy link

Copy link
Contributor

@gemmadallmandfe gemmadallmandfe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing the headers @spencerldixon

Happy for this to be merged into the main branch!

@spencerldixon spencerldixon merged commit ec47b7a into feature/routes_wizard Jan 20, 2025
27 checks passed
@spencerldixon spencerldixon deleted the feature/routes_wizard_layout branch January 20, 2025 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Config content Content changes Review ruby Pull requests that update Ruby code Style test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants