diff --git a/src/App.tsx b/src/App.tsx index 2f29a8c..01129ed 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -357,7 +357,7 @@ function App() { const {downloadResource} = useFetchResources() const holdRefExtState = useRef("not-authenticated"); const isFocusedRef = useRef(true); - const {showTutorial, openTutorialModal, shownTutorialsInitiated, setOpenTutorialModal} = useHandleTutorials() + const {showTutorial, openTutorialModal, shownTutorialsInitiated, setOpenTutorialModal, hasSeenGettingStarted} = useHandleTutorials() const { isShow, onCancel, onOk, show, message } = useModal(); const { isShow: isShowUnsavedChanges, @@ -1708,7 +1708,8 @@ function App() { showTutorial, openTutorialModal, setOpenTutorialModal, - downloadResource + downloadResource, + hasSeenGettingStarted }}> {extState === "not-authenticated" && ( @@ -2277,8 +2278,7 @@ function App() { height: "154px", }} > - - + - - + - - + - - + - - + Set up your Qortal account @@ -2686,7 +2683,7 @@ function App() { If you wish to VIEW THE SEEDPHRASE, click the word 'SEEDPHRASE' in this text. Seedphrases are used to generate the private key for your Qortal account. For security by default, seedphrases are NOT displayed unless specifically chosen. ( + +))(({ theme }) => ({ + [`& .${tooltipClasses.tooltip}`]: { + backgroundColor: '#232428', + color: 'white', + maxWidth: 320, + padding: '20px', + fontSize: theme.typography.pxToRem(12), + }, +})); function removeTrailingSlash(url) { return url.replace(/\/+$/, ''); } @@ -66,7 +78,7 @@ export const NotAuthenticated = ({ const [customApikey, setCustomApiKey] = React.useState(""); const [customNodeToSaveIndex, setCustomNodeToSaveIndex] = React.useState(null); - const { showTutorial } = useContext(GlobalContext); + const { showTutorial, hasSeenGettingStarted } = useContext(GlobalContext); const importedApiKeyRef = useRef(null); const currentNodeRef = useRef(null); @@ -354,18 +366,22 @@ export const NotAuthenticated = ({ height: "154px", }} > - - + - WELCOME TO YOUR

- QORTAL WALLET + WELCOME TO YOUR

+ QORTAL WALLET
@@ -375,11 +391,23 @@ export const NotAuthenticated = ({ gap: "10px", alignItems: "center", }} + > + + Your wallet is like your digital ID on Qortal, and is how you will login to the Qortal User Interface. It holds your public address and the Qortal name you will eventually choose. Every transaction you make is linked to your ID, and this is where you manage all your QORT and other tradeable cryptocurrencies on Qortal. + + } > setExtstate('wallets')}> {/* */} Wallets + {/* */} @@ -391,16 +419,41 @@ export const NotAuthenticated = ({ display: "flex", gap: "10px", alignItems: "center", + }} + > + + New users start here! + + Creating an account means creating a new wallet and digital ID to start using Qortal. Once you have made your account, you can start doing things like obtaining some QORT, buying a name and avatar, publishing videos and blogs, and much more. + + } > { 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 - +
@@ -421,9 +474,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 { return filename.startsWith("qortal_backup_") ? filename.slice(14) : filename; @@ -30,6 +32,7 @@ export const Wallets = ({ setExtState, setRawWallet, rawWallet }) => { const [seedValue, setSeedValue] = useState(""); const [seedName, setSeedName] = useState(""); const [seedError, setSeedError] = useState(""); + const { hasSeenGettingStarted } = useContext(GlobalContext); const [password, setPassword] = useState(""); const [isOpenSeedModal, setIsOpenSeedModal] = useState(false); @@ -228,6 +231,17 @@ export const Wallets = ({ setExtState, setRawWallet, rawWallet }) => { bottom: wallets?.length === 0 ? 'unset' : '20px', right: wallets?.length === 0 ? 'unset' : '20px' }} + > + + Already have a Qortal account? Enter your secret backup phrase here to access it. This phrase is one of the ways to recover your account. + + } > { Add seed-phrase + + + Use this option to connect additional Qortal wallets you've already made, in order to login with them afterwards. You will need access to your backup JSON file in order to do so. + + } + > Add wallets + { }, [shownTutorials]); return { showTutorial, + hasSeenGettingStarted: shownTutorials === null ? null : !!(shownTutorials || {})['getting-started'], openTutorialModal, setOpenTutorialModal, shownTutorialsInitiated: !!shownTutorials diff --git a/src/index.css b/src/index.css index 836bc3b..867382c 100644 --- a/src/index.css +++ b/src/index.css @@ -65,7 +65,7 @@ body { } .image-container:hover .base-image { - opacity: 0; + opacity: 0.6; } ::-webkit-scrollbar-track {