Add a clarifying first replit step

This commit is contained in:
Malted 2024-09-03 17:45:11 -04:00
parent e8f89b969d
commit 9cc3109fed
No known key found for this signature in database
2 changed files with 10 additions and 3 deletions

View file

@ -8,6 +8,10 @@ const TokenInstructions = () => {
const [currentStep, setCurrentStep] = useState(0)
const tokenSteps = [
{
image: '/replit/replit-homepage.png',
desc: 'Go to replit.com, and sign in.'
},
{
image: '/replit/aarc1.gif',
desc: "Open your browser's developer tools. You can do this by right-clicking on the page and selecting 'Inspect' or by pressing F12 on your keyboard."
@ -55,11 +59,14 @@ const TokenInstructions = () => {
</Heading>
<Button
onClick={() => setCurrentStep(prev => Math.min(prev + 1, 2))}
onClick={() =>
setCurrentStep(prev => Math.min(prev + 1, tokenSteps.length - 1))
}
sx={{
bg: 'hsl(23, 94%, 32%)',
opacity: currentStep === 2 ? 0.5 : 1,
pointerEvents: currentStep === 2 ? 'none' : 'auto'
opacity: currentStep === tokenSteps.length - 1 ? 0.5 : 1,
pointerEvents:
currentStep === tokenSteps.length - 1 ? 'none' : 'auto'
}}
>
<Box sx={{ rotate: '180deg', lineHeight: 0, marginLeft: '-8px' }}>

Binary file not shown.

After

Width:  |  Height:  |  Size: 320 KiB