From 893b1e6f5ff55d1b747da17c4245053e9be419fa Mon Sep 17 00:00:00 2001 From: PhilReact Date: Fri, 31 Jan 2025 16:50:54 +0200 Subject: [PATCH] new user tooltips --- src/App.tsx | 20 +++++------- src/ExtStates/NotAuthenticated.tsx | 32 +++++++++++++++---- src/components/Group/Group.tsx | 2 -- .../Tutorials/useHandleTutorials.tsx | 3 +- src/index.css | 2 +- 5 files changed, 36 insertions(+), 23 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index c77b81b..0fe0263 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -412,7 +412,7 @@ function App() { const [hasSettingsChanged, setHasSettingsChanged] = useRecoilState( hasSettingsChangedAtom ); - const {showTutorial, openTutorialModal, shownTutorialsInitiated, setOpenTutorialModal} = useHandleTutorials() + const {showTutorial, openTutorialModal, shownTutorialsInitiated, setOpenTutorialModal, hasSeenGettingStarted} = useHandleTutorials() const holdRefExtState = useRef("not-authenticated"); const isFocusedRef = useRef(true); const { isShow, onCancel, onOk, show, message } = useModal(); @@ -1739,7 +1739,8 @@ function App() { showTutorial, openTutorialModal, setOpenTutorialModal, - downloadResource + downloadResource, + hasSeenGettingStarted }}> {extState === "not-authenticated" && ( @@ -2320,8 +2321,7 @@ function App() { height: "154px", }} > - - + - - + - - + - - + - - + - - + - WELCOME TO YOUR

- QORTAL WALLET + WELCOME TO YOUR

+ QORTAL WALLET
{ setExtstate("create-wallet"); }} + sx={{ + backgroundColor: hasSeenGettingStarted === false && 'var(--green)', + color: hasSeenGettingStarted === false && 'black', + "&:hover": { + backgroundColor: hasSeenGettingStarted === false && 'var(--green)', + color: hasSeenGettingStarted === false && 'black' + } + }} > - Create account + Create wallet @@ -401,9 +413,15 @@ export const NotAuthenticated = ({ gap: "10px", alignItems: "center", flexDirection: "column", + outline: '0.5px solid rgba(255, 255, 255, 0.5)', + padding: '20px 30px', + borderRadius: '5px', }} > <> + For advanced users { showTutorial, openTutorialModal, setOpenTutorialModal, - shownTutorialsInitiated: !!shownTutorials + shownTutorialsInitiated: !!shownTutorials, + hasSeenGettingStarted: shownTutorials === null ? null : !!(shownTutorials || {})['getting-started'], }; }; diff --git a/src/index.css b/src/index.css index 86948f5..8e123df 100644 --- a/src/index.css +++ b/src/index.css @@ -70,7 +70,7 @@ body { } .image-container:hover .base-image { - opacity: 0; + opacity: 0.6; }