mirror of https://github.com/sunface/rust-course
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
574 B
22 lines
574 B
import React from "react"
|
|
import { Box, BoxProps, useColorModeValue } from "@chakra-ui/react"
|
|
|
|
export const Card = (props: BoxProps) => {
|
|
const bg = useColorModeValue("white", "gray.780")
|
|
return (
|
|
<Box
|
|
bg={bg}
|
|
borderRadius=".5rem"
|
|
borderWidth="1px"
|
|
p={[2,2,4,4]}
|
|
// boxShadow="0 1px 1px 0 rgb(0 0 0 / 5%)"
|
|
backgroundImage="linear-gradient(45deg, rgb(237, 132, 129) 0%, rgb(51, 128, 236) 100%)"
|
|
backgroundPosition="initial initial"
|
|
backgroundRepeat="initial initial"
|
|
{...props}
|
|
/>
|
|
)
|
|
}
|
|
|
|
export default Card
|