@@ -7,9 +7,11 @@ import {
7
7
DropdownMenu ,
8
8
DropdownMenuContent ,
9
9
DropdownMenuItem ,
10
+ DropdownMenuLabel ,
10
11
DropdownMenuSeparator ,
11
12
DropdownMenuTrigger ,
12
13
} from "@rallly/ui/dropdown-menu" ;
14
+ import { Icon } from "@rallly/ui/icon" ;
13
15
import { Analytics } from "@vercel/analytics/react" ;
14
16
import { MenuIcon } from "lucide-react" ;
15
17
import { domAnimation , LazyMotion } from "motion/react" ;
@@ -59,7 +61,7 @@ export default async function Root({
59
61
alt = "rallly.co"
60
62
/>
61
63
</ Link >
62
- < nav className = "hidden items-center space-x-8 lg:flex" >
64
+ < nav className = "hidden items-center gap-2 lg:flex" >
63
65
< NavLink href = "https://support.rallly.co/workflow/create" >
64
66
< Trans
65
67
t = { t }
@@ -79,32 +81,34 @@ export default async function Root({
79
81
</ nav >
80
82
</ div >
81
83
< div className = "flex items-center gap-4 sm:gap-8" >
82
- < Link
83
- href = { linkToApp ( "/login" ) }
84
- className = "hover:text-primary text-muted-foreground hidden rounded text-sm font-medium hover:no-underline hover:underline-offset-2 lg:inline-flex"
85
- >
86
- < Trans t = { t } i18nKey = "login" defaults = "Login" />
87
- </ Link >
88
- < Button
89
- asChild
90
- variant = "primary"
91
- className = "rounded-full px-3"
92
- >
93
- < Link href = { linkToApp ( "/register" ) } >
94
- < Trans t = { t } i18nKey = "signUp" defaults = "Sign up" />
95
- </ Link >
96
- </ Button >
84
+ < div className = "hidden items-center gap-2 sm:flex" >
85
+ < Button variant = "ghost" asChild >
86
+ < Link href = { linkToApp ( "/login" ) } >
87
+ < Trans t = { t } i18nKey = "login" defaults = "Login" />
88
+ </ Link >
89
+ </ Button >
90
+ < Button asChild variant = "primary" >
91
+ < Link href = { linkToApp ( "/register" ) } >
92
+ < Trans t = { t } i18nKey = "signUp" defaults = "Sign up" />
93
+ </ Link >
94
+ </ Button >
95
+ </ div >
97
96
< div className = "flex items-center justify-center lg:hidden" >
98
97
< DropdownMenu >
99
- < DropdownMenuTrigger >
100
- < MenuIcon className = "size-6" />
98
+ < DropdownMenuTrigger asChild >
99
+ < Button size = "sm" variant = "ghost" >
100
+ < Icon >
101
+ < MenuIcon />
102
+ </ Icon >
103
+ </ Button >
101
104
</ DropdownMenuTrigger >
102
- < DropdownMenuContent align = "end" sideOffset = { 16 } >
105
+ < DropdownMenuContent
106
+ className = "w-48"
107
+ align = "end"
108
+ sideOffset = { 16 }
109
+ >
103
110
< DropdownMenuItem asChild >
104
- < Link
105
- className = "flex items-center gap-3 p-2 text-lg"
106
- href = "https://support.rallly.co/workflow/create"
107
- >
111
+ < Link href = "https://support.rallly.co/workflow/create" >
108
112
< Trans
109
113
t = { t }
110
114
i18nKey = "howItWorks"
@@ -113,38 +117,41 @@ export default async function Root({
113
117
</ Link >
114
118
</ DropdownMenuItem >
115
119
< DropdownMenuItem asChild >
116
- < Link
117
- className = "flex items-center gap-3 p-2 text-lg"
118
- href = "/pricing"
119
- >
120
+ < Link href = "/pricing" >
120
121
< Trans t = { t } i18nKey = "pricing" defaults = "Pricing" />
121
122
</ Link >
122
123
</ DropdownMenuItem >
123
124
< DropdownMenuItem asChild >
124
- < Link
125
- className = "flex items-center gap-3 p-2 text-lg"
126
- href = "/blog"
127
- >
125
+ < Link href = "/blog" >
128
126
< Trans t = { t } i18nKey = "blog" />
129
127
</ Link >
130
128
</ DropdownMenuItem >
131
129
< DropdownMenuItem asChild >
132
- < Link
133
- className = "flex items-center gap-3 p-2 text-lg"
134
- href = "https://support.rallly.co"
135
- >
130
+ < Link href = "https://support.rallly.co" >
136
131
< Trans t = { t } i18nKey = "support" />
137
132
</ Link >
138
133
</ DropdownMenuItem >
139
134
< DropdownMenuSeparator />
140
- < DropdownMenuItem asChild >
141
- < Link
142
- className = "flex items-center gap-3 p-2 text-lg"
143
- href = { linkToApp ( "/login" ) }
135
+ < DropdownMenuLabel className = "space-y-2" >
136
+ < Button
137
+ variant = "secondary"
138
+ className = "w-full"
139
+ asChild
144
140
>
145
- < Trans t = { t } i18nKey = "login" defaults = "Login" />
146
- </ Link >
147
- </ DropdownMenuItem >
141
+ < Link href = { linkToApp ( "/login" ) } >
142
+ < Trans t = { t } i18nKey = "login" defaults = "Login" />
143
+ </ Link >
144
+ </ Button >
145
+ < Button variant = "primary" className = "w-full" asChild >
146
+ < Link href = { linkToApp ( "/register" ) } >
147
+ < Trans
148
+ t = { t }
149
+ i18nKey = "signUp"
150
+ defaults = "Sign up"
151
+ />
152
+ </ Link >
153
+ </ Button >
154
+ </ DropdownMenuLabel >
148
155
</ DropdownMenuContent >
149
156
</ DropdownMenu >
150
157
</ div >
0 commit comments