-
Notifications
You must be signed in to change notification settings - Fork 481
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
Create HoC Live Spanish banner #37085
Conversation
Can we pre-emptively add the Spanish translation to es.yml and la.yml? I can be responsible for proactively uploading the changes to en.yml to Crowdin. |
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.
The best way that I'm aware of to get sibling elements to be height-locked is to use display: table-row;
on the parent element and display: table-cell;
on the children. You'll also want to get rid of the current float
directives:
<div class="banner-box" style="display: table-row;">
<div class="banner-image-box" style="display: table-cell; float: none;">
...
</div>
<div class="banner-message-box" style="display: table-cell; float: none;">
...
</div>
</div>
@@ -96,6 +96,52 @@ a.category-link { | |||
margin-right: 10px; | |||
} | |||
|
|||
.banner-box { | |||
width: 100%; | |||
height: fit-content; |
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.
note that fit-content is not supported by IE, but is also I think not necessary here
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.
Removed.
= hoc_s(:hoc_live_sign_up_title) | ||
%div.banner-message | ||
= hoc_s(:hoc_live_sign_up_message) | ||
%a#signuplivebutton.ctabuttonatag{href: 'http://go.pardot.com/l/153401/2020-09-30/nwvb6j', target: '_blank'} |
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.
Important note: target: _blank
is a security vulnerability. If we absolutely must open links in new tabs, there are some things we can do to mitigate those security risks, but in this case I don't see a need for us to do that. Situations in which opening a link in a new tab are necessary are mostly those situations in which there are interactions on the page that could be lost if the user unexpectedly navigates away; things like a page with a long form to be filled out or, say, a page with a code editor that may lose progress.
The hourofcode.com homepage is a static page, so we should just leave this anchor as normal.
For more information, see:
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.
I agree that this doesn't have to open on a new tab :)
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.
Removed. Thank you for the detailed explanation! It's really helpful.
There is already a string key for "Join us" in en.yml - |
^ Added!
^ Elijah's recommendation using
^ The 2 "Join Us" buttons are for two different actions. The original "Join Us" button brings users to the registration form at the middle of the page. The new "Join Us" button brings user to a Pardot landing page. My instinct is we should separate them because they can change in different ways in the future. |
Task FND-1315: Create HoC Live Spanish banner on the HoC landing page (spec).
Screenshots
On desktop, the banner will look like this:
On a smaller screen such as the iPhone 6 (375x667):
The banner can also be resized:
Testing story
Verify that the banner shows up for Spanish-speaking users
Verify that the banner doesn't show up for non-Spanish speaking users
Reviewer Checklist: