2021-04-15 13:22:37 +02:00
|
|
|
import React from 'react';
|
|
|
|
import clsx from 'clsx';
|
|
|
|
import Layout from '@theme/Layout';
|
|
|
|
import Link from '@docusaurus/Link';
|
|
|
|
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
|
|
|
|
import useBaseUrl from '@docusaurus/useBaseUrl';
|
|
|
|
import styles from './styles.module.css';
|
2021-04-22 14:59:17 +02:00
|
|
|
import ThemedImage from '@theme/ThemedImage';
|
2021-04-15 13:22:37 +02:00
|
|
|
|
|
|
|
const features = [
|
|
|
|
{
|
2021-09-23 10:34:06 +02:00
|
|
|
title: 'Guides',
|
|
|
|
darkImageUrl: 'img/index/Guides-dark.svg',
|
|
|
|
lightImageUrl: 'img/index/Guides-light.svg',
|
|
|
|
link: 'docs/guides/introduction',
|
2021-04-15 13:22:37 +02:00
|
|
|
description: (
|
|
|
|
<>
|
2021-09-23 10:34:06 +02:00
|
|
|
Read our guides on how to manage your data and role associations in ZITADEL and on what we recommend.
|
2021-04-15 13:22:37 +02:00
|
|
|
</>
|
|
|
|
),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'Quickstarts',
|
2021-04-22 14:59:17 +02:00
|
|
|
darkImageUrl: 'img/index/Quickstarts-dark.svg',
|
|
|
|
lightImageUrl: 'img/index/Quickstarts-light.svg',
|
2021-04-15 13:22:37 +02:00
|
|
|
link: 'docs/quickstarts/introduction',
|
|
|
|
description: (
|
2021-09-23 10:34:06 +02:00
|
|
|
<>
|
|
|
|
Learn how to integrate your applications and build secure workflows and APIs with ZITADEL
|
|
|
|
</>
|
2021-04-15 13:22:37 +02:00
|
|
|
),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'APIs',
|
2021-04-22 14:59:17 +02:00
|
|
|
darkImageUrl: 'img/index/APIs-dark.svg',
|
|
|
|
lightImageUrl: 'img/index/APIs-light.svg',
|
2021-04-15 13:22:37 +02:00
|
|
|
link: '/docs/apis/introduction',
|
|
|
|
description: (
|
|
|
|
<>
|
|
|
|
Learn more about our APIs and how to integrate them in your apps.
|
|
|
|
</>
|
|
|
|
),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'Concepts',
|
2021-04-22 14:59:17 +02:00
|
|
|
darkImageUrl: 'img/index/Concepts-dark.svg',
|
|
|
|
lightImageUrl: 'img/index/Concepts-light.svg',
|
2021-04-15 13:22:37 +02:00
|
|
|
link: 'docs/concepts/introduction',
|
|
|
|
description: (
|
|
|
|
<>
|
|
|
|
Learn more about engineering and design principles, ZITADELs architecture and used technologies.
|
|
|
|
</>
|
|
|
|
),
|
|
|
|
},
|
|
|
|
];
|
|
|
|
|
2021-04-22 14:59:17 +02:00
|
|
|
function Feature({darkImageUrl, lightImageUrl, title, description, link}) {
|
|
|
|
const darkImgUrl = useBaseUrl(darkImageUrl);
|
|
|
|
const lightImgUrl = useBaseUrl(lightImageUrl);
|
2021-04-15 13:22:37 +02:00
|
|
|
return (
|
|
|
|
<div className={clsx('col col--4 docs-link', styles.feature)}>
|
|
|
|
<Link to={useBaseUrl(link)}>
|
2021-04-22 14:59:17 +02:00
|
|
|
{darkImgUrl && lightImgUrl && (
|
2021-04-15 13:22:37 +02:00
|
|
|
<div className="text--center">
|
2021-04-22 14:59:17 +02:00
|
|
|
<ThemedImage
|
|
|
|
className={styles.featureImage}
|
|
|
|
alt={title}
|
|
|
|
sources={{
|
|
|
|
light: lightImgUrl,
|
|
|
|
dark: darkImgUrl,
|
|
|
|
}}
|
|
|
|
/>
|
2021-04-15 13:22:37 +02:00
|
|
|
</div>
|
|
|
|
)}
|
2021-04-22 14:59:17 +02:00
|
|
|
<h3 className="text--center">{title}</h3>
|
|
|
|
<p className="text--center">{description}</p>
|
2021-04-15 13:22:37 +02:00
|
|
|
</Link>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default function Home() {
|
|
|
|
const context = useDocusaurusContext();
|
|
|
|
const {siteConfig = {}} = context;
|
|
|
|
return (
|
|
|
|
<Layout
|
|
|
|
title={`${siteConfig.title}`}
|
|
|
|
description="This site bundles ZITADELs Documentations">
|
2021-04-22 14:59:17 +02:00
|
|
|
<header className={clsx('hero', styles.heroBanner)}>
|
2021-04-15 13:22:37 +02:00
|
|
|
<div className="container">
|
|
|
|
<h1 className="hero__title">{siteConfig.title}</h1>
|
|
|
|
<p className="hero__subtitle">{siteConfig.tagline}</p>
|
|
|
|
<div className={styles.buttons}>
|
|
|
|
<Link
|
|
|
|
className={clsx(
|
|
|
|
'button button--outline button--lg get-started',
|
|
|
|
styles.getStarted,
|
|
|
|
)}
|
2021-09-23 10:34:06 +02:00
|
|
|
to={useBaseUrl('docs/guides/basics/get-started')}>
|
2021-04-15 13:22:37 +02:00
|
|
|
Get Started
|
|
|
|
</Link>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</header>
|
|
|
|
<main>
|
|
|
|
{features && features.length > 0 && (
|
|
|
|
<section className={styles.features}>
|
|
|
|
<div className="container">
|
|
|
|
<div className="row">
|
|
|
|
{features.map((props, idx) => (
|
|
|
|
<Feature key={idx} {...props} />
|
|
|
|
))}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
)}
|
|
|
|
</main>
|
|
|
|
</Layout>
|
|
|
|
);
|
|
|
|
}
|