Skip to content

Commit 2d01664

Browse files
itsNintuitsNintu
andauthored
feat: add mobile email form (#2841)
Co-authored-by: itsNintu <[email protected]>
1 parent 0d948aa commit 2d01664

File tree

6 files changed

+566
-9
lines changed

6 files changed

+566
-9
lines changed

apps/web/client/.env.example

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ EXA_API_KEY="<Your API Key from https://dashboard.exa.ai/api-keys>"
5151
# n8n - Automation webhooks
5252
N8N_WEBHOOK_URL="<Your webhook url>"
5353
N8N_API_KEY="<Your n8n api key>"
54+
N8N_LANDING_FORM_URL="https://n8n.process.onlook.com/webhook/website-landing-form"
55+
N8N_LANDING_FORM_HEADER_NAME="X-Onlook-Form-Token" # Optional alternative to Basic Auth
56+
N8N_LANDING_FORM_HEADER_VALUE="<Long random token>"
5457

5558
# Langfuse - LLM telemetry
5659
LANGFUSE_SECRET_KEY=

apps/web/client/src/app/_components/hero/index.tsx

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { Create } from './create';
99
import { CreateError } from './create-error';
1010
import { HighDemand } from './high-demand';
1111
import { Import } from './import';
12+
import { MobileEmailCapture } from './mobile-email-capture';
1213
import { StartBlank } from './start-blank';
1314
import { UnicornBackground } from './unicorn-background';
1415

@@ -98,16 +99,8 @@ export function Hero() {
9899
<StartBlank user={user ?? null} isCreatingProject={isCreatingProject} setIsCreatingProject={setIsCreatingProject} />
99100
<Import />
100101
</motion.div>
101-
102102
</div>
103-
<motion.div className="hidden text-balance flex-col gap-4 items-center relative z-20 mx-10 text-foreground-secondary bg-foreground-secondary/10 backdrop-blur-lg rounded-lg border-[0.5px] border-foreground-secondary/20 p-4"
104-
initial={{ opacity: 0, filter: "blur(4px)" }}
105-
animate={{ opacity: 1, filter: "blur(0px)" }}
106-
transition={{ duration: 0.6, delay: 0.6, ease: "easeOut" }}
107-
style={{ willChange: "opacity, filter", transform: "translateZ(0)" }}
108-
>
109-
Onlook isn't designed for Mobile – Please open on a larger screen
110-
</motion.div>
103+
<MobileEmailCapture />
111104
</div>
112105
</div>
113106
);

0 commit comments

Comments
 (0)