2023-10-28 18:23:19 +00:00
|
|
|
|
import React from 'react';
|
|
|
|
|
import clsx from 'clsx';
|
|
|
|
|
import Link from '@docusaurus/Link';
|
|
|
|
|
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
|
|
|
|
|
import Layout from '@theme/Layout';
|
|
|
|
|
import HomepageFeatures from '@site/src/components/HomepageFeatures';
|
|
|
|
|
|
|
|
|
|
import styles from './index.module.css';
|
|
|
|
|
|
|
|
|
|
function HomepageHeader() {
|
2023-11-04 10:23:32 +00:00
|
|
|
|
const { siteConfig } = useDocusaurusContext();
|
2023-10-28 18:23:19 +00:00
|
|
|
|
return (
|
|
|
|
|
<header className={clsx('hero hero--primary', styles.heroBanner)}>
|
|
|
|
|
<div className="container">
|
|
|
|
|
<h1 className="hero__title">{siteConfig.title}</h1>
|
|
|
|
|
<p className="hero__subtitle">{siteConfig.tagline}</p>
|
|
|
|
|
<div className={styles.buttons}>
|
|
|
|
|
<Link
|
|
|
|
|
className="button button--secondary button--lg"
|
2023-11-04 10:23:32 +00:00
|
|
|
|
to="/docs/intro"
|
|
|
|
|
>
|
2023-10-28 18:23:19 +00:00
|
|
|
|
Docusaurus Tutorial - 5min ⏱️
|
|
|
|
|
</Link>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</header>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default function Home(): JSX.Element {
|
2023-11-04 10:23:32 +00:00
|
|
|
|
const { siteConfig } = useDocusaurusContext();
|
2023-10-28 18:23:19 +00:00
|
|
|
|
return (
|
|
|
|
|
<Layout
|
|
|
|
|
title={`Hello from ${siteConfig.title}`}
|
2023-11-04 10:23:32 +00:00
|
|
|
|
description="Description will go into a meta tag in <head />"
|
|
|
|
|
>
|
2023-10-28 18:23:19 +00:00
|
|
|
|
<HomepageHeader />
|
|
|
|
|
<main>
|
|
|
|
|
<HomepageFeatures />
|
|
|
|
|
</main>
|
|
|
|
|
</Layout>
|
|
|
|
|
);
|
|
|
|
|
}
|