Skip to content

Same agent Smaller bill. The tools and infrastructure to get more work from your AI. Fewer tokens. Less compute. Lower cost.

feat: homepage revamp (#86)

Aman Agarwalef407ca7d7de
diff --git a/src/client/public/images/banner.gif b/src/client/public/images/banner.gif
index 405430c7..23240896 100644
Binary files a/src/client/public/images/banner.gif and b/src/client/public/images/banner.gif differ
diff --git a/src/client/public/images/doku-logo-with-name.png b/src/client/public/images/doku-logo-with-name.png
index 50e59be9..4de6c082 100644
Binary files a/src/client/public/images/doku-logo-with-name.png and b/src/client/public/images/doku-logo-with-name.png differ
diff --git a/src/client/public/images/logo.png b/src/client/public/images/logo.png
new file mode 100644
index 00000000..71b7b662
Binary files /dev/null and b/src/client/public/images/logo.png differ
diff --git a/src/client/src/app/(playground)/dashboard/github-mark.svg b/src/client/src/app/(playground)/dashboard/github-mark.svg
deleted file mode 100644
index 37fa923d..00000000
--- a/src/client/src/app/(playground)/dashboard/github-mark.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg width="98" height="96" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z" fill="#24292f"/></svg>
\ No newline at end of file
diff --git a/src/client/src/app/layout.tsx b/src/client/src/app/layout.tsx
index d4e32046..9bc8313e 100644
--- a/src/client/src/app/layout.tsx
+++ b/src/client/src/app/layout.tsx
@@ -23,7 +23,7 @@ export default function RootLayout({
children: React.ReactNode;
}) {
return (
- <html lang="en">
+ <html lang="en" className="scroll-smooth">
<body className={inter.className}>
{children}
<Toaster
diff --git a/src/client/src/app/page.tsx b/src/client/src/app/page.tsx
index 8eb679d7..c3010793 100644
--- a/src/client/src/app/page.tsx
+++ b/src/client/src/app/page.tsx
@@ -1,75 +1,17 @@
-import { ArrowRightIcon } from "@heroicons/react/24/solid";
-import Image from "next/image";
+import Features from "@/components/(landing-page)/components/features";
+import Footer from "@/components/(landing-page)/components/footer";
+import Hero from "@/components/(landing-page)/components/hero";
+import Navbar from "@/components/(landing-page)/components/navbar";
+import WhyDoku from "@/components/(landing-page)/components/whydoku";
export default function Home() {
return (
- <div className="flex flex-col w-full min-h-screen bg-secondary">
- <section className="w-full px-8">
- <div className="container flex w-full items-center justify-between py-5">
- <a
- href="/"
- className="flex items-center font-medium text-tertiary lg:w-auto lg:items-center lg:justify-center md:mb-0 shrink-0"
- >
- <span className="mx-auto text-xl font-black leading-none select-none">
- Doku
- </span>
- </a>
-
- <div className="flex grow items-center ml-5 space-x-6 justify-end">
- <a
- href="https://github.com/dokulabs/doku"
- className="text-base font-medium leading-6 whitespace-no-wrap transition duration-150 ease-in-out"
- >
- <Image
- alt="github"
- src="/images/github-mark.svg"
- width={30}
- height={30}
- />
- </a>
- </div>
- </div>
- </section>
-
- <section className="px-2 py-32 md:px-0">
- <div className="container items-center max-w-6xl px-8 mx-auto xl:px-5">
- <div className="flex flex-wrap items-center sm:-mx-3">
- <div className="w-full md:w-1/2 md:px-3">
- <div className="w-full pb-6 space-y-6 sm:max-w-md lg:max-w-lg md:space-y-4 lg:space-y-8 xl:space-y-9 sm:pr-5 lg:pr-0 md:pb-0">
- <h1 className="text-4xl font-extrabold tracking-tight sm:text-5xl md:text-4xl lg:text-5xl xl:text-6xl">
- <span className="block xl:inline text-tertiary">Doku - </span>
- <span className="block text-primary xl:inline">
- LLM Observability
- </span>
- </h1>
- <p className="mx-auto text-base text-tertiary/[0.8] sm:max-w-md lg:text-xl md:max-w-3xl">
- An open source tool designed to collect and understand the
- usage of Large Language Models (LLMs).
- </p>
- <div className="relative flex flex-col sm:flex-row sm:space-x-4">
- <a
- href="https://docs.dokulabs.com/0.0.1/introduction"
- className="flex items-center w-full px-6 py-3 mb-3 text-lg text-white bg-orange-600 rounded-md sm:mb-0 hover:bg-orange-700 sm:w-auto"
- >
- Docs
- <ArrowRightIcon className="w-4" />
- </a>
- </div>
- </div>
- </div>
- <div className="w-full md:w-1/2">
- <div className="w-full h-auto overflow-hidden rounded-md shadow-xl sm:rounded-xl">
- <Image
- alt="doku"
- src="/images/banner.gif"
- width={600}
- height={300}
- />
- </div>
- </div>
- </div>
- </div>
- </section>
+ <div className="flex flex-col w-full min-h-screen bg-secondary/[0.7]">
+ <Navbar />
+ <Hero />
+ <WhyDoku />
+ <Features />
+ <Footer />
</div>
);
}
diff --git a/src/client/src/components/(landing-page)/components/features.tsx b/src/client/src/components/(landing-page)/components/features.tsx
new file mode 100644
index 00000000..a442da53
--- /dev/null
+++ b/src/client/src/components/(landing-page)/components/features.tsx
@@ -0,0 +1,96 @@
+import {
+ ClockIcon,
+ LightBulbIcon,
+ LinkIcon,
+ PresentationChartBarIcon,
+} from "@heroicons/react/24/outline";
+
+const features = [
+ {
+ name: "Granular Usage Insights",
+ description:
+ "Assess your LLM's performance, costs, filter by environment, application etc.",
+ icon: LightBulbIcon,
+ },
+ {
+ name: "Real-Time Data Streaming",
+ description:
+ "Streams data to visualize your data and enables quick decision-making and adjustments.",
+ icon: PresentationChartBarIcon,
+ },
+ {
+ name: "Zero Added Latency",
+ description:
+ "Ensures rapid data processing without impacting your application's performance.",
+ icon: ClockIcon,
+ },
+ {
+ name: "Observability Platforms",
+ description:
+ "Seamlessly exports data to observability platforms like Grafana Cloud, Datadog etc.",
+ icon: LinkIcon,
+ },
+];
+
+function FeatureList(props: any) {
+ return (
+ <ul
+ className="flex items-center justify-center md:justify-start [&_li]:mx-8 [&_img]:max-w-none animate-infinite-scroll"
+ {...props}
+ >
+ {features.map((feature) => (
+ <li
+ key={feature.name}
+ className="w-80 h-full p-6 border border-tertiary/[0.05] rounded-lg shadow text-center"
+ >
+ <div className="flex items-center justify-center">
+ <feature.icon
+ className="h-5 w-5 mr-2 text-primary"
+ aria-hidden="true"
+ />
+ <h5 className="text-xl font-semibold tracking-tight text-primary">
+ {feature.name}
+ </h5>
+ </div>
+ <p className="mt-3 font-normal text-tertiary">
+ {feature.description}
+ </p>
+ </li>
+ ))}
+ </ul>
+ );
+}
+
+export default function Features() {
+ return (
+ <div className="relative py-8" id="features">
+ <div className="mx-auto px-6 lg:px-8">
+ <div className=" max-w-7xl mx-auto max-w-2xl text-center">
+ <p className="mt-2 text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl">
+ Everything you need to know
+ </p>
+ <p className="mt-3 text-lg leading-8 text-gray-600">
+ Get advanced monitoring and evaluation for your LLM applications
+ with these key benefits:
+ </p>
+ </div>
+ <div className="w-full inline-flex flex-nowrap mt-8 overflow-hidden py-3 [mask-image:_linear-gradient(to_right,transparent_0,_black_128px,_black_calc(100%-128px),transparent_100%)]">
+ <FeatureList />
+ <FeatureList aria-hidden="true" />
+ </div>
+ </div>
+ <div
+ className="absolute inset-x-0 top-[calc(100%-13rem)] -z-10 transform-gpu overflow-hidden blur-3xl sm:top-[calc(100%-30rem)]"
+ aria-hidden="true"
+ >
+ <div
+ className="relative left-[calc(50%+3rem)] aspect-[1155/678] w-[36.125rem] -translate-x-1/2 bg-gradient-to-tr from-[#ff80b5] to-[#9089fc] opacity-30 sm:left-[calc(50%+36rem)] sm:w-[72.1875rem]"
+ style={{
+ clipPath:
+ "polygon(74.1% 44.1%, 100% 61.6%, 97.5% 26.9%, 85.5% 0.1%, 80.7% 2%, 72.5% 32.5%, 60.2% 62.4%, 52.4% 68.1%, 47.5% 58.3%, 45.2% 34.5%, 27.5% 76.7%, 0.1% 64.9%, 17.9% 100%, 27.6% 76.8%, 76.1% 97.7%, 74.1% 44.1%)",
+ }}
+ />
+ </div>
+ </div>
+ );
+}
diff --git a/src/client/src/components/(landing-page)/components/footer.tsx b/src/client/src/components/(landing-page)/components/footer.tsx
new file mode 100644
index 00000000..5b8782a0
--- /dev/null
+++ b/src/client/src/components/(landing-page)/components/footer.tsx
@@ -0,0 +1,119 @@
+import Image from "next/image";
+
+export default function Footer() {
+ return (
+ <footer className="mt-12">
+ <div className="mx-auto w-full max-w-screen-xl p-4 py-6 lg:py-8">
+ <div className="md:flex md:justify-between">
+ <div className="flex mb-6 md:mb-0 justify-center md:justify-start">
+ <a href="https://flowbite.com/" className="flex items-center">
+ <Image
+ alt="doku"
+ className="w-40"
+ src="/images/doku-logo-with-name.png"
+ width={836}
+ height={298}
+ />
+ </a>
+ </div>
+ <div className="flex flex-1 justify-center md:justify-end space-x-20">
+ <div>
+ <h2 className="mb-6 text-sm font-semibold text-tertiary dark:text-white">
+ Resources
+ </h2>
+ <ul className="text-sm">
+ <li className="mb-3">
+ <a
+ href="https://docs.dokulabs.com/"
+ className="hover:text-primary text-tertiary"
+ >
+ Docs
+ </a>
+ </li>
+ <li>
+ <a
+ href="https://github.com/dokulabs/doku"
+ className="hover:text-primary text-tertiary"
+ >
+ Github
+ </a>
+ </li>
+ </ul>
+ </div>
+ <div>
+ <h2 className="mb-6 text-sm font-semibold text-tertiary dark:text-white">
+ Follow us
+ </h2>
+ <ul className="text-sm">
+ <li className="mb-3">
+ <a
+ href="https://join.slack.com/t/doku-0tq5728/shared_invite/zt-2a9aql9xx-FN5EIZ2DtZ~XtJoYdxUDtA"
+ className="hover:text-primary text-tertiary"
+ >
+ Slack
+ </a>
+ </li>
+ <li>
+ <a
+ href="https://twitter.com/doku_labs"
+ className="hover:text-primary text-tertiary"
+ >
+ X
+ </a>
+ </li>
+ </ul>
+ </div>
+ </div>
+ </div>
+ <hr className="my-6 border-primary/[0.2] sm:mx-auto lg:my-8" />
+ <div className="sm:flex sm:items-center sm:justify-between text-center md:text-left">
+ <span className="text-sm text-tertiary/[0.6] sm:text-center">
+ © 2023{" "}
+ <a href="https://docs.dokulabs.com/" className="hover:underline">
+ Dokulabs™
+ </a>
+ . All Rights Reserved.
+ </span>
+ <div className="flex mt-4 sm:justify-center sm:mt-0 justify-center md:justify-end">
+ <a
+ href="https://twitter.com/doku_labs"
+ className="text-tertiary hover:text-tertiary dark:hover:text-white ms-5"
+ >
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ x="0px"
+ y="0px"
+ width="100"
+ height="100"
+ viewBox="0 0 50 50"
+ className="w-4 h-4"
+ >
+ <path d="M 5.9199219 6 L 20.582031 27.375 L 6.2304688 44 L 9.4101562 44 L 21.986328 29.421875 L 31.986328 44 L 44 44 L 28.681641 21.669922 L 42.199219 6 L 39.029297 6 L 27.275391 19.617188 L 17.933594 6 L 5.9199219 6 z M 9.7167969 8 L 16.880859 8 L 40.203125 42 L 33.039062 42 L 9.7167969 8 z"></path>
+ </svg>
+ <span className="sr-only">Twitter page</span>
+ </a>
+ <a
+ href="https://github.com/dokulabs"
+ className="text-tertiary hover:text-tertiary dark:hover:text-white ms-5"
+ >
+ <svg
+ className="w-4 h-4"
+ aria-hidden="true"
+ xmlns="http://www.w3.org/2000/svg"
+ fill="currentColor"
+ viewBox="0 0 20 20"
+ >
+ <path
+ fillRule="evenodd"
+ d="M10 .333A9.911 9.911 0 0 0 6.866 19.65c.5.092.678-.215.678-.477 0-.237-.01-1.017-.014-1.845-2.757.6-3.338-1.169-3.338-1.169a2.627 2.627 0 0 0-1.1-1.451c-.9-.615.07-.6.07-.6a2.084 2.084 0 0 1 1.518 1.021 2.11 2.11 0 0 0 2.884.823c.044-.503.268-.973.63-1.325-2.2-.25-4.516-1.1-4.516-4.9A3.832 3.832 0 0 1 4.7 7.068a3.56 3.56 0 0 1 .095-2.623s.832-.266 2.726 1.016a9.409 9.409 0 0 1 4.962 0c1.89-1.282 2.717-1.016 2.717-1.016.366.83.402 1.768.1 2.623a3.827 3.827 0 0 1 1.02 2.659c0 3.807-2.319 4.644-4.525 4.889a2.366 2.366 0 0 1 .673 1.834c0 1.326-.012 2.394-.012 2.72 0 .263.18.572.681.475A9.911 9.911 0 0 0 10 .333Z"
+ clipRule="evenodd"
+ />
+ </svg>
+ <span className="sr-only">GitHub account</span>
+ </a>
+ </div>
+ </div>
+ </div>
+ </footer>
+ );
+}
diff --git a/src/client/src/components/(landing-page)/components/hero.tsx b/src/client/src/components/(landing-page)/components/hero.tsx
new file mode 100644
index 00000000..bc7d14b2
--- /dev/null
+++ b/src/client/src/components/(landing-page)/components/hero.tsx
@@ -0,0 +1,46 @@
+export default function Hero() {
+ return (
+ <div className="flex flex-col w-full relative isolate px-6 pt-14 lg:px-8">
+ <div className="mx-auto w-full py-10 sm:py-32 lg:py-20">
+ <div className="text-center">
+ <h1 className="flex flex-col font-extrabold tracking-tight">
+ <span className="block xl:inline text-primary text-6xl">Doku</span>
+ <span className="block text-tertiary xl:inline text-3xl">
+ Observability for LLMs
+ </span>
+ </h1>
+ <p className="mx-auto text-base text-tertiary/[0.8] sm:max-w-md lg:text-xl md:max-w-3xl mt-3">
+ An open source tool designed to collect and understand the usage of
+ Large Language Models (LLMs).
+ </p>
+ <div className="mt-10 flex items-center justify-center gap-x-6">
+ <a
+ href="https://docs.dokulabs.com/"
+ className="rounded-md bg-primary/[0.9] px-6 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-primary focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary"
+ >
+ Documentation
+ </a>
+ <a
+ href="https://github.com/dokulabs/doku"
+ className="text-sm font-semibold leading-6 text-tertiary hover:text-primary"
+ >
+ Github repository <span aria-hidden="true">→</span>
+ </a>
+ </div>
+ </div>
+ </div>
+ <div
+ className="absolute inset-x-0 top-[calc(100%-13rem)] -z-10 transform-gpu overflow-hidden blur-3xl sm:top-[calc(100%-30rem)]"
+ aria-hidden="true"
+ >
+ <div
+ className="relative left-[calc(50%+3rem)] aspect-[1155/678] w-[36.125rem] -translate-x-1/2 bg-gradient-to-tr from-[#ff80b5] to-[#9089fc] opacity-30 sm:left-[calc(50%+36rem)] sm:w-[72.1875rem]"
+ style={{
+ clipPath:
+ "polygon(74.1% 44.1%, 100% 61.6%, 97.5% 26.9%, 85.5% 0.1%, 80.7% 2%, 72.5% 32.5%, 60.2% 62.4%, 52.4% 68.1%, 47.5% 58.3%, 45.2% 34.5%, 27.5% 76.7%, 0.1% 64.9%, 17.9% 100%, 27.6% 76.8%, 76.1% 97.7%, 74.1% 44.1%)",
+ }}
+ />
+ </div>
+ </div>
+ );
+}
diff --git a/src/client/src/components/(landing-page)/components/navbar.tsx b/src/client/src/components/(landing-page)/components/navbar.tsx
new file mode 100644
index 00000000..44fca7de
--- /dev/null
+++ b/src/client/src/components/(landing-page)/components/navbar.tsx
@@ -0,0 +1,32 @@
+import Image from "next/image";
+
+export default function Navbar() {
+ return (
+ <div className="bg-secondary sticky top-0 z-10">
+ <div className="mx-auto max-w-7xl px-2 sm:px-6 lg:px-8">
+ <div className="flex h-16 items-center justify-between">
+ <Image
+ alt="doku"
+ className="w-24"
+ src="/images/doku-logo-with-name.png"
+ width={836}
+ height={298}
+ />
+ <a
+ href={"https://github.com/dokulabs/doku"}
+ className={`flex items-center rounded-md px-3 py-2 text-sm font-medium bg-tertiary text-white`}
+ >
+ <Image
+ alt="github"
+ className="invert"
+ src="/images/github-mark.svg"
+ width={20}
+ height={20}
+ />
+ <span className="hidden sm:ml-3 sm:block">Github</span>
+ </a>
+ </div>
+ </div>
+ </div>
+ );
+}
diff --git a/src/client/src/components/(landing-page)/components/whydoku.tsx b/src/client/src/components/(landing-page)/components/whydoku.tsx
new file mode 100644
index 00000000..da05d5bf
--- /dev/null
+++ b/src/client/src/components/(landing-page)/components/whydoku.tsx
@@ -0,0 +1,39 @@
+import Image from "next/image";
+
+export default function WhyDoku() {
+ return (
+ <div
+ className="relative isolate px-6 py-8 sm:px-16 md:py-24 lg:flex lg:gap-x-20 lg:px-24 lg:py-16"
+ id="whydoku"
+ >
+ <div className="mx-auto max-w-md text-center lg:mx-0 lg:py-32 lg:text-left shrink-0 mb-6">
+ <h2 className="text-3xl font-bold tracking-tight text-tertiary sm:text-4xl">
+ Boost your productivity.
+ </h2>
+ <h2 className="mt-3 text-3xl font-bold tracking-tight text-tertiary sm:text-4xl">
+ Start using <span className="text-primary font-bold">Doku</span>{" "}
+ today.
+ </h2>
+ <p className="mt-6 text-lg leading-8 text-tertiary">
+ Real-time data on LLM usage, performance, and costs. Seamless
+ integrations with OpenAI, Cohere, and Anthropic
+ </p>
+ </div>
+ <div className="relative self-center p-4 bg-tertiary/[0.1]">
+ <Image alt="doku" src="/images/banner.gif" width={1200} height={600} />
+ </div>
+ <div
+ className="absolute inset-x-0 top-[calc(100%-13rem)] -z-10 transform-gpu overflow-hidden blur-3xl sm:top-[calc(100%-30rem)]"
+ aria-hidden="true"
+ >
+ <div
+ className="relative left-[calc(50%+3rem)] aspect-[1155/678] w-[36.125rem] -translate-x-1/2 bg-gradient-to-tr from-[#ff80b5] to-[#9089fc] opacity-30 sm:left-[calc(50%+36rem)] sm:w-[72.1875rem]"
+ style={{
+ clipPath:
+ "polygon(74.1% 44.1%, 100% 61.6%, 97.5% 26.9%, 85.5% 0.1%, 80.7% 2%, 72.5% 32.5%, 60.2% 62.4%, 52.4% 68.1%, 47.5% 58.3%, 45.2% 34.5%, 27.5% 76.7%, 0.1% 64.9%, 17.9% 100%, 27.6% 76.8%, 76.1% 97.7%, 74.1% 44.1%)",
+ }}
+ />
+ </div>
+ </div>
+ );
+}
diff --git a/src/client/src/components/(playground)/sidebar.tsx b/src/client/src/components/(playground)/sidebar.tsx
index 5a27c79a..076ec992 100644
--- a/src/client/src/components/(playground)/sidebar.tsx
+++ b/src/client/src/components/(playground)/sidebar.tsx
@@ -91,7 +91,7 @@ export default function Sidebar() {
icon={
<Image
className="flex-shrink-0 w-6 h-6 transition duration-75"
- src="https://avatars.githubusercontent.com/u/149867240?s=48&v=4"
+ src="/images/logo.png"
alt="Doku's Logo"
priority
width={24}
diff --git a/src/client/tailwind.config.ts b/src/client/tailwind.config.ts
index ee4f3c78..6a560fa4 100644
--- a/src/client/tailwind.config.ts
+++ b/src/client/tailwind.config.ts
@@ -65,6 +65,15 @@ export default {
"tremor-title": ["1.125rem", { lineHeight: "1.75rem" }],
"tremor-metric": ["1.875rem", { lineHeight: "2.25rem" }],
},
+ animation: {
+ 'infinite-scroll': 'infinite-scroll 25s linear infinite',
+ },
+ keyframes: {
+ 'infinite-scroll': {
+ from: { transform: 'translateX(0)' },
+ to: { transform: 'translateX(-100%)' },
+ }
+ }
},
},
safelist: [