Skip to content

Commit c0e5e4b

Browse files
authored
Merge pull request #13 from dev-five-git/main
ㅁㄴㅇ
2 parents 80d6fc7 + 6b2284c commit c0e5e4b

File tree

7 files changed

+99
-64
lines changed

7 files changed

+99
-64
lines changed

apps/landing/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
"react-dom": "^19.1.1",
2626
"react-markdown": "^10.1.0",
2727
"react-syntax-highlighter": "^15.6.6",
28-
"remark-gfm": "^4.0.1"
28+
"remark-gfm": "^4.0.1",
29+
"lenis": "1.3.11"
2930
},
3031
"devDependencies": {
3132
"@devup-ui/next-plugin": "workspace:*",

apps/landing/src/app/Bench.tsx

Lines changed: 55 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,58 @@ import { Box, Flex, Text, VStack } from '@devup-ui/react'
33
import { DevupUICard } from './DevupUICard'
44
import { OtherCard } from './OtherCard'
55

6+
const OTHER_CARDS = [
7+
{
8+
title: 'Chakra UI',
9+
version: '3.27.0',
10+
buildTime: '29.99s',
11+
buildSize: '200.4MB',
12+
url: 'https://chakra-ui.com',
13+
},
14+
{
15+
title: 'Mui',
16+
version: '7.3.2',
17+
buildTime: '22.21s',
18+
buildSize: '89.9MB',
19+
url: 'https://mui.com',
20+
},
21+
{
22+
title: 'Kuma UI',
23+
version: '1.5.9',
24+
buildTime: '21.61s',
25+
buildSize: '64.3MB',
26+
url: 'https://kuma-ui.com',
27+
},
28+
{
29+
title: 'Tailwindcss',
30+
version: '4.1.13',
31+
buildTime: '20.22s',
32+
buildSize: '54.8MB',
33+
url: 'https://tailwindcss.com',
34+
},
35+
{
36+
title: 'panda CSS',
37+
version: '1.3.1',
38+
buildTime: '22.01s',
39+
buildSize: '59.5MB',
40+
url: 'https://panda-css.com',
41+
},
42+
{
43+
title: 'styleX',
44+
version: '0.15.4',
45+
buildTime: '38.97s',
46+
buildSize: '54.7MB',
47+
url: 'https://stylexjs.com',
48+
},
49+
{
50+
title: 'vanilla extract',
51+
version: '1.17.4',
52+
buildTime: '20.09s',
53+
buildSize: '56.6MB',
54+
url: 'https://vanilla-extract.style',
55+
},
56+
]
57+
658
export function Bench() {
759
return (
860
<VStack
@@ -39,65 +91,17 @@ export function Bench() {
3991
scrollbarWidth="none"
4092
>
4193
<Flex
94+
alignItems="flex-end"
4295
flexWrap={[null, null, null, null, 'wrap']}
4396
gap={[3, null, 5]}
4497
justifyContent={[null, null, null, null, 'center']}
4598
px={[4, null, '40px', null, 0]}
99+
w="fit-content"
46100
>
47101
<Flex display={['none', null, null, null, 'flex']}>
48102
<DevupUICard />
49103
</Flex>
50-
{[
51-
{
52-
title: 'Chakra UI',
53-
version: '3.27.0',
54-
buildTime: '29.99s',
55-
buildSize: '210.1MB',
56-
url: 'https://chakra-ui.com',
57-
},
58-
{
59-
title: 'Mui',
60-
version: '7.3.2',
61-
buildTime: '22.21s',
62-
buildSize: '94.23MB',
63-
url: 'https://mui.com',
64-
},
65-
{
66-
title: 'Kuma UI',
67-
version: '1.5.9',
68-
buildTime: '21.61s',
69-
buildSize: '67.42MB',
70-
url: 'https://kuma-ui.com',
71-
},
72-
{
73-
title: 'Tailwindcss',
74-
version: '4.1.13',
75-
buildTime: '20.22s',
76-
buildSize: '57.41MB',
77-
url: 'https://tailwindcss.com',
78-
},
79-
{
80-
title: 'Panda CSS',
81-
version: '1.3.1',
82-
buildTime: '21.61s',
83-
buildSize: '62.43MB',
84-
url: 'https://panda-css.com',
85-
},
86-
{
87-
title: 'styleX',
88-
version: '0.15.4',
89-
buildTime: '38.97s',
90-
buildSize: '76.25MB',
91-
url: 'https://stylexjs.com',
92-
},
93-
{
94-
title: 'Vanilla Extract',
95-
version: '1.17.4',
96-
buildTime: '20.09s',
97-
buildSize: '59.36MB',
98-
url: 'https://vanilla-extract.style',
99-
},
100-
].map((item) => (
104+
{OTHER_CARDS.map((item) => (
101105
<OtherCard key={item.title} {...item} />
102106
))}
103107
</Flex>

apps/landing/src/app/DevupUICard.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export function DevupUICard() {
5353
color="transparent"
5454
typography="h4"
5555
>
56-
18.35s
56+
18.23s
5757
</Text>
5858
</Flex>
5959
</VStack>
@@ -76,7 +76,7 @@ export function DevupUICard() {
7676
color="transparent"
7777
typography="h4"
7878
>
79-
57.40MB
79+
54.8MB
8080
</Text>
8181
</Flex>
8282
</VStack>

apps/landing/src/app/OtherCard.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@ export function OtherCard({
2020
aspectRatio={[null, null, null, null, '1']}
2121
bg="$cardBg"
2222
borderRadius="20px"
23+
flex="1"
2324
flexDir={['row', null, 'column']}
24-
gap="40px"
25+
gap={['20px', null, '40px']}
26+
h={[null, null, null, null, '318px']}
2527
justifyContent="space-between"
26-
minW={[null, null, '240px', null, '300px']}
28+
minW={[null, null, '240px', null, 'none']}
2729
p={[6, null, '30px']}
2830
>
2931
<VStack gap="8px">
@@ -34,7 +36,7 @@ export function OtherCard({
3436
href={url}
3537
target="_blank"
3638
>
37-
<Text color="$captionBold" typography="h6">
39+
<Text color="$captionBold" typography="h6" whiteSpace="nowrap">
3840
{title}
3941
</Text>
4042
</Link>

apps/landing/src/app/TopBanner.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,11 @@ export function TopBanner() {
5555
<Box as="br" display={['none', null, 'initial']} />
5656
CSS in JS Preprocessor
5757
</Text>
58-
<Text color="$text" typography="h6Reg">
58+
<Text
59+
color="$text"
60+
textShadow="0 -2px 4px var(--base, #FFF), 0 2px 4px var(--base, #FFF)"
61+
typography="h6Reg"
62+
>
5963
Building the Future of CSS-in-JS
6064
<br />
6165
Analyze all possible scenarios at the fastest speed and style with

apps/landing/src/app/layout.tsx

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { Box, css, globalCss, ThemeScript } from '@devup-ui/react'
22
import { resetCss } from '@devup-ui/reset-css'
3+
import ReactLenis from 'lenis/react'
34
import type { Metadata } from 'next'
45

56
import { Footer } from '../components/Footer'
@@ -98,12 +99,14 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
9899
width="0"
99100
/>
100101
</noscript>
101-
<SearchModal />
102-
<Box bg="$background">
103-
<Header />
104-
{children}
105-
</Box>
106-
<Footer />
102+
<ReactLenis options={{ duration: 1.4 }} root>
103+
<SearchModal />
104+
<Box bg="$background">
105+
<Header />
106+
{children}
107+
</Box>
108+
<Footer />
109+
</ReactLenis>
107110
</body>
108111
</html>
109112
)

pnpm-lock.yaml

Lines changed: 21 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)