Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/1cy card UI #208

Merged
merged 5 commits into from
Nov 7, 2024
Merged

Feat/1cy card UI #208

merged 5 commits into from
Nov 7, 2024

Conversation

rozanagy
Copy link
Contributor

@rozanagy rozanagy commented Nov 6, 2024

This pull request includes several changes to the one-click-yield-container component, primarily focusing on adding new features and improving the layout and styling. The most important changes include the addition of new vault types with logos, the creation of a new VaultTypeBoxPointChip component, and updates to the VaultTypeBox layout.

New Features:

  • Added new vault types with corresponding logos to the mockVaultTypes array in one-click-yield-container.select-vault-type-stack.tsx.
  • Created a new VaultTypeBoxPointChip component to display point multipliers with an image and background color.

Layout and Styling Improvements:

  • Updated VaultTypeBoxLayout to use VStack instead of HStack, adjusted spacing, and added background color.
  • Enhanced VaultTypeBox to include vault type logos, an info icon, a new button style, and additional sections for displaying APY and points.
  • Added a new depositBTC style variant to the button theme configuration.
Screenshot 2024-11-06 at 09 49 07

These changes collectively enhance the user interface and user experience of the one-click-yield-container by providing more visual information and improving the layout consistency.

@rozanagy rozanagy requested a review from Polybius93 November 6, 2024 08:54
Copy link
Collaborator

@Polybius93 Polybius93 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice job! Looks really good! Small things requested!

Comment on lines 46 to 88
<HStack w={'100%'} justifyContent={'space-between'}>
<HStack>
<Image src={vaultTypeLogoUrl} alt={'Enzyme logo'} />
<InfoOutlineIcon color={'purple.01'} />
</HStack>
<Button
variant={'depositBTC'}
// _hover={{ bg: 'orange.01', color: 'white.01' }}
onClick={() => handleSelectVaultTypeClick(vaultType)}
>
<HStack>
<Image src={'/images/deposit-img.png'} alt={'Deposit image'} />
<Text fontSize={'lg'} fontWeight={'800'} color={'white.01'}>
Deposit BTC
</Text>
</HStack>
</Button>
</HStack>
<HStack alignItems={'flex-start'} w={'100%'}>
<VStack alignItems={'flex-start'} w={'30%'}>
<Text fontSize={'md'} fontWeight={'800'} color={'white.02'}>
Current APY
</Text>
<Text fontSize={'lg'} fontWeight={'800'} color={'white.01'}>
+12.5%
</Text>
</VStack>
<VStack alignItems={'flex-start'} w={'70%'}>
<Text fontSize={'md'} fontWeight={'800'} color={'white.02'}>
Points
</Text>
<HStack>
{mockPointChips.map(pointChip => (
<VaultTypeBoxPointChip
key={pointChip.multiplier}
bgColor={pointChip.bgColor}
imgPath={pointChip.imgPath}
multiplier={pointChip.multiplier}
/>
))}
</HStack>
</VStack>
</HStack>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you break it down into smaller components or reusable components?

@Polybius93 Polybius93 merged commit a2d6402 into feat/updated-1cy Nov 7, 2024
6 checks passed
@Polybius93 Polybius93 deleted the feat/1cy-card-ui branch November 7, 2024 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants