Skip to content

Commit fd7819e

Browse files
authored
improve talk to us (#2295)
* improve talk to us * push * url state * spacing * menu and nits * push * nit * prettier
1 parent ca37587 commit fd7819e

18 files changed

+501
-313
lines changed

components/CalComScheduleDemo.tsx

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,21 @@
11
import Cal, { getCalApi } from "@calcom/embed-react";
22
import { useEffect } from "react";
33

4-
export function ScheduleDemo({
5-
className,
6-
region,
7-
}: {
8-
className?: string;
9-
region: "us" | "eu";
10-
}) {
4+
export function ScheduleDemo({ className }: { className?: string }) {
115
useEffect(() => {
126
(async function () {
137
const cal = await getCalApi();
148
cal("ui", {
159
styles: { branding: { brandColor: "#000000" } },
16-
hideEventTypeDetails: false,
10+
hideEventTypeDetails: true,
1711
layout: "month_view",
1812
});
1913
})();
2014
}, []);
2115

22-
const calLink = region === "us" ? "team/langfuse/intro" : "team/langfuse/intro-eu";
23-
2416
return (
2517
<Cal
26-
calLink={calLink}
18+
calLink="team/langfuse/intro"
2719
className={className}
2820
style={{ width: "100%", height: "100%", overflow: "scroll" }}
2921
config={{ layout: "month_view" }}

components/GitHubBadge.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import IconGithub from "./icons/github";
44
export const GithubMenuBadge = () => (
55
<a
66
href="https://github.com/langfuse/langfuse"
7-
className="group h-8 flex shrink-0 flex-row items-center rounded border border-primary/10 overflow-hidden transition-opacity"
7+
className="hidden sm:flex group h-8 shrink-0 flex-row items-center rounded border border-primary/10 overflow-hidden transition-opacity"
88
target="_blank"
99
rel="nofollow noreferrer"
1010
title="GitHub Repository"

components/HiringBadge.tsx

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,12 @@ export function HiringBadge() {
2121
onBlur={() => setIsHovered(false)}
2222
style={{ width: "max-content" }}
2323
>
24-
<span className={cn(isHovered && "invisible")}>Hiring in Berlin and SF</span>
25-
<span
26-
className={cn(
27-
"absolute",
28-
!isHovered && "invisible"
29-
)}
30-
>
24+
<span className={cn(isHovered && "invisible")}>
25+
Hiring in Berlin and SF
26+
</span>
27+
<span className={cn("absolute", !isHovered && "invisible")}>
3128
Looking for 🐐s!
3229
</span>
3330
</Link>
3431
);
3532
}
36-

components/credibilitySentence.tsx

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import { getGitHubStars } from "@/lib/github-stars";
2+
import { DOCKER_PULLS, SDK_INSTALLS_PER_MONTH } from "./home/Usage";
3+
4+
export const CredibilitySentence = () => {
5+
return (
6+
<p className="mt-6">
7+
Langfuse is the most widely adopted LLM Engineering platform with over{" "}
8+
<strong className="font-semibold">
9+
{getGitHubStars().toLocaleString()} GitHub stars
10+
</strong>
11+
,{" "}
12+
<strong className="font-semibold">
13+
{(SDK_INSTALLS_PER_MONTH / 1_000_000).toFixed(1)}M+ SDK installs per
14+
month
15+
</strong>
16+
, and{" "}
17+
<strong className="font-semibold">
18+
{(DOCKER_PULLS / 1_000_000).toFixed(0)}M+ Docker pulls
19+
</strong>
20+
. Selected customers who built great LLM applications with Langfuse:
21+
</p>
22+
);
23+
};

components/home/Hero.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,11 @@ export function Hero() {
3636
</span>
3737

3838
<div className="flex gap-4 flex-wrap items-center justify-center my-4">
39-
<Button size="lg" variant="cta" asChild>
40-
<Link href="/demo">Try Example Project</Link>
39+
<Button variant="cta" size="lg" asChild>
40+
<Link href="https://cloud.langfuse.com">Sign up</Link>
41+
</Button>
42+
<Button size="lg" variant="secondary" asChild>
43+
<Link href="/talk-to-us">Get Demo</Link>
4144
</Button>
4245
<Button variant="secondary" size="lg" asChild>
4346
<Link href="/docs">View docs</Link>

components/home/Usage.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,19 @@ import { EnterpriseLogoGrid } from "@/components/shared/EnterpriseLogoGrid";
44
import { getGitHubStars } from "@/lib/github-stars";
55
import { cn } from "@/lib/utils";
66

7+
// Export usage stats constants
8+
export const SDK_INSTALLS_PER_MONTH = 14_800_000;
9+
export const DOCKER_PULLS = 6_000_000;
10+
711
export const Usage = ({ noPadding = false }: { noPadding?: boolean }) => {
812
const stats = [
9-
{ name: "SDK installs / month", value: 14_800_000, showPlus: true },
13+
{
14+
name: "SDK installs / month",
15+
value: SDK_INSTALLS_PER_MONTH,
16+
showPlus: true,
17+
},
1018
{ name: "GitHub stars", value: getGitHubStars(), showPlus: false },
11-
{ name: "Docker pulls", value: 6_000_000, showPlus: true },
19+
{ name: "Docker pulls", value: DOCKER_PULLS, showPlus: true },
1220
];
1321

1422
return (

components/inkeep/InkeepSearchBar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default function InkeepSearchBar() {
2222
key: "1",
2323
type: "style",
2424
value: css`
25-
@media (max-width: 33em) {
25+
@media (max-width: 1400px) {
2626
.ikp-search-bar__button {
2727
padding-inline: 7px;
2828
}

0 commit comments

Comments
 (0)