2022-01-08 22:38:17 +01:00
|
|
|
import { Box, Stack, Text, useColorModeValue as mode } from "@chakra-ui/react";
|
|
|
|
import * as React from "react";
|
2021-06-28 15:58:43 +02:00
|
|
|
|
2022-01-08 22:38:17 +01:00
|
|
|
export const Feature = props => {
|
|
|
|
const { title, children, icon } = props;
|
|
|
|
return (
|
|
|
|
<Stack
|
|
|
|
spacing={{ base: "3", md: "6" }}
|
|
|
|
direction={{ base: "column", md: "row" }}
|
|
|
|
>
|
|
|
|
<Box fontSize="6xl">{icon}</Box>
|
|
|
|
<Stack spacing="1">
|
|
|
|
<Text fontWeight="extrabold" fontSize="lg">
|
|
|
|
{title}
|
|
|
|
</Text>
|
|
|
|
<Box color={mode("gray.600", "gray.400")}>{children}</Box>
|
|
|
|
</Stack>
|
|
|
|
</Stack>
|
|
|
|
);
|
|
|
|
};
|