-
Notifications
You must be signed in to change notification settings - Fork 20
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
Conversation
fb6f30c
to
f2b4e66
Compare
f2b4e66
to
987ee83
Compare
987ee83
to
d1bdf2f
Compare
00912eb
to
4904f9c
Compare
4904f9c
to
8b16ea5
Compare
8b16ea5
to
67db8c5
Compare
67db8c5
to
acfc643
Compare
acfc643
to
30bed87
Compare
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.
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 { |
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.
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"> |
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.
We would also need to update this template to remove the app-c-
prefixes in the class names
30bed87
to
00ac52d
Compare
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.
00ac52d
to
bf131a0
Compare
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' whennew_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
Relevant Trello Card