squiggle/packages/website/src/pages/index.js

36 lines
1.0 KiB
JavaScript
Raw Normal View History

2022-04-10 23:15:46 +00: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 styles from "./index.module.css";
import HomepageFeatures from "../components/HomepageFeatures";
2022-02-06 18:40:28 +00:00
function HomepageHeader() {
2022-04-10 23:15:46 +00:00
const { siteConfig } = useDocusaurusContext();
2022-02-06 18:40:28 +00:00
return (
2022-04-10 23:15:46 +00:00
<header className={clsx("hero hero--primary", styles.heroBanner)}>
2022-02-06 18:40:28 +00:00
<div className="container">
<h1 className="hero__title">{siteConfig.title}</h1>
<p className="hero__subtitle">{siteConfig.tagline}</p>
2022-04-10 23:15:46 +00:00
<div className={styles.buttons}></div>
2022-02-06 18:40:28 +00:00
</div>
</header>
);
}
export default function Home() {
2022-04-10 23:15:46 +00:00
const { siteConfig } = useDocusaurusContext();
2022-02-06 18:40:28 +00:00
return (
<Layout
title={`Hello from ${siteConfig.title}`}
2022-04-10 23:15:46 +00:00
description="Description will go into a meta tag in <head />"
>
2022-02-06 18:40:28 +00:00
<HomepageHeader />
<main>
<HomepageFeatures />
</main>
</Layout>
);
}