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

Implement new header component for homepage #3776

Merged
merged 1 commit into from
Oct 3, 2023

Conversation

patrickpatrickpatrick
Copy link
Contributor

@patrickpatrickpatrick patrickpatrickpatrick commented Sep 25, 2023

⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

What

Move the 'inverse-header' component to the components folder. Make a new 'homepage-header' component. Add logic for displaying the 'inverse-header' when new_design parameter is not present. Add logic displaying for displaying the 'homepage-header' when new_design parameter is present.

Why

This is part of changes that will be gradually rolled out to the homepage. As these changes are not going to be made live immediately, I have attempted to split the code in a way that will allow them to be easily toggled by the new_design parameter. The additional effect is that this makes the code easier to understand and will allow us to easily make the change to the header permanent.

Visual Difference

with /new_design=true

Screenshot 2023-10-02 at 11 44 31

Relevant Trello Card

@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-3776 September 25, 2023 11:12 Inactive
@patrickpatrickpatrick patrickpatrickpatrick changed the title Make new components for headers Implement new header component for homepage Sep 25, 2023
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-3776 September 26, 2023 11:13 Inactive
@patrickpatrickpatrick patrickpatrickpatrick marked this pull request as ready for review September 28, 2023 12:46
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-3776 September 29, 2023 15:51 Inactive
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-3776 September 29, 2023 15:54 Inactive
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-3776 September 29, 2023 16:23 Inactive
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-3776 October 2, 2023 10:03 Inactive
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-3776 October 2, 2023 10:49 Inactive
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-3776 October 2, 2023 10:54 Inactive
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-3776 October 2, 2023 14:32 Inactive
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-3776 October 2, 2023 15:19 Inactive
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-3776 October 2, 2023 15:21 Inactive
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-3776 October 2, 2023 15:23 Inactive
Copy link
Contributor

@MartinJJones MartinJJones left a comment

Choose a reason for hiding this comment

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

Changes look good to me overall, just a small nitpick, we should then be able to merge the changes 👍


$pale-blue-colour: #d2e2f1;

.app-c-homepage-header {
Copy link
Contributor

Choose a reason for hiding this comment

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

Now that this has moved back to a view template, I think we should be able to remove the app-c- prefix from the class names.

add_view_stylesheet("homepage_header")
%>

<header class="app-c-homepage-header">
Copy link
Contributor

Choose a reason for hiding this comment

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

We would also need to update this template to remove the app-c- prefixes in the class names

@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-3776 October 3, 2023 09:31 Inactive
Move the inverse_header to a seperate partial. Implement the new
homepage_header as a seperate partial. Add logic for toggling the
new header on and off using the `new_design` url parameter.
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-3776 October 3, 2023 09:53 Inactive
@patrickpatrickpatrick patrickpatrickpatrick merged commit 8aaae25 into main Oct 3, 2023
7 checks passed
@patrickpatrickpatrick patrickpatrickpatrick deleted the use-new-homepage-header branch October 3, 2023 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants