mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-01-20 16:30:34 +00:00
Implement Card
This commit is contained in:
parent
e76bf01361
commit
df14eb9cd1
BIN
public/icons/nethermind-circle.png
Normal file
BIN
public/icons/nethermind-circle.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.7 KiB |
@ -0,0 +1,37 @@
|
||||
import { YStack } from 'tamagui'
|
||||
import Icon from '../../../components/General/Icon'
|
||||
import { Text } from '@status-im/components'
|
||||
|
||||
// make func component
|
||||
|
||||
type ExecClientCardProps = {
|
||||
name: string
|
||||
icon: string
|
||||
isComingSoon?: boolean
|
||||
}
|
||||
const ExecClientCard = ({ name, icon, isComingSoon }: ExecClientCardProps) => {
|
||||
const disabledCardStyle = {
|
||||
backgroundColor: '#F5F5F5',
|
||||
border: '1px solid #DCE0E5',
|
||||
borderRadius: '16px',
|
||||
padding: '2px 6px',
|
||||
}
|
||||
return (
|
||||
<YStack
|
||||
style={{
|
||||
backgroundColor: isComingSoon ? '#F5F5F5' : 'none',
|
||||
border: '1px solid #DCE0E5',
|
||||
borderRadius: '16px',
|
||||
padding: '12px 16px',
|
||||
width: '19%',
|
||||
}}
|
||||
space={'$12'}
|
||||
>
|
||||
<Text size={27} weight={'semibold'}>
|
||||
{name}
|
||||
</Text>
|
||||
<Icon src={icon} width={100} height={100} />
|
||||
</YStack>
|
||||
)
|
||||
}
|
||||
export default ExecClientCard
|
Loading…
x
Reference in New Issue
Block a user