-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Onboarding questions screen mobile responsiveness bb-289 (#345)
* feat(frontend): make onboarding screen mobile responsive bb-289 * fix(frontend): fix radio input size on mobile bb-289 * fix(frontend): change button size to match figma bb-289 * refactor(frontend): resolve pr comments B10 bb-289 * refactor(frontend): change breakpoint bb-289 * fix(frontend): decrease font-size on mobile bb-289 * refactor(frontend): added button label enum bb-289 * fix(frontend): fix back button showing on first question bb-289 * fix(frontend): fix back button not displaying on last question bb-289 * chore(frontend): resolve pr comments bb-289 --------- Co-authored-by: Farid Shabanov <61088675+fshabanov@users.noreply.github.com>
- Loading branch information
1 parent
812ce87
commit 7a0c849
Showing
8 changed files
with
56 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,7 +57,7 @@ | |
} | ||
} | ||
|
||
@media (width <= 640px) { | ||
@media (width <= 480px) { | ||
.progress-line { | ||
width: 40px; | ||
} | ||
|
7 changes: 4 additions & 3 deletions
7
apps/frontend/src/pages/onboarding/libs/components/onboarding-answer/styles.module.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
.onboarding-answer { | ||
width: 342px; | ||
width: 100%; | ||
max-width: 342px; | ||
} | ||
|
||
@media (width <= 640px) { | ||
@media (width <= 768px) { | ||
.onboarding-answer { | ||
width: 250px; | ||
max-width: 312px; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
export { FIRST_QUESTION_INDEX } from "./first-question-index.constant.js"; | ||
export { ONBOARDING_FORM_DEFAULT_VALUES } from "./onboarding-form-default-values.contant.js"; |
3 changes: 3 additions & 0 deletions
3
apps/frontend/src/pages/onboarding/libs/constants/first-question-index.constant.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
const FIRST_QUESTION_INDEX = 0; | ||
|
||
export { FIRST_QUESTION_INDEX }; |
7 changes: 7 additions & 0 deletions
7
apps/frontend/src/pages/onboarding/libs/enums/button-label.enum.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
const ButtonLabel = { | ||
ANALYZE: "ANALYZE", | ||
BACK: "BACK", | ||
NEXT: "NEXT", | ||
} as const; | ||
|
||
export { ButtonLabel }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { ButtonLabel } from "./button-label.enum.js"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters