lukaskupczyk/react-hook-consent

View on GitHub
docs/src/components/homepage/Hero.tsx

Summary

Maintainability
A
0 mins
Test Coverage
import Link from '@docusaurus/Link';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import Heading from '@theme/Heading';
import clsx from 'clsx';
import styles from './Hero.module.css';

export function HomepageHero() {
    const { siteConfig } = useDocusaurusContext();

    return (
        <header className={clsx('hero hero--primary', styles.heroBanner)}>
            <div className="container">
                <Heading as="h1" className="hero__title">
                    {siteConfig.title}
                </Heading>
                <p className="hero__subtitle">{siteConfig.tagline}</p>
                <div className={styles.buttons}>
                    <Link className="button button--secondary button--lg" to="/docs/getting-started/intro">
                        Getting Started
                    </Link>
                </div>
            </div>
        </header>
    );
}