diff --git a/app/new-homepage/HeroScreenshot.tsx b/app/new-homepage/HeroScreenshot.tsx index 2bd3db0ac..d3fb72c23 100644 --- a/app/new-homepage/HeroScreenshot.tsx +++ b/app/new-homepage/HeroScreenshot.tsx @@ -3,7 +3,7 @@ import clsx from "clsx"; import Container from "./Container"; import { Button } from "src/shared/Button"; -import Link from "src/components/Link"; +import ScreenshotTabs from "./ScreenshotTabs"; export default function HeroScreenshot() { return ( @@ -133,14 +133,8 @@ export default function HeroScreenshot() { ))} -
- Screenshot of Inngest's dashboard +
+
diff --git a/app/new-homepage/ScreenshotTabs.tsx b/app/new-homepage/ScreenshotTabs.tsx new file mode 100644 index 000000000..a5211a7ad --- /dev/null +++ b/app/new-homepage/ScreenshotTabs.tsx @@ -0,0 +1,51 @@ +"use client"; +import { useState } from "react"; +import Image from "next/image"; + +export default function ScreenshotTabs() { + const [selected, setSelected] = useState(0); + const screenshots = [ + { + title: "Tracing", + src: "/assets/homepage/hero/2024-12-12-runs.png", + alt: "Inngest function runs and traces", + }, + { + title: "Observability", + src: "/assets/homepage/hero/2024-12-12-metrics.png", + alt: "Inngest metrics dashboard", + }, + { + title: "Management", + src: "/assets/homepage/hero/2024-12-12-function-list.png", + alt: "Inngest function dashboard", + }, + ]; + const screenshot = screenshots[selected]; + + return ( +
+
+ {screenshots.map((s, idx) => ( + + ))} +
+ {`Screenshot +
+ ); +} diff --git a/public/assets/homepage/hero/2024-12-12-function-dashboard.png b/public/assets/homepage/hero/2024-12-12-function-dashboard.png new file mode 100644 index 000000000..77451b894 Binary files /dev/null and b/public/assets/homepage/hero/2024-12-12-function-dashboard.png differ diff --git a/public/assets/homepage/hero/2024-12-12-function-list.png b/public/assets/homepage/hero/2024-12-12-function-list.png new file mode 100644 index 000000000..184184ca2 Binary files /dev/null and b/public/assets/homepage/hero/2024-12-12-function-list.png differ diff --git a/public/assets/homepage/hero/2024-12-12-metrics.png b/public/assets/homepage/hero/2024-12-12-metrics.png new file mode 100644 index 000000000..92a97ef5d Binary files /dev/null and b/public/assets/homepage/hero/2024-12-12-metrics.png differ diff --git a/public/assets/homepage/hero/2024-12-12-runs.png b/public/assets/homepage/hero/2024-12-12-runs.png new file mode 100644 index 000000000..1ee13c112 Binary files /dev/null and b/public/assets/homepage/hero/2024-12-12-runs.png differ