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

[UI] Welcome modal update #1163

Merged
merged 23 commits into from
Dec 5, 2024
Merged

[UI] Welcome modal update #1163

merged 23 commits into from
Dec 5, 2024

Conversation

biliesilva
Copy link
Contributor

<--- Update Welcome Modal --->

Updated the copy and some styles of the Welcome to HyperPlay modal

Design to compare here


Use the following Checklist if you have changed something on the Backend or Frontend:

  • Tested the feature and it's working on a current and clean install.
  • Tested the main App features and they are still working on a current and clean install. (Login, Install, Play, Uninstall, Move games, etc.)
  • Created / Updated Tests (If necessary)
  • Created / Updated documentation (If necessary)

Copy link

github-actions bot commented Nov 20, 2024

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@biliesilva biliesilva self-assigned this Nov 20, 2024
@biliesilva biliesilva added the PR: Ready-For-Review PR is ready to be reviewed by peers label Nov 20, 2024
@biliesilva
Copy link
Contributor Author

I have read the CLA Document and I hereby sign the CLA

@biliesilva biliesilva requested a review from jiyuu-jin November 20, 2024 17:20
<div>
{t(
'hyperplay.onboarding.welcome.text.communityCTA_1',
`We'd love your feedback and to have you join us in our`
'hyperplay.onboarding.welcome.text.2',
Copy link
Contributor

Choose a reason for hiding this comment

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

for this one, can you not use a number as a key, this might give issues in the future.
Rename it to something like intro for instance.

Copy link
Contributor

@flavioislima flavioislima left a comment

Choose a reason for hiding this comment

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

Pretty good stuff! 💪🏽
Code overall looks good, just left some comments about the i18n keys.

@BrettCleary
Copy link
Collaborator

can we take the time to make this modal responsive for smaller screens? You will also need to set the z-index as well or convert it to a dialog element with modal behavior, so it is above the top nav bar. Probably set a max height of 100vh and y-overflow to auto as well

image image

Copy link
Collaborator

@BrettCleary BrettCleary left a comment

Choose a reason for hiding this comment

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

ui is looking good. let's take the time to make it responsive since this is the first impression on new users

@@ -32,8 +39,38 @@
.welcomeBodyTextContainer a:hover {
color: var(--color-primary-300);
transition: 0.2s;
font-size: var(--font-size-md);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we need this? It seems odd to me that we would set the font size instead of using a typography style, especially on hover

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was already in the file, I only changed it from lg to md;

.diamondBlue {
width: 10px;
height: 10px;
margin-right: 8px;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
margin-right: 8px;
margin-right: var(--space-xs-fixed);

Comment on lines 45 to 47
.text {
font-weight: 400;
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

We pretty much never have to set the specific typography in a component since we can reuse the styles from hp/ui src\styles\designSystem\_typography.scss. Do we need a new style or to update an existing style in the global stylesheet? If we make custom type sizing, weights, fonts, or line-heights on a per component basis, the typography system quickly become unmaintainable.

Copy link
Contributor Author

@biliesilva biliesilva Nov 21, 2024

Choose a reason for hiding this comment

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

I had to create a class to style a small piece of text differently because it was inheriting bold from its parent. I'll change it and use var instead the next time.

align-items: flex-start;
}

.scrollableModal {
Copy link
Collaborator

Choose a reason for hiding this comment

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

this class doesn't seem to be used anywhere

)
}
>
Compatibility Layer (Beta)
Copy link
Collaborator

Choose a reason for hiding this comment

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

should this be a translation string?

@biliesilva
Copy link
Contributor Author

biliesilva commented Nov 21, 2024

ui is looking good. let's take the time to make it responsive since this is the first impression on new users

I didn't change anything in the responsiveness of this component I just changed the text and changed the position of the language selector and the button.

Copy link
Collaborator

@BrettCleary BrettCleary left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -34,6 +41,29 @@
transition: 0.2s;
}

.boldText {
.text {
font-weight: var(--body-sm);
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think --body-sm is defined anywhere

@BrettCleary BrettCleary added PR: Ready-For-Test PR is ready to be tested by a QA and removed PR: Ready-For-Review PR is ready to be reviewed by peers labels Nov 26, 2024
@BrettCleary BrettCleary mentioned this pull request Dec 3, 2024
4 tasks
Copy link

@nyghtstalker nyghtstalker left a comment

Choose a reason for hiding this comment

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

Looks great! Love the new welcome modal! Great job!

Changing the language is currently not working because it is a new text and has not yet been translated. This will be corrected at a later date.

image
image

@biliesilva biliesilva merged commit 642ee3e into main Dec 5, 2024
11 checks passed
@biliesilva biliesilva deleted the Welcome-Modal-v2 branch December 5, 2024 12:02
@github-actions github-actions bot locked and limited conversation to collaborators Dec 5, 2024
@biliesilva biliesilva added Priority: 2 - High and removed PR: Ready-For-Test PR is ready to be tested by a QA labels Dec 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants