Skip to content

Commit

Permalink
Merge pull request #265 from EveripediaNetwork/raffle-page
Browse files Browse the repository at this point in the history
modify raffle card ui
  • Loading branch information
Damola18 authored May 14, 2024
2 parents 0ca7fe7 + ba56a06 commit 8094a40
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/components/client/RafflePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,14 @@ import {
chakra,
} from '@chakra-ui/react'
import { useRouter } from 'next/navigation'
import { useColorModeValue } from '@chakra-ui/react'

const RafflePage = () => {
const router = useRouter()
const shadowColor = useColorModeValue(
'0px 5px 10px rgba(245, 190, 216, 0.2)',
'none',
)
return (
<Flex pt={{ base: '5', lg: '6' }} direction="column" gap="6" pb="20">
<Flex direction="column" gap="1">
Expand All @@ -39,6 +44,11 @@ const RafflePage = () => {
maxW="576px"
onClick={() => router.push(`/dashboard/raffles/${raffle.slug}`)}
cursor="pointer"
transition="all 0.3s"
_hover={{
transform: 'scale(1.01)',
boxShadow: shadowColor,
}}
>
<Image
src={raffle.imageUrl}
Expand Down

0 comments on commit 8094a40

Please sign in to comment.