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

Fix #693 (NEW) - Add Sign up Btn in Header #994

Merged
merged 5 commits into from
Aug 11, 2021
Merged

Conversation

codemist
Copy link
Collaborator

@codemist codemist commented Aug 5, 2021

Home page preview:

Desktop -
image

Mobile -
image

Profile page stays the same
image

Updated breakpoint to 660px demo:

Screen.Recording.2021-08-05.at.8.48.56.AM.mov

@codemist codemist requested a review from maxxcrawford August 5, 2021 15:49
data-ga="send-ga-funnel-pings"
data-event-category="Sign In Buttons"
data-event-label="sign-in-btn-header"
class="sign-in sign-up button"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggestion: Use the .header-link class to make the button behave like the Home/FAQ buttons. You may need to play with the padding to compensate.

Suggested change
class="sign-in sign-up button"
class="header-link"

image

static/scss/partials/header.scss Show resolved Hide resolved
@codemist codemist added 👤 needs-ux 🚧 WIP Work in Progress and removed 👤 needs-ux labels Aug 5, 2021
@codemist
Copy link
Collaborator Author

codemist commented Aug 6, 2021

Demo @maxxcrawford

Screen.Recording.2021-08-06.at.10.24.14.AM.mov

<a
data-entrypoint="relay-sign-in-header"
data-form_type="button"
data-ga="send-ga-funnel-pings"
data-event-category="Sign In Buttons"
data-event-label="sign-in-btn-header"
class="sign-in button btn-transparent"
class="mzp-c-button mzp-t-secondary mzp-t-dark home-sign-in"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Added Protocol button classes here

Copy link
Contributor

Choose a reason for hiding this comment

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

nit: Recommend using a different class name than home-sign-in that closer matches the class naming convention.

.mzp-c-button.home-sign-in {
font-family: $font-metropolis;
font-weight: normal;
font-size: 1.1rem;
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 overwrote some of the Protocol properties to fit the Figma design. One thing I'm not sure about is increasing the font-size to 1.1rem, because for some reason the button looks subtly smaller by default.

Screen.Recording.2021-08-06.at.10.31.46.AM.mov

Copy link
Contributor

Choose a reason for hiding this comment

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

Good call out about the 1.1rem. I would actually recommend updating the .header-link size to match the font size of the default button. That keeps it cleaner. Great job switching to a Protocol button here!

static/scss/partials/header.scss Show resolved Hide resolved
static/scss/partials/header.scss Show resolved Hide resolved
@codemist codemist requested a review from maxxcrawford August 6, 2021 17:37
@codemist codemist removed the 🚧 WIP Work in Progress label Aug 6, 2021
<a
data-entrypoint="relay-sign-in-header"
data-form_type="button"
data-ga="send-ga-funnel-pings"
data-event-category="Sign In Buttons"
data-event-label="sign-in-btn-header"
class="sign-in button btn-transparent"
class="mzp-c-button mzp-t-secondary mzp-t-dark home-sign-in"
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: Recommend using a different class name than home-sign-in that closer matches the class naming convention.

Comment on lines 258 to 263
firefox-apps.home-page {
margin: 0 0 0 $spacing-lg;
}

firefox-apps.profile-page {
margin: 0 $spacing-lg;
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: This specificity may not be necessary.

Suggested change
firefox-apps.home-page {
margin: 0 0 0 $spacing-lg;
}
firefox-apps.profile-page {
margin: 0 $spacing-lg;
.home-page {
margin: 0 0 0 $spacing-lg;
}
.profile-page {
margin: 0 $spacing-lg;

static/scss/partials/header.scss Show resolved Hide resolved
Copy link
Collaborator Author

@codemist codemist left a comment

Choose a reason for hiding this comment

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

privaterelay/templates/includes/login.html Show resolved Hide resolved
privaterelay/templates/includes/login.html Show resolved Hide resolved
static/scss/partials/header.scss Show resolved Hide resolved
@codemist codemist requested a review from maxxcrawford August 10, 2021 20:15
static/scss/components/buttons.scss Outdated Show resolved Hide resolved
@codemist codemist requested a review from maxxcrawford August 11, 2021 20:35
@maxxcrawford maxxcrawford merged commit 056272f into main Aug 11, 2021
@maxxcrawford maxxcrawford deleted the rearrange-sign-up-btn branch August 11, 2021 20:46
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.

2 participants