Skip to content

Commit

Permalink
feat: introduce a docs main site (#95)
Browse files Browse the repository at this point in the history
## Demo

<img width="1507" alt="Screenshot 2024-07-10 at 4 26 13 PM"
src="https://github.com/infinyon/fluvio-docs/assets/34756077/45fc395e-000a-4db4-8660-2a3e3869f6f7">
  • Loading branch information
EstebanBorai authored Jul 10, 2024
1 parent 4776a55 commit 048dd8c
Show file tree
Hide file tree
Showing 2 changed files with 81 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/components/Landing/index.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import Layout from '@theme/Layout';

import { Hero } from './components/Hero';
import { WhyFluvio } from './components/WhyFluvio';
import { Contribute } from './components/Contribute';
import { Projects } from './components/Projects';
import { GitHubInsights } from './components/GitHubInsights';

export default function Home(): JSX.Element {
const {siteConfig} = useDocusaurusContext();
return (
<Layout
title="Fluvio Community Documentation"
Expand Down
81 changes: 81 additions & 0 deletions src/pages/docs/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
import Layout from "@theme/Layout";

export default function Home(): JSX.Element {
return (
<Layout
title="Documentation | Fluvio Community"
description="Documentation for Fluvio, InfinyOn Cloud and everything else Fluvio."
>
<section className="relative dark:text-white">
<figure
className="absolute inset-x-0 -top-40 -z-10 transform-gpu overflow-hidden blur-3xl sm:-top-80"
aria-hidden="true"
>
<div
className="relative left-[calc(50%-11rem)] aspect-[1155/678] w-[36.125rem] -translate-x-1/2 rotate-[30deg] bg-gradient-to-tr from-[#ff80b5] to-[#9089fc] opacity-30 sm:left-[calc(50%-30rem)] 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>
</figure>
<article className="py-24 sm:py-32">
<div className="mx-auto max-w-7xl px-6 lg:px-8">
<div className="mx-auto max-w-2xl text-center">
<h1 className="text-2xl font-bold tracking-tight text-gray-900 dark:text-gray-100">
Fluvio Community Documentation
</h1>
<p>
Which product are you looking for?
</p>
<div className="mt-10 flex items-center justify-center gap-x-6">
<a
className="hover:text-white hover:no-underline rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-800 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"
href="/docs/fluvio/overview"
>
Fluvio
</a>
<a
className="hover:text-white hover:no-underline rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-800 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"
href="/docs/cloud/quickstart"
>
InfinyOn Cloud
</a>
<a
className="hover:text-white hover:no-underline rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-800 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"
href="/docs/sdf/quickstart"
>
SDF
</a>
<a
className="hover:text-white hover:no-underline rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-800 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"
href="/docs/connectors/quickstart"
>
Connectors
</a>
<a
className="hover:text-white hover:no-underline rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-800 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"
href="/docs/apis/quickstart"
>
APIs
</a>
</div>
</div>
</div>
</article>
<figure
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>
</figure>
</section>
</Layout>
);
}

0 comments on commit 048dd8c

Please sign in to comment.