|
1 | | -import { Box, Img, Table, TableContainer, Tbody, Td, Text, Th, Thead, Tr } from '@chakra-ui/react' |
2 | | -import { goldBadgeSVG, silverBadgeSVG, passingBadgeSVG, pendingBadgeSVG } from '../assets/images' |
| 1 | +import { |
| 2 | + Box, |
| 3 | + Img, |
| 4 | + Table, |
| 5 | + TableContainer, |
| 6 | + Tbody, |
| 7 | + Td, |
| 8 | + Text, |
| 9 | + Th, |
| 10 | + Thead, |
| 11 | + Tr, |
| 12 | +} from "@chakra-ui/react"; |
| 13 | +import { |
| 14 | + goldBadgeSVG, |
| 15 | + silverBadgeSVG, |
| 16 | + passingBadgeSVG, |
| 17 | + pendingBadgeSVG, |
| 18 | +} from "../assets/images"; |
3 | 19 |
|
4 | 20 | const BadgeLevels = () => { |
5 | | - return ( |
6 | | - <Box |
7 | | - as='section' |
8 | | - py={{base: "27px", md: "72px"}} |
9 | | - px={{base: "15px", md: "100px"}} |
10 | | - mx={{base: '16px', md: "0"}} |
11 | | - shadow={{base: "md", md: "none"}} |
12 | | - rounded={{base: "2xl", md: 'none'}} |
| 21 | + return ( |
| 22 | + <Box |
| 23 | + as="section" |
| 24 | + py={{ base: "27px", md: "72px" }} |
| 25 | + px={{ base: "15px", md: "100px" }} |
| 26 | + mx={{ base: "16px", md: "0" }} |
| 27 | + shadow={{ base: "md", md: "none" }} |
| 28 | + rounded={{ base: "2xl", md: "none" }} |
13 | 29 | > |
14 | | - <Box as='article' maxWidth={"1074px"}> |
15 | | - <Text as={'h1'} fontSize={{ base: '24px', md: '48px' }} fontWeight={500}> |
16 | | - Motivation to apply |
17 | | - </Text> |
18 | | - <Box as='section'> |
19 | | - <Text as={'p'} fontSize={{ base: '14px', md: '16px' }}> |
20 | | - The primary motivation to apply for a CHAOSS D&I Badge is the badge itself! The awarded |
21 | | - event can show the open source community that they foster healthy D&I practices with a |
22 | | - CHAOSS badge. |
23 | | - </Text> |
24 | | - <Img src={passingBadgeSVG} alt='Passing Badge' width={"203px"} height={"40px"} my={"16px"}/> |
25 | | - <Text as={'p'} fontSize={{ base: '14px', md: '16px' }}> |
26 | | - Applying for a badge supports D&I efforts within an open source community by expressing |
27 | | - that your event is willing to improve the ways the work. These efforts can have affects |
28 | | - to D&I practices in your event and even outside of your project space. |
29 | | - </Text> |
30 | | - </Box> |
31 | | - </Box> |
32 | | - <Box as='article' maxW={"1053px"} mt={{base: "24px", md: "42px"}}> |
33 | | - <Text as={'h1'} fontWeight={{ base: 500, md: 600 }} fontSize={{ base: '24px', md: '34px' }}> |
34 | | - Badge Levels |
35 | | - </Text> |
36 | | - <Text as={'p'} fontSize={{ base: '14px', md: '16px' }}> |
37 | | - Badges are assigned according to how the Reviewers mark out the review checklist according |
38 | | - to the the information initially filled in by the Applicant. The percentages are |
39 | | - calculated excluding the initial checks, based of the average of checklists of at least |
40 | | - two reviewers. |
41 | | - </Text> |
42 | | - </Box> |
43 | | - <TableContainer mt={{base: "24px", md: "73px"}}> |
44 | | - <Table variant={"unstyled"} size={{base: "md", md: "lg"}} maxW={"1130px"}> |
| 30 | + <Box as="article" maxWidth={"1074px"}> |
| 31 | + <Text |
| 32 | + as={"h1"} |
| 33 | + fontSize={{ base: "24px", md: "48px" }} |
| 34 | + fontWeight={500} |
| 35 | + > |
| 36 | + Motivation to apply |
| 37 | + </Text> |
| 38 | + <Box as="section"> |
| 39 | + <Text as={"p"} fontSize={{ base: "14px", md: "16px" }}> |
| 40 | + The primary motivation to apply for a CHAOSS D&I Badge is the badge |
| 41 | + itself! The awarded event can show the open source community that |
| 42 | + they foster healthy D&I practices with a CHAOSS badge. |
| 43 | + </Text> |
| 44 | + <Img |
| 45 | + src={passingBadgeSVG} |
| 46 | + alt="Passing Badge" |
| 47 | + width={"203px"} |
| 48 | + height={"40px"} |
| 49 | + my={"16px"} |
| 50 | + /> |
| 51 | + <Text as={"p"} fontSize={{ base: "14px", md: "16px" }}> |
| 52 | + Applying for a badge supports D&I efforts within an open source |
| 53 | + community by expressing that your event is willing to improve the |
| 54 | + ways the work. These efforts can have affects to D&I practices in |
| 55 | + your event and even outside of your project space. |
| 56 | + </Text> |
| 57 | + </Box> |
| 58 | + </Box> |
| 59 | + <Box as="article" maxW={"1053px"} mt={{ base: "24px", md: "42px" }}> |
| 60 | + <Text |
| 61 | + as={"h1"} |
| 62 | + fontWeight={{ base: 500, md: 600 }} |
| 63 | + fontSize={{ base: "24px", md: "34px" }} |
| 64 | + > |
| 65 | + Badge Levels |
| 66 | + </Text> |
| 67 | + <Text as={"p"} fontSize={{ base: "14px", md: "16px" }}> |
| 68 | + Badges are assigned according to how the Reviewers mark out the review |
| 69 | + checklist according to the the information initially filled in by the |
| 70 | + Applicant. The percentages are calculated excluding the initial |
| 71 | + checks, based of the average of checklists of at least two reviewers. |
| 72 | + </Text> |
| 73 | + </Box> |
| 74 | + <TableContainer mt={{ base: "24px", md: "73px" }}> |
| 75 | + <Table |
| 76 | + variant={"unstyled"} |
| 77 | + size={{ base: "md", md: "lg" }} |
| 78 | + maxW={"1130px"} |
| 79 | + > |
45 | 80 | <Thead> |
46 | 81 | <Tr> |
47 | | - <Th fontWeight={700}>Level</Th> |
48 | | - <Th fontWeight={700}>Badge</Th> |
49 | | - <Th fontWeight={700}>Percentage of Requirements Met</Th> |
| 82 | + <Th fontWeight={700}>Level</Th> |
| 83 | + <Th fontWeight={700}>Badge</Th> |
| 84 | + <Th fontWeight={700}>Percentage of Requirements Met</Th> |
50 | 85 | </Tr> |
51 | 86 | </Thead> |
52 | 87 | <Tbody> |
53 | 88 | <Tr> |
54 | 89 | <Td>Pending</Td> |
55 | 90 | <Td> |
56 | | - <Img src={pendingBadgeSVG} width={"162px"} height={"32px"} alt='Pending Badge' /> |
| 91 | + <Img |
| 92 | + src={pendingBadgeSVG} |
| 93 | + width={"162px"} |
| 94 | + height={"32px"} |
| 95 | + alt="Pending Badge" |
| 96 | + /> |
57 | 97 | </Td> |
58 | 98 | <Td>Less than 40%</Td> |
59 | 99 | </Tr> |
60 | | - |
| 100 | + |
61 | 101 | <Tr> |
62 | 102 | <Td>Passing</Td> |
63 | 103 | <Td> |
64 | | - <Img src={passingBadgeSVG} width={"158px"} height={"32px"} alt='Passing Badge' /> |
| 104 | + <Img |
| 105 | + src={passingBadgeSVG} |
| 106 | + width={"158px"} |
| 107 | + height={"32px"} |
| 108 | + alt="Passing Badge" |
| 109 | + /> |
65 | 110 | </Td> |
66 | 111 | <Td>Greater than or equal to 40% and less than 60%</Td> |
67 | 112 | </Tr> |
68 | 113 |
|
69 | 114 | <Tr> |
70 | 115 | <Td>Silver</Td> |
71 | 116 | <Td> |
72 | | - <Img src={silverBadgeSVG} width={"142px"} height={"32px"} alt='Silver Badge' /> |
| 117 | + <Img |
| 118 | + src={silverBadgeSVG} |
| 119 | + width={"142px"} |
| 120 | + height={"32px"} |
| 121 | + alt="Silver Badge" |
| 122 | + /> |
73 | 123 | </Td> |
74 | 124 | <Td>Greater than 60% or less than 80%</Td> |
75 | 125 | </Tr> |
76 | 126 |
|
77 | 127 | <Tr> |
78 | 128 | <Td>Gold</Td> |
79 | 129 | <Td> |
80 | | - <Img src={goldBadgeSVG} width={"133px"} height={"32px"} alt='Gold Badge' /> |
| 130 | + <Img |
| 131 | + src={goldBadgeSVG} |
| 132 | + width={"133px"} |
| 133 | + height={"32px"} |
| 134 | + alt="Gold Badge" |
| 135 | + /> |
81 | 136 | </Td> |
82 | 137 | <Td>Greater than 80%</Td> |
83 | 138 | </Tr> |
84 | 139 | </Tbody> |
85 | 140 | </Table> |
86 | | - </TableContainer> |
87 | | - </Box> |
88 | | - ) |
89 | | -} |
| 141 | + </TableContainer> |
| 142 | + </Box> |
| 143 | + ); |
| 144 | +}; |
90 | 145 |
|
91 | | -export default BadgeLevels |
| 146 | +export default BadgeLevels; |
0 commit comments