-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(onboarding): add welcome screen and onboarding tooltips (#1058)
* feat(onboarding): add welcome screen and onboarding tooltips * refactor(tooltips): fix types * refactor(welcome): use index instead of id, add useEffect * refactor(onboarding): move onboardings to separate component * refactor(onboarding): rename components, move overlays into components
- Loading branch information
1 parent
243a6dd
commit 8b3d44b
Showing
23 changed files
with
508 additions
and
12 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
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
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
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,15 @@ | ||
export const SET_WELCOME_SCREEN = 'SET_WELCOME_SCREEN'; | ||
|
||
export interface SetWelcomeScreenAction { | ||
type: typeof SET_WELCOME_SCREEN; | ||
welcomeScreen: boolean; | ||
} | ||
|
||
const setWelcomeScreenAction = ( | ||
welcomeScreen: boolean | ||
): SetWelcomeScreenAction => ({ | ||
type: SET_WELCOME_SCREEN, | ||
welcomeScreen | ||
}); | ||
|
||
export default setWelcomeScreenAction; |
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
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
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
61 changes: 61 additions & 0 deletions
61
src/scripts/components/main/onboarding-tooltip/onboarding-tooltip.styl
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,61 @@ | ||
@require '../../../../variables.styl' | ||
|
||
.onboardingOverlay | ||
background: transparent | ||
|
||
.onboarding | ||
position: absolute | ||
display: flex | ||
flex-direction: column | ||
justify-content: space-between | ||
padding: emCalc(16px) | ||
min-height: emCalc(50px) | ||
max-width: emCalc(170px) | ||
width: fit-content | ||
height: fit-content | ||
border-radius: 4px | ||
background-color: $darkGrey4 | ||
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.14), 0px 3px 4px rgba(0, 0, 0, 0.12), 0px 1px 5px rgba(0, 0, 0, 0.2) | ||
color: $textWhite | ||
transform: translate(-85%, 50%) | ||
|
||
.onboarding:before | ||
position: absolute | ||
right: emCalc(10px) | ||
bottom: 100% | ||
border-right: 8px solid transparent | ||
border-bottom: 10px solid $darkGrey4 | ||
border-left: 8px solid transparent | ||
content: '' | ||
|
||
.bottomTooltip | ||
transform: translate(-85%, -120%) | ||
|
||
.bottomTooltip:before | ||
top: 100% | ||
border-top: 10px solid $darkGrey4 | ||
border-bottom: none | ||
|
||
.content | ||
display: flex | ||
justify-content: space-between | ||
align-items: start | ||
|
||
.closeButton | ||
margin-left: emCalc(10px) | ||
width: emCalc(16px) | ||
height: emCalc(16px) | ||
|
||
.navigation | ||
display: flex | ||
justify-content: space-between | ||
margin-top: emCalc(20px) | ||
text-align: left | ||
font-size: emCalc(11px, 16) | ||
font-family: NotesEsaBold | ||
|
||
.navigationButton | ||
color: $textColor | ||
text-transform: uppercase | ||
font-size: emCalc(14px, 16) | ||
font-family: NotesEsaBold |
Oops, something went wrong.