Add OS Cards

This commit is contained in:
Hristo Nedelkov 2023-08-28 23:59:12 +03:00
parent e37fdbe089
commit b243a00709
6 changed files with 42 additions and 0 deletions

BIN
public/icons/Linux.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

BIN
public/icons/MAC.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

BIN
public/icons/windows.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

View File

@ -11,6 +11,7 @@ import ValidatorBoxWrapper from './ValidatorBoxWrapper/ValidatorBoxWrapper'
import { Button } from '@status-im/components' import { Button } from '@status-im/components'
import { useNavigate } from 'react-router-dom' import { useNavigate } from 'react-router-dom'
import ValidatorSetupInstall from './ValidatorSetup/ValidatorInstall' import ValidatorSetupInstall from './ValidatorSetup/ValidatorInstall'
import ValidatorSetup from './ValidatorSetup/ValidatorSetup'
const ValidatorOnboarding = () => { const ValidatorOnboarding = () => {
const [activeStep, setActiveStep] = useState(0) const [activeStep, setActiveStep] = useState(0)

View File

@ -0,0 +1,33 @@
import { Stack, YStack } from 'tamagui'
import Icon from '../../../components/General/Icon'
import { Text } from '@status-im/components'
// make func component
type OsCardProps = {
name: string
icon: string
isSelected?: boolean
}
const OsCard = ({ name, icon, isSelected }: OsCardProps) => {
return (
<YStack
style={{
backgroundColor: isSelected ? '#2A4AF50D' : 'none',
border: isSelected ? '1px solid #2A4AF566' : '1px solid rgba(0, 0, 0, 0.15);',
borderRadius: '16px',
padding: '12px 16px',
width: '30%',
}}
space={'$12'}
>
<Stack>
<Text size={27} weight={'semibold'}>
{name}
</Text>
</Stack>
<Icon src={icon} width={100} height={100} />
</YStack>
)
}
export default OsCard

View File

@ -1,6 +1,7 @@
import { XStack, Stack, YStack } from 'tamagui' import { XStack, Stack, YStack } from 'tamagui'
import { InformationBox, Text } from '@status-im/components' import { InformationBox, Text } from '@status-im/components'
import { CloseCircleIcon } from '@status-im/icons' import { CloseCircleIcon } from '@status-im/icons'
import OsCard from './OsCard'
const ValidatorSetupInstall = () => { const ValidatorSetupInstall = () => {
return ( return (
@ -34,6 +35,7 @@ const ValidatorSetupInstall = () => {
borderRadius: '15px', borderRadius: '15px',
padding: '6px 12px', padding: '6px 12px',
}} }}
space={'$3'}
> >
<Text size={27}> Installing Geth</Text> <Text size={27}> Installing Geth</Text>
<Text size={13}> <Text size={13}>
@ -49,6 +51,12 @@ const ValidatorSetupInstall = () => {
are also provided in each section. are also provided in each section.
</Text> </Text>
</YStack> </YStack>
{/* Cards */}
<XStack justifyContent={'space-between'} space={'$3'}>
<OsCard icon="/icons/MAC.png" name="Mac" isSelected={true}></OsCard>
<OsCard icon="/icons/Linux.png" name="Linux"></OsCard>
<OsCard icon="/icons/windows.png" name="Windows"></OsCard>
</XStack>
</YStack> </YStack>
</Stack> </Stack>
</YStack> </YStack>