diff --git a/src/pages/ValidatorOnboarding/FormStepper/FormStepper.css b/src/pages/ValidatorOnboarding/FormStepper/FormStepper.css index a276a5f1..14fe2d98 100644 --- a/src/pages/ValidatorOnboarding/FormStepper/FormStepper.css +++ b/src/pages/ValidatorOnboarding/FormStepper/FormStepper.css @@ -32,3 +32,14 @@ border-radius: 50%; transform: translate(-50%, -50%); } + +.custom-step::after { + content: attr(data-subtitle); + position: absolute; + top: calc(100% + 4px); + left: 30%; + font-size: 12px; + color: #A2A9B0; + background: transparent; + border: none; +} diff --git a/src/pages/ValidatorOnboarding/FormStepper/FormStepper.tsx b/src/pages/ValidatorOnboarding/FormStepper/FormStepper.tsx index b4e0bef1..97e07ef6 100644 --- a/src/pages/ValidatorOnboarding/FormStepper/FormStepper.tsx +++ b/src/pages/ValidatorOnboarding/FormStepper/FormStepper.tsx @@ -13,37 +13,47 @@ const FormStepper = ({ activeStep, changeActiveStep }: FormStepperProps) => { nonLinear={true} styleConfig={stepStyle} connectorStyleConfig={customConnectorStyle} - style={{ fontSize: '14px', zIndex: 999, width: '100%', padding: 0, marginBottom: '1rem' }} + style={{ fontSize: '14px', zIndex: 999, width: '100%', padding: 0, marginBottom: '2rem' }} > changeActiveStep(0)} completed={activeStep >= 0} + data-subtitle="Get Started" + data-step="Overview" /> changeActiveStep(1)} completed={activeStep > 0} + data-subtitle="Understand your Duties" + data-step="Advicsories" /> changeActiveStep(2)} completed={activeStep > 1} + data-subtitle="Clients, Nodes & Validators" + data-step="Validator Setup" /> changeActiveStep(3)} completed={activeStep > 2} + data-subtitle="Secure your Keypairs" + data-step="Key Generation" /> changeActiveStep(4)} completed={activeStep > 3} + data-subtitle="Complete Setup" + data-step="Activation" /> ) diff --git a/src/pages/ValidatorOnboarding/KeyGeneration/KeyGenerationHeader.tsx b/src/pages/ValidatorOnboarding/KeyGeneration/KeyGenerationHeader.tsx index 886528f3..dd6ecea1 100644 --- a/src/pages/ValidatorOnboarding/KeyGeneration/KeyGenerationHeader.tsx +++ b/src/pages/ValidatorOnboarding/KeyGeneration/KeyGenerationHeader.tsx @@ -1,5 +1,5 @@ import { XStack } from 'tamagui' -import SyncCard from './SyncCard' +import KeyGenerationSyncCard from './KeyGenerationSyncCard' import KeyGenerationTitle from './KeyGenerationTitle' const KeyGenerationHeader = () => { @@ -7,8 +7,18 @@ const KeyGenerationHeader = () => { - - + + ) diff --git a/src/pages/ValidatorOnboarding/KeyGeneration/SyncCard.stories.ts b/src/pages/ValidatorOnboarding/KeyGeneration/KeyGenerationSyncCard.stories.ts similarity index 60% rename from src/pages/ValidatorOnboarding/KeyGeneration/SyncCard.stories.ts rename to src/pages/ValidatorOnboarding/KeyGeneration/KeyGenerationSyncCard.stories.ts index 0cfc8197..d7213cac 100644 --- a/src/pages/ValidatorOnboarding/KeyGeneration/SyncCard.stories.ts +++ b/src/pages/ValidatorOnboarding/KeyGeneration/KeyGenerationSyncCard.stories.ts @@ -1,16 +1,16 @@ import type { Meta, StoryObj } from '@storybook/react' -import SyncCard from './SyncCard' +import KeyGenerationSyncCard from './KeyGenerationSyncCard' const meta = { - title: 'ValidatorOnboarding/SyncCard', - component: SyncCard, + title: 'ValidatorOnboarding/KeyGenerationSyncCard', + component: KeyGenerationSyncCard, parameters: { layout: 'centered', }, tags: ['autodocs'], argTypes: {}, -} satisfies Meta +} satisfies Meta export default meta type Story = StoryObj @@ -20,5 +20,6 @@ export const Page: Story = { synced: 123.524, total: 172.503, title: 'Execution Sync Status', + color: '#2a4af5', }, } diff --git a/src/pages/ValidatorOnboarding/KeyGeneration/SyncCard.tsx b/src/pages/ValidatorOnboarding/KeyGeneration/KeyGenerationSyncCard.tsx similarity index 56% rename from src/pages/ValidatorOnboarding/KeyGeneration/SyncCard.tsx rename to src/pages/ValidatorOnboarding/KeyGeneration/KeyGenerationSyncCard.tsx index ce399e64..199d706b 100644 --- a/src/pages/ValidatorOnboarding/KeyGeneration/SyncCard.tsx +++ b/src/pages/ValidatorOnboarding/KeyGeneration/KeyGenerationSyncCard.tsx @@ -3,30 +3,14 @@ import StandardGauge from '../../../components/Charts/StandardGauge' import { ClearIcon } from '@status-im/icons' import { Text } from '@status-im/components' -type SyncCardProps = { +type KeyGenerationSyncCardProps = { synced: number total: number title: string + color: string } -const SyncCard = ({ synced, total, title }: SyncCardProps) => { - const data = () => { - return [ - { - id: 'storage', - label: 'Used', - value: synced, - color: '#2a4af5', - }, - { - id: 'storage', - label: 'Free', - value: total - synced || 1, - color: '#E7EAEE', - }, - ] - } - +const KeyGenerationSyncCard = ({ synced, total, title, color }: KeyGenerationSyncCardProps) => { return ( { width: '35px', }} > - + @@ -49,9 +48,9 @@ const SyncCard = ({ synced, total, title }: SyncCardProps) => { {synced} / {total} - + ) } -export default SyncCard +export default KeyGenerationSyncCard