|
1 | 1 | import { useEffect, useState } from "react"
|
2 | 2 | import shuffle from "lodash/shuffle"
|
3 |
| -import { Box, Flex, Image, LinkBox, LinkOverlay } from "@chakra-ui/react" |
4 | 3 |
|
5 |
| -import InlineLink from "@/components/Link" |
6 |
| -import Text from "@/components/OldText" |
| 4 | +import { Flex } from "@/components/ui/flex" |
| 5 | +import InlineLink from "@/components/ui/Link" |
| 6 | +import { LinkBox, LinkOverlay } from "@/components/ui/link-box" |
7 | 7 |
|
8 | 8 | import data from "!!raw-loader!@/../.all-contributorsrc"
|
9 | 9 |
|
@@ -31,52 +31,31 @@ const Contributors = () => {
|
31 | 31 | have contributed so far!
|
32 | 32 | </p>
|
33 | 33 |
|
34 |
| - <Flex flexWrap="wrap"> |
| 34 | + <Flex className="flex-wrap"> |
35 | 35 | {contributorsList.map((contributor) => (
|
36 | 36 | <LinkBox
|
37 |
| - key={contributor.login} |
38 | 37 | as="div"
|
39 |
| - maxWidth="132px" |
40 |
| - margin="2" |
41 |
| - boxShadow="0px 14px 66px rgba(0, 0, 0, 0.07), 0px 10px 17px rgba(0, 0, 0, 0.03), 0px 4px 7px rgba(0, 0, 0, 0.05)" |
42 |
| - _hover={{ |
43 |
| - textDecoration: "none", |
44 |
| - borderRadius: "base", |
45 |
| - boxShadow: "0px 8px 17px rgba(0, 0, 0, 0.15)", |
46 |
| - background: "tableBackgroundHover", |
47 |
| - transition: "transform 0.1s", |
48 |
| - transform: "scale(1.02)", |
49 |
| - }} |
50 |
| - _focus={{ |
51 |
| - textDecoration: "none", |
52 |
| - borderRadius: "base", |
53 |
| - boxShadow: "0px 8px 17px rgba(0, 0, 0, 0.15)", |
54 |
| - background: "tableBackgroundHover", |
55 |
| - transition: "transform 0.1s", |
56 |
| - transform: "scale(1.02)", |
57 |
| - }} |
| 38 | + className="m-2 max-w-[132px] transform shadow transition-transform duration-100 hover:scale-[1.02] hover:rounded hover:bg-background-highlight focus:scale-[1.02] focus:rounded" |
| 39 | + key={contributor.login} |
58 | 40 | >
|
59 |
| - <Image |
60 |
| - width="132px" |
61 |
| - height="132px" |
| 41 | + <img |
| 42 | + className="h-[132px] w-[132px]" |
62 | 43 | src={contributor.avatar_url}
|
63 | 44 | alt={contributor.name}
|
64 | 45 | />
|
65 |
| - <Box padding="1rem"> |
66 |
| - <Text as="h3" fontSize="md" marginTop="2" marginBottom="4"> |
67 |
| - <LinkOverlay |
68 |
| - as={InlineLink} |
69 |
| - href={contributor.profile} |
70 |
| - hideArrow |
71 |
| - color="text" |
72 |
| - textDecoration="none" |
73 |
| - _hover={{ textDecoration: "none" }} |
74 |
| - isExternal |
75 |
| - > |
76 |
| - {contributor.name} |
| 46 | + <div className="p-4"> |
| 47 | + <h3 className="mb-4 mt-2 text-md"> |
| 48 | + <LinkOverlay asChild> |
| 49 | + <InlineLink |
| 50 | + className="text-body no-underline hover:no-underline" |
| 51 | + href={contributor.profile} |
| 52 | + hideArrow |
| 53 | + > |
| 54 | + {contributor.name} |
| 55 | + </InlineLink> |
77 | 56 | </LinkOverlay>
|
78 |
| - </Text> |
79 |
| - </Box> |
| 57 | + </h3> |
| 58 | + </div> |
80 | 59 | </LinkBox>
|
81 | 60 | ))}
|
82 | 61 | </Flex>
|
|
0 commit comments