From e2c25e6a1cd30503a6e8267ea229281c6e266e25 Mon Sep 17 00:00:00 2001 From: Malted Date: Thu, 29 Aug 2024 15:46:28 -0400 Subject: [PATCH] New form --- components/replit/form.js | 23 +++++++++++++++++++---- pages/replit.js | 3 ++- 2 files changed, 21 insertions(+), 5 deletions(-) diff --git a/components/replit/form.js b/components/replit/form.js index ec2df910..7723a25c 100644 --- a/components/replit/form.js +++ b/components/replit/form.js @@ -29,7 +29,7 @@ const ReplitForm = ({ cssDark }) => { ] const fieldStyle = ({ disabled }) => ({ - border: '1.5px solid #0002', + border: '1px solid #0002', cursor: disabled ? 'not-allowed' : 'auto', opacity: disabled ? 0.5 : 1 }) @@ -40,6 +40,21 @@ const ReplitForm = ({ cssDark }) => { opacity: disabled ? 0.5 : 1 }) + const StepIndicator = ({ step }) => ( + currentStep ? 0.25 : 1 + }} + > + ) + const boxStyle = { display: 'flex', flexDirection: 'column', @@ -78,6 +93,7 @@ const ReplitForm = ({ cssDark }) => { Next + ) } @@ -138,6 +154,7 @@ const ReplitForm = ({ cssDark }) => { Submit + ) } @@ -192,6 +209,7 @@ const ReplitForm = ({ cssDark }) => { /> ) })} + ) @@ -223,9 +241,6 @@ const ReplitForm = ({ cssDark }) => { overflow: 'initial' }} > - {formData.email || 'no email'} - {formData.token || 'no token'} - {step1()} {step2()} diff --git a/pages/replit.js b/pages/replit.js index d11263bd..93a93033 100644 --- a/pages/replit.js +++ b/pages/replit.js @@ -176,7 +176,8 @@ const ReplitPage = () => { height: '1.35em', translate: '-0.095em -0.195em', position: 'absolute', - right: 0 + right: 0, + opacity: 0 }} id="fire-replit" className="replit-fire"