|
1 | 1 | import React from "react";
|
2 |
| -import { chakra, ButtonGroup, Button, Center, Image, Flex, Text, Link, Box, VStack } from "@chakra-ui/react"; |
| 2 | +import { chakra, Button, Center, Image, Flex, Text, Link, Box, VStack } from "@chakra-ui/react"; |
3 | 3 | import useCustomColorModes from "../hooks/useCustomColorModes";
|
4 | 4 |
|
5 |
| -const AfterSreCard = ({ title, description, externalLink, previewImage, backgroundColor }) => { |
| 5 | +const AfterSreCard = ({ title, description, externalLink, previewImage, backgroundColor, buttonText }) => { |
6 | 6 | const { borderColor, bgColor, primaryFontColor } = useCustomColorModes();
|
7 | 7 | return (
|
8 | 8 | <Center borderColor={borderColor} bgColor={backgroundColor}>
|
@@ -49,24 +49,19 @@ const AfterSreCard = ({ title, description, externalLink, previewImage, backgrou
|
49 | 49 | {description}
|
50 | 50 | </Text>
|
51 | 51 |
|
52 |
| - <ButtonGroup alignItems="center"> |
53 |
| - <Button |
54 |
| - as={Link} |
55 |
| - href={externalLink} |
56 |
| - variant="solid" |
57 |
| - fontSize={{ base: "xl", lg: "lg" }} |
58 |
| - border="2px" |
59 |
| - backgroundColor={bgColor} |
60 |
| - borderColor={borderColor} |
61 |
| - isExternal |
62 |
| - py="1.25rem" |
63 |
| - px={6} |
64 |
| - > |
65 |
| - <chakra.span color={primaryFontColor} textTransform="uppercase"> |
66 |
| - Join |
67 |
| - </chakra.span> |
68 |
| - </Button> |
69 |
| - </ButtonGroup> |
| 52 | + <Button |
| 53 | + as={Link} |
| 54 | + href={externalLink} |
| 55 | + fontSize={{ base: "xl", lg: "lg" }} |
| 56 | + colorScheme="green" |
| 57 | + isExternal |
| 58 | + py="1.25rem" |
| 59 | + px={6} |
| 60 | + textTransform="uppercase" |
| 61 | + textDecoration="none !important" |
| 62 | + > |
| 63 | + {buttonText} |
| 64 | + </Button> |
70 | 65 | </VStack>
|
71 | 66 | </VStack>
|
72 | 67 | <Box
|
|
0 commit comments