mirror of
https://github.com/System-End/site.git
synced 2026-04-19 22:05:11 +00:00
Add a clarifying first replit step
This commit is contained in:
parent
e8f89b969d
commit
9cc3109fed
2 changed files with 10 additions and 3 deletions
|
|
@ -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' }}>
|
||||
|
|
|
|||
BIN
public/replit/replit-homepage.png
Normal file
BIN
public/replit/replit-homepage.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 320 KiB |
Loading…
Add table
Reference in a new issue