Skip to content

Commit 27a251e

Browse files
authored
feat: enhance BookCallForm with conversation topics and improve layout (anomalyco#838)
- Added conversation topics with icons to the BookCallForm component. - Updated layout for better responsiveness and visual clarity. - Removed unused focus areas from LandingEnterprise component. Co-authored-by: jcllobet <[email protected]>
1 parent c8c0ec9 commit 27a251e

2 files changed

Lines changed: 58 additions & 69 deletions

File tree

‎packages/landing/components/book-call-form.tsx‎

Lines changed: 57 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,27 @@
11
"use client";
22

3+
import { Cloud, LockKeyhole, ShieldCheck } from "lucide-react";
34
import { useMemo, useState } from "react";
45

56
type 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+
925
const 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&apos;ll route you into the right rollout
4763
path. You&apos;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&apos;ll prefill what we can, and you&apos;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>

‎packages/landing/components/landing-enterprise.tsx‎

Lines changed: 1 addition & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,6 @@ const rolloutSteps = [
4646
"Pilot with one team, then expand into hosted workers or shared skills."
4747
];
4848

49-
const focusAreas = [
50-
"Secure hosting",
51-
"Permissioned tools",
52-
"Auditability",
53-
"Team rollout"
54-
];
55-
5649
export function LandingEnterprise(props: Props) {
5750
return (
5851
<div className="relative min-h-screen overflow-hidden text-[#011627]">
@@ -117,37 +110,7 @@ export function LandingEnterprise(props: Props) {
117110
</div>
118111
</section>
119112

120-
<section className="grid gap-6 lg:grid-cols-[1.08fr_0.92fr] lg:items-start">
121-
<div className="space-y-6">
122-
<div className="landing-shell rounded-[2rem] p-6 md:p-8">
123-
<div className="mb-3 text-[12px] font-semibold uppercase tracking-[0.22em] text-slate-400">
124-
What enterprise rollout means
125-
</div>
126-
<h2 className="mb-4 text-2xl font-medium tracking-tight text-[#011627] md:text-3xl">
127-
We keep the product surface familiar while tightening the
128-
operating model.
129-
</h2>
130-
<p className="mb-6 max-w-2xl text-[15px] leading-relaxed text-slate-600">
131-
The goal is not to invent a separate enterprise fork. It is to
132-
make OpenWork safe enough, clear enough, and structured enough
133-
for a team rollout without losing the speed of the local-first
134-
experience.
135-
</p>
136-
137-
<div className="grid gap-3 sm:grid-cols-2">
138-
{focusAreas.map(item => (
139-
<div
140-
key={item}
141-
className="rounded-2xl border border-slate-200/70 bg-white/80 px-4 py-4 shadow-sm"
142-
>
143-
<div className="text-sm font-medium text-[#011627]">
144-
{item}
145-
</div>
146-
</div>
147-
))}
148-
</div>
149-
</div>
150-
113+
<section className="space-y-6">
151114
<div className="grid gap-6 md:grid-cols-3">
152115
{deploymentModes.map(mode => {
153116
const Icon = mode.icon;
@@ -213,7 +176,6 @@ export function LandingEnterprise(props: Props) {
213176
</Link>
214177
</div>
215178
</div>
216-
</div>
217179

218180
<BookCallForm calUrl={props.calUrl} />
219181
</section>

0 commit comments

Comments
 (0)