forked from langfuse/langfuse-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscheduleDemo.tsx
More file actions
52 lines (50 loc) · 1.24 KB
/
scheduleDemo.tsx
File metadata and controls
52 lines (50 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import { Background } from "./Background";
import Cal, { getCalApi } from "@calcom/embed-react";
import { useEffect } from "react";
import { Header } from "./Header";
export function ScheduleDemoPage() {
return (
<section className="flex flex-col gap-10 w-full min-h-screen items-center py-20">
<Header
title="Talk to us"
description="Get a demo by one of the founders to learn more about Langfuse"
h="h1"
buttons={[
{
href: "/enterprise",
text: "Enterprise FAQ",
},
{
href: "/video",
text: "Watch 3 min demo",
},
{
href: "/docs",
text: "Docs",
},
]}
/>
<ScheduleDemo />
<Background />
</section>
);
}
export function ScheduleDemo() {
useEffect(() => {
(async function () {
const cal = await getCalApi();
cal("ui", {
styles: { branding: { brandColor: "#000000" } },
hideEventTypeDetails: false,
layout: "month_view",
});
})();
}, []);
return (
<Cal
calLink="marc-kl/demo"
style={{ width: "100%", height: "100%", overflow: "scroll" }}
config={{ layout: "month_view" }}
/>
);
}