|
1 | | -import { Flex, Text, VStack } from '@devup-ui/react' |
| 1 | +import { Box, Flex, Text, VStack } from '@devup-ui/react' |
2 | 2 |
|
3 | 3 | import { DevupUICard } from './DevupUICard' |
4 | 4 | import { OtherCard } from './OtherCard' |
5 | 5 |
|
6 | 6 | export function Bench() { |
7 | 7 | return ( |
8 | | - <VStack alignItems="center" py="60px" w="100%"> |
9 | | - <VStack gap="30px" maxW="1440px" px="40px" w="100%"> |
10 | | - <VStack gap="16px" w="805px"> |
| 8 | + <VStack |
| 9 | + alignItems="center" |
| 10 | + overflow="hidden" |
| 11 | + py={['40px', null, '50px', null, '60px']} |
| 12 | + w="100%" |
| 13 | + > |
| 14 | + <VStack |
| 15 | + gap="30px" |
| 16 | + maxW="1440px" |
| 17 | + px={[null, null, null, null, '40px']} |
| 18 | + w="100%" |
| 19 | + > |
| 20 | + <VStack |
| 21 | + gap="16px" |
| 22 | + mx={[4, null, '40px', null, 0]} |
| 23 | + textAlign={['center', null, 'left']} |
| 24 | + wordBreak="keep-all" |
| 25 | + > |
11 | 26 | <Text color="$title" typography="h4"> |
12 | 27 | Comparison Bechmarks |
13 | 28 | </Text> |
14 | 29 | <Text color="$text" typography="textL"> |
15 | 30 | Next.js Build Time and Build Size (github action - ubuntu-latest) |
16 | 31 | </Text> |
17 | 32 | </VStack> |
18 | | - <Flex |
19 | | - alignItems="end" |
20 | | - flexWrap="wrap" |
21 | | - gap="20px" |
22 | | - justifyContent="center" |
23 | | - > |
| 33 | + |
| 34 | + <Flex display={[null, null, null, null, 'none']}> |
24 | 35 | <DevupUICard /> |
25 | | - {[ |
26 | | - { |
27 | | - title: 'tailwindcss', |
28 | | - version: '4.1.13', |
29 | | - buildTime: '20.22s', |
30 | | - buildSize: '57,415kB', |
31 | | - url: 'https://tailwindcss.com', |
32 | | - }, |
33 | | - { |
34 | | - title: 'styleX', |
35 | | - version: '0.15.4', |
36 | | - buildTime: '38.97s', |
37 | | - buildSize: '76,257kB', |
38 | | - url: 'https://stylexjs.com', |
39 | | - }, |
40 | | - { |
41 | | - title: 'vanilla-extract', |
42 | | - version: '1.17.4', |
43 | | - buildTime: '20.09s', |
44 | | - buildSize: '59,366kB', |
45 | | - url: 'https://vanilla-extract.style', |
46 | | - }, |
47 | | - { |
48 | | - title: 'kuma-ui', |
49 | | - version: '1.5.9', |
50 | | - buildTime: '21.61s', |
51 | | - buildSize: '67,422kB', |
52 | | - url: 'https://kuma-ui.com', |
53 | | - }, |
54 | | - { |
55 | | - title: 'panda-css', |
56 | | - version: '1.3.1', |
57 | | - buildTime: '22.01s', |
58 | | - buildSize: '62,431kB', |
59 | | - url: 'https://panda-css.com', |
60 | | - }, |
61 | | - { |
62 | | - title: 'chakra-ui', |
63 | | - version: '3.27.0', |
64 | | - buildTime: '29.99s', |
65 | | - buildSize: '210,122kB', |
66 | | - url: 'https://chakra-ui.com', |
67 | | - }, |
68 | | - { |
69 | | - title: 'mui', |
70 | | - version: '7.3.2', |
71 | | - buildTime: '22.21s', |
72 | | - buildSize: '94,231kB', |
73 | | - url: 'https://mui.com', |
74 | | - }, |
75 | | - ].map((item) => ( |
76 | | - <OtherCard key={item.title} {...item} /> |
77 | | - ))} |
78 | 36 | </Flex> |
| 37 | + <Box |
| 38 | + overflow={['auto', null, null, null, 'visible']} |
| 39 | + scrollbarWidth="none" |
| 40 | + > |
| 41 | + <Flex |
| 42 | + flexWrap={[null, null, null, null, 'wrap']} |
| 43 | + gap={[3, null, 5]} |
| 44 | + justifyContent={[null, null, null, null, 'center']} |
| 45 | + px={[4, null, '40px', null, 0]} |
| 46 | + > |
| 47 | + <Flex display={['none', null, null, null, 'flex']}> |
| 48 | + <DevupUICard /> |
| 49 | + </Flex> |
| 50 | + {[ |
| 51 | + { |
| 52 | + title: 'Chakra UI', |
| 53 | + version: '3.24.2', |
| 54 | + buildTime: '29.3s', |
| 55 | + buildSize: '186.2MB', |
| 56 | + url: 'https://chakra-ui.com', |
| 57 | + }, |
| 58 | + { |
| 59 | + title: 'Mui', |
| 60 | + version: '7.3.1', |
| 61 | + buildTime: '21.6s', |
| 62 | + buildSize: '84.3MB', |
| 63 | + url: 'https://mui.com', |
| 64 | + }, |
| 65 | + { |
| 66 | + title: 'Kuma UI', |
| 67 | + version: '1.5.9', |
| 68 | + buildTime: '20.6s', |
| 69 | + buildSize: '60.3MB', |
| 70 | + url: 'https://kuma-ui.com', |
| 71 | + }, |
| 72 | + { |
| 73 | + title: 'Tailwindcss', |
| 74 | + version: '4.1.13', |
| 75 | + buildTime: '20.2s', |
| 76 | + buildSize: '54.7MB', |
| 77 | + url: 'https://tailwindcss.com', |
| 78 | + }, |
| 79 | + { |
| 80 | + title: 'panda CSS', |
| 81 | + version: '1.3.1', |
| 82 | + buildTime: '22.0s', |
| 83 | + buildSize: '59.5MB', |
| 84 | + url: 'https://panda-css.com', |
| 85 | + }, |
| 86 | + { |
| 87 | + title: 'styleX', |
| 88 | + version: '0.15.4', |
| 89 | + buildTime: '38.9s', |
| 90 | + buildSize: '72.7MB', |
| 91 | + url: 'https://stylexjs.com', |
| 92 | + }, |
| 93 | + { |
| 94 | + title: 'vanilla extract', |
| 95 | + version: '1.17.4', |
| 96 | + buildTime: '20.1s', |
| 97 | + buildSize: '56.6MB', |
| 98 | + url: 'https://vanilla-extract.style', |
| 99 | + }, |
| 100 | + ].map((item) => ( |
| 101 | + <OtherCard key={item.title} {...item} /> |
| 102 | + ))} |
| 103 | + </Flex> |
| 104 | + </Box> |
79 | 105 | </VStack> |
80 | 106 | </VStack> |
81 | 107 | ) |
|
0 commit comments