diff --git a/web-ui/components/Airdrop/airdropSection.tsx b/web-ui/components/Airdrop/airdropSection.tsx index 56f3d5ab3..6dd10f012 100644 --- a/web-ui/components/Airdrop/airdropSection.tsx +++ b/web-ui/components/Airdrop/airdropSection.tsx @@ -14,16 +14,62 @@ import { HStack, useColorModeValue, Icon, + Badge, + useDisclosure, } from '@chakra-ui/react'; -import { CheckIcon, ChevronRightIcon, InfoOutlineIcon } from '@chakra-ui/icons'; +import { CheckIcon, ChevronDownIcon, ChevronRightIcon, InfoOutlineIcon } from '@chakra-ui/icons'; +import { useAccordionStyles } from '@chakra-ui/accordion'; +import { useState } from 'react'; + +interface AirdropAccordionItemProps { + index: number; + defaultIsOpen?: boolean; +} + +const AirdropAccordionItem: React.FC = ({ index, defaultIsOpen }) => { + const { isOpen, onToggle } = useDisclosure({ defaultIsOpen }); + + return ( + +

+ + + {index + 1} + + + {index === 0 ? 'CLAIM INITIAL QCK AIRDROP' : 'ACTION DESCRIPTION'} + + + +

+ {isOpen && ( + + + Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. + + + )} +
+ ); +}; const AirdropSection = () => { - const bgColor = useColorModeValue('white', 'gray.800'); - const textColor = useColorModeValue('gray.600', 'gray.200'); + const { isOpen, onToggle } = useDisclosure(); return ( - + Cosmos Hub Active Airdrop @@ -33,26 +79,13 @@ const AirdropSection = () => { - + {Array.from({ length: 5 }).map((_, index) => ( - -

- - - Step {index + 1}: {index === 0 ? 'CLAIM INITIAL QCK AIRDROP' : 'ACTION DESCRIPTION'} - - - -

- - {/* Replace this with actual content */} - Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. - -
+ ))}
- + Participate in Other Airdrops @@ -63,9 +96,7 @@ const AirdropSection = () => { {['OSMOSIS', 'JUNO', 'STARGAZE', 'REGEN', 'COSMOS'].map((chain) => ( - - {chain} - + {chain}