11"use client" ;
22
3+ import { Cloud , LockKeyhole , ShieldCheck } from "lucide-react" ;
34import { useMemo , useState } from "react" ;
45
56type Props = {
67 calUrl : string ;
78} ;
89
10+ const conversationTopics = [
11+ {
12+ title : "Secure hosting model" ,
13+ icon : LockKeyhole
14+ } ,
15+ {
16+ title : "Permission boundaries" ,
17+ icon : ShieldCheck
18+ } ,
19+ {
20+ title : "Hosted worker rollout" ,
21+ icon : Cloud
22+ }
23+ ] ;
24+
925const buildCalUrl = ( baseUrl : string , params : Record < string , string > ) => {
1026 try {
1127 const url = new URL ( baseUrl ) ;
@@ -42,19 +58,33 @@ export function BookCallForm(props: Props) {
4258 < h3 className = "mb-3 text-2xl font-medium tracking-tight text-[#011627]" >
4359 Let us know how we can help.
4460 </ h3 >
45- < p className = "mb-6 max-w-md text-[15px] leading-relaxed text-slate-600" >
61+ < p className = "mb-6 max-w-2xl text-[15px] leading-relaxed text-slate-600" >
4662 Share your team context and we'll route you into the right rollout
4763 path. You'll finish the details on the booking page.
4864 </ p >
4965
50- < div className = "mb-6 rounded-[1.5rem] border border-slate-200/70 bg-white/80 p-4 shadow-sm" >
66+ < div className = "mb-6 rounded-[1.5rem] border border-slate-200/70 bg-white/80 p-4 shadow-sm md:p-5 " >
5167 < div className = "text-[12px] font-semibold uppercase tracking-[0.2em] text-slate-400" >
5268 Typical conversations
5369 </ div >
54- < div className = "mt-3 space-y-2 text-[14px] leading-relaxed text-slate-600" >
55- < p > - Secure hosting model for your team</ p >
56- < p > - Permission boundaries and approval design</ p >
57- < p > - Moving from local-first to hosted workers</ p >
70+ < div className = "mt-4 grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3" >
71+ { conversationTopics . map ( ( topic ) => {
72+ const Icon = topic . icon ;
73+
74+ return (
75+ < div
76+ key = { topic . title }
77+ className = "flex items-center gap-3 rounded-2xl border border-slate-200/70 bg-slate-50/80 px-4 py-3.5"
78+ >
79+ < div className = "flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-slate-100 text-[#011627] shadow-inner" >
80+ < Icon size = { 16 } />
81+ </ div >
82+ < div className = "text-[13px] font-medium leading-snug text-slate-600 sm:text-[14px]" >
83+ { topic . title }
84+ </ div >
85+ </ div >
86+ ) ;
87+ } ) }
5888 </ div >
5989 </ div >
6090
@@ -66,7 +96,7 @@ export function BookCallForm(props: Props) {
6696 window . open ( href , "_blank" , "noopener,noreferrer" ) ;
6797 } }
6898 >
69- < div className = "grid grid-cols-1 gap-4 sm :grid-cols-2 " >
99+ < div className = "grid grid-cols-1 gap-4 lg :grid-cols-[minmax(0,1.3fr)_minmax(0,0.85fr)_auto_auto] lg:items-end " >
70100 < div >
71101 < label className = "mb-2 block text-[12px] font-semibold uppercase tracking-[0.16em] text-slate-500" >
72102 Company email
@@ -92,33 +122,30 @@ export function BookCallForm(props: Props) {
92122 autoComplete = "organization"
93123 />
94124 </ div >
95- </ div >
96-
97- < div className = "rounded-[1.5rem] border border-slate-200/70 bg-slate-50/80 p-5 text-[13px] leading-relaxed text-slate-600" >
98- We'll prefill what we can, and you'll answer the rest on the
99- booking page.
100- </ div >
101-
102- < div className = "mt-6 flex flex-wrap items-center gap-3" >
103125 { props . calUrl ? (
104- < button type = "submit" className = "doc-button w-full sm:w-auto" >
105- Continue to booking
106- </ button >
126+ < >
127+ < a
128+ href = { props . calUrl }
129+ target = "_blank"
130+ rel = "noreferrer"
131+ className = "inline-flex h-[52px] items-center justify-center whitespace-nowrap px-3 text-[13px] font-medium text-slate-400 transition hover:text-[#011627] lg:self-end"
132+ >
133+ Open booking link
134+ </ a >
135+ < button
136+ type = "submit"
137+ className = "doc-button w-full lg:w-auto lg:self-end"
138+ >
139+ Book a call
140+ </ button >
141+ </ >
107142 ) : (
108- < div className = "rounded-2xl border border-slate-200/70 bg-slate-50/80 p-4 text-[13px] text-slate-500" >
109- Cal link not set yet.
143+ < div className = "lg:col-span-2" >
144+ < div className = "rounded-2xl border border-slate-200/70 bg-slate-50/80 p-4 text-[13px] text-slate-500" >
145+ Cal link not set yet.
146+ </ div >
110147 </ div >
111148 ) }
112- { props . calUrl ? (
113- < a
114- href = { props . calUrl }
115- target = "_blank"
116- rel = "noreferrer"
117- className = "text-[13px] font-medium text-slate-400 transition hover:text-[#011627]"
118- >
119- Open booking link
120- </ a >
121- ) : null }
122149 </ div >
123150 </ form >
124151 </ section >
0 commit comments