docs(lp): 💄 Refont LP for v2
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
import { Flex, VStack } from '@chakra-ui/layout'
|
||||
import { IconProps, Text } from '@chakra-ui/react'
|
||||
import React from 'react'
|
||||
import React, { useState } from 'react'
|
||||
|
||||
type FeatureCardProps = {
|
||||
Icon: (props: IconProps) => JSX.Element
|
||||
@ -9,8 +9,18 @@ type FeatureCardProps = {
|
||||
}
|
||||
|
||||
export const FeatureCard = ({ Icon, title, content }: FeatureCardProps) => {
|
||||
const [isHovered, setIsHovered] = useState(false)
|
||||
|
||||
return (
|
||||
<VStack p="6" bgColor="gray.100" pos="relative" rounded="lg" spacing="4">
|
||||
<VStack
|
||||
p="6"
|
||||
bgColor="gray.800"
|
||||
pos="relative"
|
||||
rounded="lg"
|
||||
spacing="4"
|
||||
onMouseEnter={() => setIsHovered(true)}
|
||||
onMouseLeave={() => setIsHovered(false)}
|
||||
>
|
||||
<Flex
|
||||
boxSize="50px"
|
||||
bgColor="blue.500"
|
||||
@ -21,10 +31,12 @@ export const FeatureCard = ({ Icon, title, content }: FeatureCardProps) => {
|
||||
pos="absolute"
|
||||
top="-25px"
|
||||
shadow="lg"
|
||||
transform={isHovered ? 'translateY(-5px)' : 'translateY(0px)'}
|
||||
transition="transform 300ms ease-out"
|
||||
>
|
||||
<Icon boxSize="25px" />
|
||||
</Flex>
|
||||
<Text textAlign="center" fontWeight="semibold">
|
||||
<Text textAlign="center" fontWeight="semibold" fontSize="lg">
|
||||
{title}
|
||||
</Text>
|
||||
<Text textAlign="center" color="gray.500">
|
||||
|
Reference in New Issue
Block a user