diff --git a/components/replit/form.js b/components/replit/form.js index 093e3287..d465c9a8 100644 --- a/components/replit/form.js +++ b/components/replit/form.js @@ -113,8 +113,8 @@ const ReplitForm = ({ cssDark }) => { '/stickers/orphmoji_peefest.png', '/stickers/skullpup_boba.png', '/stickers/hackers,_assemble!.png', - '/stickers/orphmoji_yippee.png', - '/replit/replit-fire.png' + '/stickers/orphmoji_yippee.png' + // '/replit/replit-fire.png' ] const fieldStyle = ({ disabled }) => ({ diff --git a/components/replit/progress.js b/components/replit/progress.js index 4fd3adab..0ba160a0 100644 --- a/components/replit/progress.js +++ b/components/replit/progress.js @@ -14,15 +14,13 @@ const ProgressComponent = ({ progress }) => { } return ( - - {progress.completed ? ( - Export complete! Check your email. - ) : ( - - {processedCount} of {progress.repl_count} repls processed! - {title ? {title} : null} - - )} + + + {progress.completed + ? 'Export complete! Check your email.' + : `${processedCount} of ${progress.repl_count} repls processed! + ${title ? {title} : ''}`} + { + const [currentStep, setCurrentStep] = useState(0) + + const tokenSteps = [ + { + 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." + }, + { + image: '/replit/aarc2.gif', + desc: 'Select the application tab in the devtools' + }, + { + image: '/replit/aarc3.gif', + desc: "Make sure replit.com cookies are selected, then scroll down to find 'connect.sid'. Copy the entire token & paste it in the form at the top of this page." + } + ] + + return ( + + + + + + Step {currentStep + 1} of {tokenSteps.length} + + + + + + + + {tokenSteps[currentStep].desc} + + {`Step + + + ) +} + +export default TokenInstructions diff --git a/pages/replit.js b/pages/replit.js index 47785eec..76d800a9 100644 --- a/pages/replit.js +++ b/pages/replit.js @@ -6,6 +6,7 @@ import Nav from '../components/nav' import ForceTheme from '../components/force-theme' import ReplitForm from '../components/replit/form' import Progress from '../components/replit/progress' +import TokenInstructions from '../components/replit/token-instructions' import { useEffect, useState } from 'react' const ReplitPage = () => { @@ -36,28 +37,13 @@ const ReplitPage = () => { 'Get free stickers' ] - const tokenSteps = [ - { - 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." - }, - { - image: '/replit/aarc2.gif', - desc: 'Select the application tab in the devtools' - }, - { - image: '/replit/aarc3.gif', - desc: "Make sure replit.com cookies are selected, then scroll down to find 'connect.sid'. Copy the entire token & paste it in the form at the top of this page." - } - ] - const cssDark = 'hsl(23, 94%, 32%)' return ( <> @@ -76,19 +62,82 @@ const ReplitPage = () => { color: 'white' }} > + + Replit Lifeboat:{' '} + + Save Our Ships + SOS in morse code + + + 🛟 + + + 🛳️ + + + 🚤 + + + 🌊 + + + ⛵ + + + { - document.getElementById('og-replit').style.opacity = '0' - document.getElementById('fire-replit').style.opacity = '1' - }} - onMouseOut={() => { - document.getElementById('og-replit').style.opacity = '1' - document.getElementById('fire-replit').style.opacity = '0' - }} > Export your{' '} { alignItems: 'center', position: 'relative' }} + /* + onMouseOver={() => { + document.getElementById('og-replit').style.opacity = '0' + document.getElementById('fire-replit').style.opacity = '1' + }} + onMouseOut={() => { + document.getElementById('og-replit').style.opacity = '1' + document.getElementById('fire-replit').style.opacity = '0' + }} + */ > Replit { id="og-replit" className="replit-fire" /> + {/* replit { }} id="fire-replit" className="replit-fire" - /> + />*/} {' '} repls - - On 25th August, Replit cut down its free plan - it's now unusable. + + On 25th August, Replit cut down its free plan - many students won't be + able to afford to keep using it.
- Previously, you got unlimited repls for free, for as long as you - wanted. -
- Now you get three repls, for 600 minutes per month (20 mins/day). + We quickly built this tool in response - plug in your email and Replit + token and get a zip file containing all your Repls, with full Git + history constructed from Replit's files' history.
@@ -216,36 +284,11 @@ const ReplitPage = () => {
- + How to get your Replit connect.sid token - - {tokenSteps.map((step, idx) => ( - - - Step {idx + 1} - - {step.desc} - - - ))} - +