diff --git a/src/pages/ValidatorOnboarding/Stepper.tsx b/src/pages/ValidatorOnboarding/Stepper.tsx index 0ea6147e..381564b7 100644 --- a/src/pages/ValidatorOnboarding/Stepper.tsx +++ b/src/pages/ValidatorOnboarding/Stepper.tsx @@ -1,4 +1,4 @@ -import { Text } from '@status-im/components' +import './StepperStyles.css' import React, { useState } from 'react' import { Stepper, Step } from 'react-form-stepper' @@ -6,7 +6,7 @@ const FormStepper: React.FC = () => { const [activeStep, setActiveStep] = useState(0) return ( -
+
{ connectorStyleConfig={customConnectorStyle} style={{ fontSize: '14px' }} > - setActiveStep(0)} completed={activeStep >= 0} /> - setActiveStep(1)} completed={activeStep > 0} /> - setActiveStep(2)} completed={activeStep > 1} /> - setActiveStep(3)} completed={activeStep > 2} /> - setActiveStep(4)} completed={activeStep > 3} /> + setActiveStep(0)} + completed={activeStep >= 0} + /> + setActiveStep(1)} + completed={activeStep > 0} + /> + setActiveStep(2)} + completed={activeStep > 1} + /> + setActiveStep(3)} + completed={activeStep > 2} + /> + setActiveStep(4)} + completed={activeStep > 3} + />
) } - const stepStyle = { - activeBgColor: '#2A4CF4', - completedBgColor: '#a10308', - inactiveBgColor: '#e0e0e0', + // For default dots: + inactiveBgColor: '#FFFFFF', + inactiveBorderColor: '#E0E0E0', // added this for border color + inactiveBorderWidth: '2px', // added this for border width + + // For active dots: + activeBgColor: '#FFFFFF', + activeBorderColor: '#2A4CF4', // added this for border color + activeBorderWidth: '2px', // added this for border width + + // For completed dots: + completedBgColor: '#2A4CF4', + activeTextColor: '#ffffff', completedTextColor: '#ffffff', inactiveTextColor: '#000000', // assuming you want black text for inactive steps - size: '2em', - circleFontSize: '1rem', + size: '20px', // Width & height of the circle dot + circleFontSize: '10px', // This makes the numbers in the circle smaller labelFontSize: '0.875rem', borderRadius: '50%', fontWeight: 500, } const customConnectorStyle = { + size: '2px', activeColor: '#2A4CF4', disabledColor: '#bdbdbd', // color when a step is disabled completedColor: '#a10308', // color for completed steps - backgroundColor: '#DDE1E6', - height: '2px', style: 'solid', // style of the connector line } diff --git a/src/pages/ValidatorOnboarding/StepperStyles.css b/src/pages/ValidatorOnboarding/StepperStyles.css new file mode 100644 index 00000000..9aa5a2c6 --- /dev/null +++ b/src/pages/ValidatorOnboarding/StepperStyles.css @@ -0,0 +1,36 @@ +.custom-step { + background-color: #ffffff; +} + +.custom-step.StepMain--active, +.custom-step.StepMain--completed { + background-color: #2a4cf4; +} + +.custom-step::before { + content: ''; + display: block; + position: absolute; + width: 20px; + height: 20px; + border: 2px solid #e0e0e0; + border-radius: 50%; +} + +.custom-step.StepMain--active::before, +.custom-step.StepMain--completed::before { + border-color: #2a4cf4; +} + +.custom-step.StepMain--active::after { + content: ''; + display: block; + position: absolute; + width: 20px; + height: 20px; + background-color: #2a4cf4; + border-radius: 50%; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); +} diff --git a/src/pages/ValidatorOnboarding/ValidatorOnboarding.tsx b/src/pages/ValidatorOnboarding/ValidatorOnboarding.tsx index 3b2ab9f8..bf314a66 100644 --- a/src/pages/ValidatorOnboarding/ValidatorOnboarding.tsx +++ b/src/pages/ValidatorOnboarding/ValidatorOnboarding.tsx @@ -16,13 +16,14 @@ function ValidatorOnboarding() { return ( <> - + - Light and performant clients, for all Ethereum validators. + + Create Nimbus Validator + - Nimbus Nodes allows you to take control and ownership of the services - you wish to run in a completely trustless and decentralized manner. + Earn Rewards for securing the Ethereum Network