@@ -123,15 +123,6 @@ function BrandSection({ currentYear }: { currentYear: number }) {
123123 />
124124 </ Link >
125125 < p className = "text-sm text-neutral-500 mb-4" > Fastrepl © { currentYear } </ p >
126- < p className = "text-sm text-neutral-600 mb-3" >
127- Are you in back-to-back meetings?{ " " }
128- < Link
129- to = "/auth"
130- className = "text-neutral-600 hover:text-stone-600 transition-colors underline decoration-solid"
131- >
132- Get started
133- </ Link >
134- </ p >
135126
136127 < div className = "mb-4" >
137128 < Popover open = { popoverOpen } onOpenChange = { setPopoverOpen } >
@@ -141,40 +132,39 @@ function BrandSection({ currentYear }: { currentYear: number }) {
141132 e . preventDefault ( ) ;
142133 form . handleSubmit ( ) ;
143134 } }
144- className = "flex items-center gap-2 "
135+ className = "flex items-center"
145136 >
146137 < form . Field name = "email" >
147138 { ( field ) => (
148- < div className = "relative flex-1 max-w-[220px]" >
149- < MailIcon className = "absolute left-2.5 top-1/2 -translate-y-1/2 size-3.5 text-neutral-400" />
139+ < div className = { cn ( [
140+ "relative flex items-center max-w-64 border border-neutral-100 laptop:border-l-0 bg-white overflow-hidden transition-all" ,
141+ "focus-within:ring-1 focus-within:ring-stone-400 focus-within:border-stone-400" ,
142+ ] ) } >
143+ < MailIcon className = "absolute left-2.5 size-3.5 text-neutral-400" />
150144 < input
151145 type = "email"
152146 value = { field . state . value }
153147 onChange = { ( e ) => field . handleChange ( e . target . value ) }
154148 placeholder = "Subscribe to updates"
155149 className = { cn ( [
156- "w-full pl-8 pr-3 py-1.5 text-sm" ,
157- "border border-neutral-200 rounded-md" ,
158- "bg-white placeholder:text-neutral-400" ,
159- "focus:outline-none focus:ring-1 focus:ring-stone-400 focus:border-stone-400" ,
160- "transition-all" ,
150+ "min-w-0 flex-1 pl-8 pr-2 py-1.5 text-sm" ,
151+ "bg-transparent placeholder:text-neutral-400" ,
152+ "focus:outline-none" ,
161153 ] ) }
162154 required
163155 />
156+ < button
157+ type = "submit"
158+ className = { cn ( [
159+ "shrink-0 px-2 transition-colors focus:outline-none" ,
160+ field . state . value ? "text-stone-600" : "text-neutral-300" ,
161+ ] ) }
162+ >
163+ < ArrowRightIcon className = "size-4" />
164+ </ button >
164165 </ div >
165166 ) }
166167 </ form . Field >
167- < button
168- type = "submit"
169- className = { cn ( [
170- "p-1.5 rounded-md" ,
171- "bg-stone-600 text-white" ,
172- "hover:bg-stone-700 transition-colors" ,
173- "focus:outline-none focus:ring-1 focus:ring-stone-400" ,
174- ] ) }
175- >
176- < ArrowRightIcon className = "size-3.5" />
177- </ button >
178168 </ form >
179169 </ PopoverTrigger >
180170 < PopoverContent
0 commit comments