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

MNTOR-4060 Remove duplicate sign-in button on mobile, and prevent logo from shrinking #5646

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

Vinnl
Copy link
Collaborator

@Vinnl Vinnl commented Feb 20, 2025

References:

Jira: MNTOR-4060
Figma:

Description

For the redesigned landing page, we added a sign-in button to the <TopNavBar> component. This was used in three places:

  1. in the redesigned landing page, on desktop (from within <PublicShell>),
  2. in the regular landing page, on desktop (from <LandingView>), and
  3. in the shell that we use for loginwalled pages and the redesigned landing page, on mobile (from within <MobileShell>).

I split the <TopNavBar> into a redesigned version and the old version, reverting the recent changes in the latter - thus, only the former has the sign-in button. I then updated 1. to use the redesigned version, and 3. to use the version depending on the experiment and flag status.

I also updated the padding in the old top nav to remove some superfluous and inconsistent spacing.

Screenshot (if applicable)

New:

image

Old:

image

How to test

Visit the landing page, both the old one and the new one, and inside and outside the US. Verify that only one sign-in button is visible.

Checklist (Definition of Done)

  • Localization strings (if needed) have been added.
  • Commits in this PR are minimal and have descriptive commit messages.
  • I've added or updated the relevant sections in readme and/or code comments
  • I've added a unit test to test for potential regressions of this bug. - N/A, visual
  • If this PR implements a feature flag or experimentation, I've checked that it still works with the flag both on, and with the flag off.
  • If this PR implements a feature flag or experimentation, the Ship Behind Feature Flag status in Jira has been set
  • Product Owner accepted the User Story (demo of functionality completed) or waived the privilege.
  • All acceptance criteria are met.
  • Jira ticket has been updated (if needed) to match changes made during the development process.
  • Jira ticket has been updated (if needed) with suggestions for QA when this PR is deployed to stage.

The redesigned landing page no longer has a "Sign In" button in the
top bar, so it added one to the top nav bar (the bar below the top
bar). However, since the <TopNavBar> component is also used by the
current landing page, as well as by the <Shell> we use when the
user is logged in (although the Sign In button is not rendered
there), that could lead to duplicate buttons. Thus, I split it up
into two components, one for the old, and one for the new landing
page.
This aligns the horizontal padding with that of the sections on the
landing page, which allows the logo to stay at full size for
longer.
@Vinnl Vinnl added the Review: XS Code review time: up to 30min label Feb 20, 2025
@Vinnl Vinnl requested a review from flozia February 20, 2025 15:39
@Vinnl Vinnl self-assigned this Feb 20, 2025
Copy link

@Vinnl Vinnl changed the title MNTOR-4060Remove duplicate sign-in button on mobile, and prevent logo from shrinking MNTOR-4060 Remove duplicate sign-in button on mobile, and prevent logo from shrinking Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Review: XS Code review time: up to 30min
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant